Every CVESearch/Get API key

CVE-2004-1018

Multiple integer handling errors in PHP before 4.3.10 allow attackers to bypass safe mode...

10.0 HighPublic exploit

CVE-2004-1018 is a high vulnerability (CVSS 10.0) in Php, published December 8, 2004. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 16.2%, the 96th percentile. No source names a fixed version.

What does this mean?
Severity
10.0 HighCVSS 2.0, NVD
Exploit chance
16.2%EPSS, 96th percentile
Exploitation
None known2 public exploits
Fixed in
No fix listedNo source names one

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.

Exploit likelihood

16.2%Down 7.1 points since Feb 4, 2022
90%50%10%1%

Affected products

Affected packages

Affected packages
PackageAffectedFixed
php
Red Hat:enterprise_linux:3::as
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-debuginfo
Red Hat:enterprise_linux:3::as
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-devel
Red Hat:enterprise_linux:3::as
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-imap
Red Hat:enterprise_linux:3::as
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-ldap
Red Hat:enterprise_linux:3::as
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-mysql
Red Hat:enterprise_linux:3::as
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-odbc
Red Hat:enterprise_linux:3::as
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-pgsql
Red Hat:enterprise_linux:3::as
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php
Red Hat:enterprise_linux:3::desktop
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-debuginfo
Red Hat:enterprise_linux:3::desktop
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
Show 82 moreShow less
Affected packages
PackageAffectedFixed
php-devel
Red Hat:enterprise_linux:3::desktop
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-imap
Red Hat:enterprise_linux:3::desktop
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-ldap
Red Hat:enterprise_linux:3::desktop
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-mysql
Red Hat:enterprise_linux:3::desktop
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-odbc
Red Hat:enterprise_linux:3::desktop
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-pgsql
Red Hat:enterprise_linux:3::desktop
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php
Red Hat:enterprise_linux:3::es
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-debuginfo
Red Hat:enterprise_linux:3::es
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-devel
Red Hat:enterprise_linux:3::es
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-imap
Red Hat:enterprise_linux:3::es
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-ldap
Red Hat:enterprise_linux:3::es
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-mysql
Red Hat:enterprise_linux:3::es
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-odbc
Red Hat:enterprise_linux:3::es
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-pgsql
Red Hat:enterprise_linux:3::es
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php
Red Hat:enterprise_linux:3::ws
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-debuginfo
Red Hat:enterprise_linux:3::ws
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-devel
Red Hat:enterprise_linux:3::ws
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-imap
Red Hat:enterprise_linux:3::ws
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-ldap
Red Hat:enterprise_linux:3::ws
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-mysql
Red Hat:enterprise_linux:3::ws
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-odbc
Red Hat:enterprise_linux:3::ws
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-pgsql
Red Hat:enterprise_linux:3::ws
From an advisory covering 5 CVEs
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-debuginfo
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-devel
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-domxml
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-gd
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-imap
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-ldap
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-mbstring
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-mysql
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-ncurses
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-odbc
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-pear
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-pgsql
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-snmp
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-xmlrpc
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-debuginfo
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-devel
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-domxml
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-gd
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-imap
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-ldap
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-mbstring
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-mysql
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-ncurses
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-odbc
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-pear
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-pgsql
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-snmp
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-xmlrpc
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-debuginfo
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-devel
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-domxml
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-gd
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-imap
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-ldap
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-mbstring
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-mysql
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-ncurses
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-odbc
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-pear
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-pgsql
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-snmp
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-xmlrpc
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-debuginfo
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-devel
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-domxml
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-gd
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-imap
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-ldap
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-mbstring
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-mysql
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-ncurses
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-odbc
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-pear
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-pgsql
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-snmp
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2
php-xmlrpc
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.3.9-3.2
0:4.3.9-3.2

Public exploits

Links only. Every CVE stores no exploit code.

What each source reports

NVD Score used10.0

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.

Record
CVE-2004-1018
CVSS 2.0
10.0 HighAV:N/AC:L/Au:N/C:C/I:C/A:C
Updated
2026-11-02
CVE ListNo score

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.

Record
CVE-2004-1018
Updated
2026-11-02
EUVDEUVD-2004-1016No score

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.

Record
EUVD-2004-1016
Updated
2026-11-03
GitHub AdvisoriesGHSA-qgcx-fh28-73fmNo score

Multiple integer handling errors in PHP before 4.3.10 allow attackers to bypass safe mode...

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.

Record
GHSA-qgcx-fh28-73fm
Updated
2026-11-02

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, Exploit-DB, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

References

Show 43 moreShow less
MoveEnter Open