Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2015-8562: Unauthenticated PHP Object Injection RCE in Joomla!

Published Dec 16, 2015 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.5High · v2
EPSS98.2%100th percentile
CISA KEVNoNot listed
In the wildReported29 exploitation records in Mallory
Vendor
Joomla
IdentifiersCVE-2015-8562CWE-502

CVE-2015-8562 is a PHP object injection vulnerability affecting Joomla! 1.5.x, 2.x, and 3.x before 3.4.6. Unauthenticated remote attackers can submit crafted HTTP User-Agent headers that become part of serialized session data. In the demonstrated exploit chain, MySQL silently truncates this data at a four-byte UTF-8 character, and vulnerable PHP session decoding subsequently interprets the malformed data as attacker-controlled objects. A destructor chain involving JDatabaseDriverMysqli and SimplePie invokes attacker-controlled code through assert(), resulting in arbitrary PHP code execution. Exploitation was observed in December 2015 before the patch release.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows unauthenticated remote attackers to execute arbitrary PHP code in the affected Joomla! application. Exploitation can enable attacker-controlled server-side operations, including backdoor installation. The vulnerability has been exploited in the wild and incorporated into automated exploitation tools and the Sysrv botnet's exploit arsenal.

Mitigation

If you can’t patch tonight, do this now.

Enable MySQL STRICT_TRANS_TABLES or STRICT_ALL_TABLES to reject invalid character data rather than silently truncating it. Using the utf8mb4 character set for session storage avoids the specific four-byte UTF-8 truncation behavior involved in the demonstrated exploit chain. These measures address contributing database behavior and do not replace Joomla! and PHP updates.

Remediation

Patch, then assume compromise.

Upgrade Joomla! to a release containing the fix introduced in version 3.4.6. Address the associated PHP session-decoding vulnerability, CVE-2015-6835, by applying applicable distribution patches or upgrading beyond the affected PHP versions. Historical PHP fixes were introduced in 5.4.45, 5.5.29, and 5.6.13; PHP 7.0.0 or later was also identified as addressing this decoding issue.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.

View more in app →
joomla_http_header_rce.rbThis repository contains a single Metasploit module implementing an unauthenticated remote code execution exploit for Joomla (CVE-2015-8562). The exploit targets Joomla versions 1.5.0 through 3.4.5 running on vulnerable PHP versions (before 5.4.45, 5.5.29, or 5.6.13). The module works by injecting a serialized PHP object via a user-supplied HTTP header (either 'User-Agent' or 'X-Forwarded-For'), which is stored in the Joomla session table and later deserialized, triggering the execution of attacker-supplied PHP code. The payload is delivered in a custom HTTP header and executed via 'eval(base64_decode(...))', allowing arbitrary code execution. The module includes version checks for both Joomla and PHP, and can be forced to run even if the check reports the target as safe. The structure is typical for a Metasploit exploit, with options for header selection and advanced options for forced execution. The only file present is the exploit module itself, written in Ruby for the Metasploit framework.Disclosed Dec 14, 2015 · Framework: metasploit · ruby · networkWeaponizedJoomla-CVE-2015-8562-PHP-POCThis repository is a proof-of-concept (PoC) exploit for Joomla's CVE-2015-8562 vulnerability, which allows remote code execution via PHP object injection through the HTTP User-Agent header. The main exploit logic is contained in 'exploit.php', which uses the Guzzle HTTP client to send specially crafted requests to a target Joomla site. The exploit constructs a malicious User-Agent header that triggers the vulnerability, allowing arbitrary PHP code execution on the server. The default payload demonstrates this by creating a file ('/tmp/itWorks') on the target, but the payload can be customized. The repository includes a README with background information, usage instructions, and references to the original vulnerability and related exploits. The only required configuration is to set the target URL in 'exploit.php' to the victim Joomla site. The exploit is a standalone PHP script and does not rely on any exploitation framework.RobinHoutevelts · Disclosed Jan 4, 2016 · php · json · networkPoCJoomla_CVE-2015-8562This repository contains a Python proof-of-concept exploit for CVE-2015-8562, a critical remote code execution vulnerability in Joomla (versions 1.5.0 through 3.4.5) due to unsafe PHP object deserialization. The main exploit script, 'joomla-cve-2015-8562.py', allows an attacker to execute arbitrary system commands or spawn a reverse shell on a vulnerable Joomla server by sending a specially crafted serialized PHP object in the User-Agent or X-Forwarded-For HTTP header. The script supports both blind command execution and reverse shell payloads (Python or Bash), and can optionally use a proxy. The README provides usage instructions and technical background. The repository also includes an example Joomla session file for reference. The exploit is network-based, targeting HTTP endpoints, and drops shell scripts in the /tmp directory on the target. This is a functional proof-of-concept exploit, not a detection script, and demonstrates the full attack chain for remote code execution via this vulnerability.VoidSec · Disclosed Sep 17, 2017 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
JoomlaJoomlaapplication
FAQ

Frequently asked questions

Is CVE-2015-8562 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2015-8562?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2015-8562, the earliest disclosed Dec 14, 2015.
Is there a patch for CVE-2015-8562?
Upgrade Joomla! to a release containing the fix introduced in version 3.4.6. Address the associated PHP session-decoding vulnerability, CVE-2015-6835, by applying applicable distribution patches or upgrading beyond the affected PHP versions.
What products are affected by CVE-2015-8562?
Joomla.
How severe is CVE-2015-8562?
CVE-2015-8562 has a CVSS v2 score of 7.5 (High) and an EPSS score of 98.2% (100th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware2Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.