Input validation error in PHP - CVE-2007-1376

 

Input validation error in PHP - CVE-2007-1376

Published: October 30, 2018 / Updated: June 12, 2025


Vulnerability identifier: #VU110448
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2007-1376
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

The shmop functions in PHP before 4.4.5, and before 5.2.1 in the 5.x series, do not verify that their arguments correspond to a shmop resource, which allows context-dependent attackers to read and write arbitrary memory locations via arguments associated with an inappropriate resource, as demonstrated by a GD Image resource.


Affected software

PHP
Gentoo Linux
dev-lang/php

How to mitigate CVE-2007-1376

Install update from vendor's website.

PHP - addressed in versions 4.4.6, 4.10, 5.2.0
dev-lang/php - update to 5.2.1-r3

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins