CVE-2007-6039: Denial of Service via Long String in PHP gettext and stream_wrapper_register
- Vendor
- PHP Group
PHP 5.2.5 and earlier are vulnerable to a denial of service condition when a long string is supplied to certain parameters in the gettext family of functions (dgettext, dcgettext, gettext, dngettext, ngettext) or the stream_wrapper_register function. Specifically, providing an excessively long string to the domain, message, msgid1, or classname parameters can cause the PHP process to crash. The vulnerability is context-dependent and may not be exploitable in all environments, particularly those with multi-threaded web servers, unless code execution can be demonstrated.
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.
An attacker can cause the PHP process to crash, resulting in a denial of service for the affected application. The impact is limited to application availability and does not directly allow for code execution or privilege escalation under typical configurations. The risk may be lower in multi-threaded web server environments.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to the affected functions where possible, validate and limit the length of input parameters, and monitor for abnormal application crashes. Consider deploying web application firewalls or input validation libraries to further reduce risk.
Remediation
Patch, then assume compromise.
Upgrade to a version of PHP later than 5.2.5 where this issue has been addressed. Ensure that all user-supplied input to the affected functions is properly validated and sanitized to prevent excessively long strings from being processed.
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.
References
Frequently asked questions
- Is CVE-2007-6039 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2007-6039 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2007-6039?
- As of Oct 16, 2026, Mallory has not confirmed a public exploit for CVE-2007-6039. 1 candidate exploit record is not yet analyzed.
- Is there a patch for CVE-2007-6039?
- Upgrade to a version of PHP later than 5.2.5 where this issue has been addressed. Ensure that all user-supplied input to the affected functions is properly validated and sanitized to prevent excessively long strings from being processed.
- What products are affected by CVE-2007-6039?
- PHP Group Php.
- How severe is CVE-2007-6039?
- CVE-2007-6039 has a CVSS v2 score of 2.1 (Low) and an EPSS score of 1.0% (64th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.