CVE-2004-1018
No CVSS score yet. EPSS 16% estimated probability of exploitation activity in the next 30 days.
On this page
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.
- EPSS
- 16% (unchanged from 16% a week ago; 16% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
- Published
- Modified
- NVD analysis
- Analyzed, since modified
- Record from
- the NVD, synced
Fix and patched versions
- Red Hat: fixed package versions per release
- Vendor advisory: http://www.php.net/release_4_3_10.php
Ask an AI about this CVE
Show the prompt
Explain CVE-2004-1018 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2004-1018?via=ask-ai-copy and https://cve.bz/cve/CVE-2004-1018?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2004-1018 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| php:php | before 4.3.10 |
| canonical:ubuntu_linux | 4.10 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Red Hat | enterprise_linux:3::as, enterprise_linux:3::desktop, enterprise_linux:3::es and 1 more | php, php-imap, php-ldap and 5 more | 0:4.3.2-19.ent | RHSA-2004:687 |
| Red Hat | enterprise_linux:4::as, enterprise_linux:4::desktop, enterprise_linux:4::es and 1 more | php, php-gd, php-imap and 12 more | 0:4.3.9-3.2 | RHSA-2005:032 |
From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.
Red Hat
Red Hat rates this Low.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 3 | php-0:4.3.2-19.ent | Fixed 2004-12-21 | RHSA-2004:687 |
| Red Hat Enterprise Linux 4 | php-0:4.3.9-3.2 | Fixed 2005-02-15 | RHSA-2005:032 |
| Red Hat Enterprise Linux AS (Advanced Server) version 2.1 | Fixed 2005-01-19 | RHSA-2005:031 | |
| Red Hat Enterprise Linux ES version 2.1 | Fixed 2005-01-19 | RHSA-2005:031 | |
| Red Hat Enterprise Linux WS version 2.1 | Fixed 2005-01-19 | RHSA-2005:031 | |
| Red Hat Linux Advanced Workstation 2.1 | Fixed 2005-01-19 | RHSA-2005:031 | |
| Red Hat Stronghold 4 | Fixed 2005-12-19 | RHSA-2005:882 | |
| Stronghold 4.0 for Red Hat Enterprise Linux AS (version 2.1) | Fixed 2005-11-02 | RHSA-2005:816 |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2004-1018.
Public exploits
- Exploit-DB PHP 3/4/5 - Multiple Local/Remote Vulnerabilities (1)
- Exploit-DB PHP 3/4/5 - Multiple Local/Remote Vulnerabilities (2)
References
- http://www.php.net/release_4_3_10.php
- http://marc.info/?l=bugtraq&m=110314318531298&w=2
- http://www.hardened-php.net/advisories/012004.txt
- http://www.mandriva.com/security/advisories?name=MDKSA-2004:151
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:072
- http://www.osvdb.org/12411
- http://www.redhat.com/support/errata/RHSA-2005-032.html
- http://www.redhat.com/support/errata/RHSA-2005-816.html
- http://www.securityfocus.com/advisories/9028
- http://www.securityfocus.com/archive/1/384920
- http://www.securityfocus.com/bid/12045
- https://bugzilla.fedora.us/show_bug.cgi?id=2344
- https://exchange.xforce.ibmcloud.com/vulnerabilities/18515
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10949
- https://www.ubuntu.com/usn/usn-99-1/