Description
Multiple integer handling errors in PHP before 4.3.10 allow attackers to bypass safe mode restrictions, cause a denial of service, or execute arbitrary code via (1) a negative offset value to the shmop_write function, (2) an "integer overflow/underflow" in the pack function, or (3) an "integer overflow/underflow" in the unpack function. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | php +13 | 4.3.9-3.2 | RHSA-2005:032 |
| RHEL 3 | php +6 | 4.3.2-19.ent | RHSA-2004:687 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 2
- PHP 3/4/5 - Multiple Local/Remote Vulnerabilities (1) EDB-24854 · dos · Dec 15, 2004 · verified
- PHP 3/4/5 - Multiple Local/Remote Vulnerabilities (2) EDB-24855 · dos · Dec 15, 2004 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- RHSA-2005:032 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2004:687 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
References
- RHSA-2005:032 vendor-advisory
- oval:org.mitre.oval:def:10949 vdb-entry signature
- MDKSA-2005:072 vendor-advisory
- http://www.php.net/release_4_3_10.php
- 12411 vdb-entry
- RHSA-2005:816 vendor-advisory
- MDKSA-2004:151 vendor-advisory
- http://www.hardened-php.net/advisories/012004.txt
- php-shmopwrite-outofbounds-memory(18515) vdb-entry
- FLSA:2344 vendor-advisory
- 20041219 PHP shmop.c module permits write of arbitrary memory. mailing-list
- HPSBMA01212 vendor-advisory
- 12045 vdb-entry
- 20041215 Advisory 01/2004: Multiple vulnerabilities in PHP 4/5 mailing-list
- USN-99-1 vendor-advisory