CVE Catalog

CVE-2004-1018

High
Published: Translated: NVD NIST

Summary

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.

Risk Assessment

The risk for organizations includes potential remote code execution, which could lead to server compromise and data integrity/confidentiality breaches. DoS attacks may disrupt service availability.

Recommendation

Immediately upgrade PHP to version 4.3.10 or later. If upgrading is not possible, restrict access to vulnerable functions via firewall rules and monitor logs for suspicious activity.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS