Input validation error in PHP - CVE-2004-1018

 

Input validation error in PHP - CVE-2004-1018

Published: December 8, 2020 / Updated: June 13, 2025


Vulnerability identifier: #VU110512
CSH Severity: High
CVSS v4: []
CVE-ID: CVE-2004-1018
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows attackers to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient validation of user-supplied input. A remote attacker can 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.


Affected software

PHP

How to mitigate CVE-2004-1018

Install update from vendor's website.

PHP - update to 4.3.10

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins