Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2009-1936: Remote file inclusion and directory traversal in cpCommerce 1.2.x _functions.php

Published Jun 5, 2009 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS51.9%99th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Cpcommerce Project
IdentifiersCVE-2009-1936CWE-22 · Improper Limitation of a Pathname…

cpCommerce 1.2.x contains a vulnerability in _functions.php when the library file is requested directly. The file issues an HTTP redirect as a protection mechanism but does not terminate execution afterward, allowing subsequent code to continue running. An attacker can exploit this flawed control flow to bypass the intended direct-access restriction and supply crafted input through the GLOBALS[prefix] parameter. This enables remote file inclusion and directory traversal, which can lead to arbitrary PHP code execution or arbitrary file read, depending on server configuration and available targets. The issue affects cpCommerce 1.2.x, including possibly 1.2.9, and is distinct from the vector described in CVE-2003-1500.

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 can allow an unauthenticated remote attacker to bypass a protection mechanism intended to prevent direct access to an internal PHP file. Depending on configuration, the attacker may include attacker-controlled or unintended local resources, execute arbitrary PHP code in the context of the web application, or read arbitrary files accessible to the application. This can result in compromise of confidentiality through file disclosure, integrity compromise through execution of unauthorized code, and potentially broader server compromise under the privileges of the web server process.

Mitigation

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

Restrict direct web access to internal library files through web server configuration and place non-public include files outside the document root where possible. Disable remote file inclusion behavior at the PHP configuration level where feasible and enforce least-privilege filesystem permissions for the web server account to limit file read and code execution impact. Additional defense-in-depth measures include monitoring for abnormal direct requests to internal PHP components and using application-layer protections to block traversal and inclusion patterns.

Remediation

Patch, then assume compromise.

Upgrade to a fixed version if one is available from the vendor. Correct the vulnerable code path in _functions.php so that any redirect or direct-access denial is immediately followed by termination of script execution. Eliminate use of externally controllable include path components, especially through GLOBALS-derived input, and ensure include targets are selected from a strict internal allowlist rather than user-supplied values. Validate and canonicalize path-related input before use, and prevent traversal outside intended directories.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
Candidate exploits are awaiting analysis. View them in Mallory.
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
Cpcommerce ProjectCpcommerceapplication
FAQ

Frequently asked questions

Is CVE-2009-1936 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2009-1936 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2009-1936?
Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2009-1936.
Is there a patch for CVE-2009-1936?
Upgrade to a fixed version if one is available from the vendor. Correct the vulnerable code path in _functions.php so that any redirect or direct-access denial is immediately followed by termination of script execution.
What products are affected by CVE-2009-1936?
Cpcommerce Project Cpcommerce.
How severe is CVE-2009-1936?
CVE-2009-1936 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 51.9% (99th 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 malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, 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.