Integer Handling Errors in PHP <4.3.10 (shmop_write, pack, unpack)
Multiple integer handling errors exist in PHP versions prior to 4.3.10. Specifically, the shmop_write function is vulnerable to negative offset values, and both the pack and unpack functions are susceptible to integer overflows and underflows. These flaws can allow attackers to bypass safe mode restrictions, cause denial of service, or potentially execute arbitrary code.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation may allow attackers to bypass PHP safe mode restrictions, leading to unauthorized access or modification of data. Additionally, attackers could cause denial of service conditions or execute arbitrary code, depending on the context in which the vulnerable functions are used.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict access to scripts using shmop_write, pack, or unpack, and validate all input parameters to these functions to ensure they do not contain negative or excessively large values that could trigger integer overflows or underflows.
Patch, then assume compromise.
Upgrade to PHP version 4.3.10 or later, where these integer handling errors have been addressed. Ensure that all code using shmop_write, pack, or unpack is reviewed for unsafe input handling.
No validated public exploits yet. Hidden: 2 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.