Description
The php_next_marker function in image.c for PHP 4.2.2, 4.3.9, 4.3.10 and 5.0.3, as reachable by the getimagesize PHP function, allows remote attackers to cause a denial of service (infinite loop) via a JPEG image with an invalid marker value, which causes a negative length value to be passed to php_stream_seek.
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.
Debian
Security tracker ↗Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | php +13 | 4.3.9-3.6 | RHSA-2005:406 |
| RHEL 3 | php +6 | 4.3.2-23.ent | RHSA-2005:405 |
Advisories 4
- RHSA-2005:405 Red Hat Security Advisory: PHP security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2005:406 Red Hat Security Advisory: PHP security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-708-1 php3 - missing input sanitising Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-729-1 php4 - missing input sanitising Debian Security (DSA / DLA) · Mar 9, 2026
References
- DSA-729 vendor-advisory
- 1013619 vdb-entry
- RHSA-2005:406 vendor-advisory
- MDKSA-2005:072 vendor-advisory
- 15184 vdb-entry
- GLSA-200504-15 vendor-advisory
- APPLE-SA-2005-06-08 vendor-advisory
- 14792 third-party-advisory
- ADV-2005-0305 vdb-entry
- DSA-708 vendor-advisory
- 20050331 PHP getimagesize() Multiple Denial of Service Vulnerabilities third-party-advisory
- oval:org.mitre.oval:def:11703 vdb-entry signature
- RHSA-2005:405 vendor-advisory