CVE-2007-1412: Information Disclosure in PHP ClibPDF cpdf_open Function
- Vendor
- PHP Group
The cpdf_open function in the ClibPDF (cpdf) extension for PHP 4.4.6 contains an information disclosure vulnerability. By supplying a long string as the second argument to cpdf_open, an attacker can trigger the function to leak sensitive information, such as the script source code, to the attacker. This is due to improper handling of input lengths, leading to unintended exposure of memory contents.
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 context-dependent attackers to obtain sensitive information, including the source code of PHP scripts, which could facilitate further attacks such as code analysis for additional vulnerabilities or credential harvesting.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to scripts utilizing the ClibPDF extension, validate and sanitize user input to the cpdf_open function, and monitor for suspicious activity that may indicate attempts to exploit this vulnerability.
Remediation
Patch, then assume compromise.
Upgrade to a version of PHP where the ClibPDF extension has been patched to properly handle input lengths in the cpdf_open function. Alternatively, disable or remove the ClibPDF extension if it is not required.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
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.
Frequently asked questions
- Is CVE-2007-1412 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2007-1412 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2007-1412?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2007-1412.
- Is there a patch for CVE-2007-1412?
- Upgrade to a version of PHP where the ClibPDF extension has been patched to properly handle input lengths in the cpdf_open function. Alternatively, disable or remove the ClibPDF extension if it is not required.
- What products are affected by CVE-2007-1412?
- PHP Group Php.
- How severe is CVE-2007-1412?
- CVE-2007-1412 has a CVSS v2 score of 7.8 (High) and an EPSS score of 6.2% (94th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.