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.
CVE-2004-1018
This CVE was only ever scored under CVSS v2.0. NVD CVSS v2.0 base 10.0 — v2 rates that HIGH (v2 bands: LOW 0.0–3.9 / MEDIUM 4.0–6.9 / HIGH 7.0–10.0; v2 has no CRITICAL band). Vector AV:N/AC:L/Au:N/C:C/I:C/A:C. CVSS v2 is an older, coarser metric than v3.1/v4.0 (no Scope, no User Interaction, no Attack Requirements), so it is not directly comparable to a v3 or v4 score. NVD has never re-scored this record under v3. EPSS predicts 16.2% exploitation probability in the next 30 days, which is reflected in EG Risk but does not lift the v2 base. Confidence: LOW.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v2.0 (legacy)
- 10.0HIGHNVD never assigned a CVSS v3 rating to this CVE
- EG Score
- 10.0(low)
- EG Risk
- 76(Track)EG Risk 76/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity100% × 45%Exploitation65% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 16%
- EPSS %ILE
- 97%
- KEV
- Not listed
Published
January 10, 2005
Last Modified
June 16, 2026
References (30)
- cve@mitrehttp://marc.info/?l=bugtraq&m=110314318531298&w=2
- cve@mitrehttp://www.hardened-php.net/advisories/012004.txt
- cve@mitrehttp://www.mandriva.com/security/advisories?name=MDKSA-2004:151
- cve@mitrehttp://www.mandriva.com/security/advisories?name=MDKSA-2005:072
- cve@mitrehttp://www.osvdb.org/12411
- cve@mitrehttp://www.php.net/release_4_3_10.php
- cve@mitrehttp://www.redhat.com/support/errata/RHSA-2005-032.html
- cve@mitrehttp://www.redhat.com/support/errata/RHSA-2005-816.html
- cve@mitrehttp://www.securityfocus.com/advisories/9028
- cve@mitrehttp://www.securityfocus.com/archive/1/384920
- cve@mitrehttp://www.securityfocus.com/bid/12045
- cve@mitrehttps://bugzilla.fedora.us/show_bug.cgi?id=2344
- cve@mitrehttps://exchange.xforce.ibmcloud.com/vulnerabilities/18515
- cve@mitrehttps://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10949
- cve@mitrehttps://www.ubuntu.com/usn/usn-99-1/
Patch Availability(6)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | php4-cgi () @ warty | 2026-05-31 | ubuntu |
| redhat | patch | 2005-12-19 | redhat |
| redhat | patch | 2005-11-02 | redhat |
| redhat | php-0:4.3.9-3.2 | 2005-02-15 | redhat |
| redhat | patch | 2005-01-19 | redhat |
| redhat | php-0:4.3.2-19.ent | 2004-12-21 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
All Vendor Advisories
(6)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
- Red HatRHSA-2004:687LOW2004-12-15
RHSA-2004:687 — Low
- Red HatRHSA-2005:031LOW2004-12-15
RHSA-2005:031 — Low
- Red HatRHSA-2005:032LOW2004-12-15
RHSA-2005:032 — Low
- Red HatRHSA-2005:816LOW2004-12-15
RHSA-2005:816 — Low
- Red HatRHSA-2005:882LOW2004-12-15
RHSA-2005:882 — Low
- UbuntuUSN-99-1MEDIUM
PHP4 vulnerabilities
Data Freshness Timeline
(refreshed 8× in last 7d / 24× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-26 13:24 UTCEG score recompute▲ 10.00
- 2026-07-25 14:11 UTCEPSS rescore
- 2026-07-24 14:11 UTCEPSS rescore
- 2026-07-23 00:46 UTCEG score recompute
- 2026-07-23 00:27 UTCEG score recompute
- 2026-07-22 23:50 UTCEG score recompute
- 2026-07-22 21:30 UTCEG score recompute
- 2026-07-20 17:02 UTCEPSS rescore
- 2026-07-19 14:25 UTCEPSS rescore
- 2026-07-18 09:59 UTCEPSS rescore
- 2026-07-18 09:59 UTCEPSS rescore
- 2026-07-16 16:58 UTCEPSS rescore
- 2026-07-15 01:55 UTCEPSS rescore
- 2026-07-15 01:55 UTCEPSS rescore
- 2026-07-13 06:07 UTCEPSS rescore
- 2026-07-11 08:22 UTCEPSS rescore
- 2026-07-11 08:22 UTCEPSS rescore
- 2026-07-08 15:09 UTCEPSS rescore
- 2026-07-02 14:00 UTCEPSS rescore
- 2026-06-29 14:02 UTCEPSS rescore
- 2026-06-29 14:02 UTCEPSS rescore
- 2026-06-28 14:02 UTCEPSS rescore
- 2026-06-28 04:52 UTCEPSS rescore
- 2026-06-27 03:04 UTCEPSS rescore
- 2026-06-23 21:29 UTCEPSS rescore
Show 45 moreShow fewer
- 2026-06-21 14:52 UTCEPSS rescore
- 2026-06-21 01:56 UTCEPSS rescore
- 2026-06-18 17:49 UTCEPSS rescore
- 2026-06-18 17:49 UTCEPSS rescore
- 2026-06-17 17:49 UTCEPSS rescore
- 2026-06-17 17:49 UTCEPSS rescore
- 2026-06-16 17:49 UTCEPSS rescore
- 2026-06-16 17:49 UTCEPSS rescore
- 2026-06-15 17:43 UTCEPSS rescore
- 2026-06-14 23:13 UTCEPSS rescore
- 2026-06-14 23:13 UTCEPSS rescore
- 2026-06-13 22:56 UTCEPSS rescore
- 2026-06-12 23:08 UTCEPSS rescore
- 2026-06-11 13:55 UTCEPSS rescore
- 2026-06-10 22:13 UTCEPSS rescore
- 2026-06-10 13:17 UTCEPSS rescore
- 2026-06-06 13:44 UTCEPSS rescore
- 2026-06-06 13:44 UTCEPSS rescore
- 2026-06-06 13:44 UTCEPSS rescore
- 2026-06-05 22:43 UTCEPSS rescore
- 2026-06-05 22:43 UTCEPSS rescore
- 2026-06-04 13:09 UTCEPSS rescore
- 2026-06-02 20:10 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-05-31 14:32 UTCEG score recompute
- 2026-05-31 14:32 UTCVendor advisory
- 2026-05-31 14:32 UTCGHSA enrichment
- 2026-05-31 00:13 UTCEPSS rescore
- 2026-05-31 00:13 UTCEPSS rescore
- 2026-05-29 13:40 UTCEPSS rescore
- 2026-05-29 13:40 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-27 13:37 UTCEPSS rescore
- 2026-05-26 13:41 UTCEPSS rescore
- 2026-05-26 13:41 UTCEPSS rescore
- 2026-05-24 16:42 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-20 22:36 UTCEPSS rescore
- 2026-05-20 11:20 UTCEPSS rescore
- 2026-05-20 11:20 UTCEPSS rescore
- 2026-05-18 21:29 UTCEPSS rescore
- 2026-05-18 21:29 UTCEPSS rescore
Publicly available exploits
(2 references)Working exploit code is in the public domain (2 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-24854✓ verifiedFirst seen Dec 15, 2004
PHP 3/4/5 - Multiple Local/Remote Vulnerabilities (1)
Open source ↗ - Exploit-DBEDB-24855✓ verifiedFirst seen Dec 15, 2004
PHP 3/4/5 - Multiple Local/Remote Vulnerabilities (2)
Open source ↗
Related CVEs(same vendor)
Same vendor
10 shownredhat
- CVE-2001-0825NVD 0.0EG 10.0NONE
- CVE-2001-1009NVD 0.0EG 10.0EPSS 93%NONE
- CVE-2001-0554NVD 0.0EG 10.0EPSS 98%NONE
- CVE-2001-1162NVD 0.0EG 10.0EPSS 96%NONE
- CVE-2001-0414NVD 0.0EG 10.0EPSS 100%NONE
- CVE-2001-0191NVD 0.0EG 10.0EPSS 92%NONE
- CVE-2001-0301NVD 0.0EG 10.0EPSS 90%NONE
- CVE-2001-0197NVD 0.0EG 10.0EPSS 96%NONE
- CVE-2001-0233NVD 0.0EG 10.0EPSS 96%NONE
- CVE-2001-0010NVD 0.0EG 10.0EPSS 98%NONE
Frequently asked(4)
What is CVE-2004-1018?
When was CVE-2004-1018 disclosed?
Is CVE-2004-1018 actively exploited?
How do I remediate CVE-2004-1018?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2004-1018
Is Your Infrastructure Affected by CVE-2004-1018?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.