CVE-2004-1018 Integer overflow in n/a

Critical 10.0 Published Updated

Integer handling errors in PHP allow attackers to bypass safe mode, cause denial of service, or execute arbitrary code.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2004-1018?

CVE-2004-1018 is a critical vulnerability in Canonical Ubuntu Linux, published on 8 Dec 2004. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Which versions are affected by CVE-2004-1018?

It affects 2 products.

Products include Canonical Ubuntu Linux, Php Php.

How do I fix CVE-2004-1018?

Upgrade to a fixed version.

Is CVE-2004-1018 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2004-1018 exists.

Public exploit code: 2 Exploit-DB entries.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-qgcx-fh28-73fm.

Is CVE-2004-1018 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free