{"api_version":"1","generated_at":"2026-07-23T07:23:31+00:00","cve":"CVE-2004-1018","urls":{"html":"https://cve.report/CVE-2004-1018","api":"https://cve.report/api/cve/CVE-2004-1018.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2004-1018","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2004-1018"},"summary":{"title":"CVE-2004-1018","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.","state":"PUBLISHED","assigner":"mitre","published_at":"2005-01-10 05:00:00","updated_at":"2025-04-03 01:03:51"},"problem_types":["NVD-CWE-Other","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"10","severity":"","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","baseScore":10,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"http://www.hardened-php.net/advisories/012004.txt","name":"http://www.hardened-php.net/advisories/012004.txt","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Hardened PHP - Hardened-PHP","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/archive/1/384920","name":"http://www.securityfocus.com/archive/1/384920","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"SecurityFocus","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.redhat.com/support/errata/RHSA-2005-816.html","name":"http://www.redhat.com/support/errata/RHSA-2005-816.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"rhn.redhat.com | Red Hat Support","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10949","name":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10949","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Repository  /  Oval Repository","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.php.net/release_4_3_10.php","name":"http://www.php.net/release_4_3_10.php","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Release Notes","Vendor Advisory"],"title":"PHP: PHP 4.3.10 Release Announcement","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:151","name":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:151","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Advisories - Mandriva","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://marc.info/?l=bugtraq&m=110314318531298&w=2","name":"http://marc.info/?l=bugtraq&m=110314318531298&w=2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Third Party Advisory"],"title":"'Advisory 01/2004: Multiple vulnerabilities in PHP 4/5' - MARC","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.fedora.us/show_bug.cgi?id=2344","name":"https://bugzilla.fedora.us/show_bug.cgi?id=2344","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"","mime":"","httpstatus":"-1","archivestatus":"404"},{"url":"http://www.osvdb.org/12411","name":"http://www.osvdb.org/12411","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"","mime":"","httpstatus":"-1","archivestatus":"0"},{"url":"https://www.ubuntu.com/usn/usn-99-1/","name":"https://www.ubuntu.com/usn/usn-99-1/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"usn/usn-99-1 - Ubuntu Linux","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:072","name":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:072","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Advisories - Mandriva","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18515","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18515","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/12045","name":"http://www.securityfocus.com/bid/12045","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"PHP Shared Memory Module Offset Memory Corruption Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://www.redhat.com/support/errata/RHSA-2005-032.html","name":"http://www.redhat.com/support/errata/RHSA-2005-032.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"redhat.com | Red Hat Support","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/advisories/9028","name":"http://www.securityfocus.com/advisories/9028","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1018","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1018","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2004","cve_id":"1018","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"4.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1018","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-08T00:39:00.448Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"RHSA-2005:032","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://www.redhat.com/support/errata/RHSA-2005-032.html"},{"name":"oval:org.mitre.oval:def:10949","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"],"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10949"},{"name":"MDKSA-2005:072","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred"],"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:072"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.php.net/release_4_3_10.php"},{"name":"12411","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"],"url":"http://www.osvdb.org/12411"},{"name":"RHSA-2005:816","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://www.redhat.com/support/errata/RHSA-2005-816.html"},{"name":"MDKSA-2004:151","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred"],"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:151"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://www.hardened-php.net/advisories/012004.txt"},{"name":"php-shmopwrite-outofbounds-memory(18515)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18515"},{"name":"FLSA:2344","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"],"url":"https://bugzilla.fedora.us/show_bug.cgi?id=2344"},{"name":"20041219 PHP shmop.c module permits write of arbitrary memory.","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"],"url":"http://www.securityfocus.com/archive/1/384920"},{"name":"HPSBMA01212","tags":["vendor-advisory","x_refsource_HP","x_transferred"],"url":"http://www.securityfocus.com/advisories/9028"},{"name":"12045","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/12045"},{"name":"20041215 Advisory 01/2004: Multiple vulnerabilities in PHP 4/5","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"],"url":"http://marc.info/?l=bugtraq&m=110314318531298&w=2"},{"name":"USN-99-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"],"url":"https://www.ubuntu.com/usn/usn-99-1/"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2004-12-19T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-10-10T00:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"RHSA-2005:032","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://www.redhat.com/support/errata/RHSA-2005-032.html"},{"name":"oval:org.mitre.oval:def:10949","tags":["vdb-entry","signature","x_refsource_OVAL"],"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10949"},{"name":"MDKSA-2005:072","tags":["vendor-advisory","x_refsource_MANDRAKE"],"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:072"},{"tags":["x_refsource_CONFIRM"],"url":"http://www.php.net/release_4_3_10.php"},{"name":"12411","tags":["vdb-entry","x_refsource_OSVDB"],"url":"http://www.osvdb.org/12411"},{"name":"RHSA-2005:816","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://www.redhat.com/support/errata/RHSA-2005-816.html"},{"name":"MDKSA-2004:151","tags":["vendor-advisory","x_refsource_MANDRAKE"],"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:151"},{"tags":["x_refsource_MISC"],"url":"http://www.hardened-php.net/advisories/012004.txt"},{"name":"php-shmopwrite-outofbounds-memory(18515)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18515"},{"name":"FLSA:2344","tags":["vendor-advisory","x_refsource_FEDORA"],"url":"https://bugzilla.fedora.us/show_bug.cgi?id=2344"},{"name":"20041219 PHP shmop.c module permits write of arbitrary memory.","tags":["mailing-list","x_refsource_BUGTRAQ"],"url":"http://www.securityfocus.com/archive/1/384920"},{"name":"HPSBMA01212","tags":["vendor-advisory","x_refsource_HP"],"url":"http://www.securityfocus.com/advisories/9028"},{"name":"12045","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/12045"},{"name":"20041215 Advisory 01/2004: Multiple vulnerabilities in PHP 4/5","tags":["mailing-list","x_refsource_BUGTRAQ"],"url":"http://marc.info/?l=bugtraq&m=110314318531298&w=2"},{"name":"USN-99-1","tags":["vendor-advisory","x_refsource_UBUNTU"],"url":"https://www.ubuntu.com/usn/usn-99-1/"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2004-1018","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"RHSA-2005:032","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2005-032.html"},{"name":"oval:org.mitre.oval:def:10949","refsource":"OVAL","url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10949"},{"name":"MDKSA-2005:072","refsource":"MANDRAKE","url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:072"},{"name":"http://www.php.net/release_4_3_10.php","refsource":"CONFIRM","url":"http://www.php.net/release_4_3_10.php"},{"name":"12411","refsource":"OSVDB","url":"http://www.osvdb.org/12411"},{"name":"RHSA-2005:816","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2005-816.html"},{"name":"MDKSA-2004:151","refsource":"MANDRAKE","url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:151"},{"name":"http://www.hardened-php.net/advisories/012004.txt","refsource":"MISC","url":"http://www.hardened-php.net/advisories/012004.txt"},{"name":"php-shmopwrite-outofbounds-memory(18515)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18515"},{"name":"FLSA:2344","refsource":"FEDORA","url":"https://bugzilla.fedora.us/show_bug.cgi?id=2344"},{"name":"20041219 PHP shmop.c module permits write of arbitrary memory.","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/384920"},{"name":"HPSBMA01212","refsource":"HP","url":"http://www.securityfocus.com/advisories/9028"},{"name":"12045","refsource":"BID","url":"http://www.securityfocus.com/bid/12045"},{"name":"20041215 Advisory 01/2004: Multiple vulnerabilities in PHP 4/5","refsource":"BUGTRAQ","url":"http://marc.info/?l=bugtraq&m=110314318531298&w=2"},{"name":"USN-99-1","refsource":"UBUNTU","url":"https://www.ubuntu.com/usn/usn-99-1/"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2004-1018","datePublished":"2004-12-08T05:00:00.000Z","dateReserved":"2004-11-04T00:00:00.000Z","dateUpdated":"2024-08-08T00:39:00.448Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2005-01-10 05:00:00","lastModifiedDate":"2025-04-03 01:03:51","problem_types":["NVD-CWE-Other","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","baseScore":10,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionEndExcluding":"4.3.10","matchCriteriaId":"3DD9E911-6126-498A-AAFB-8A6E9367B342"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:canonical:ubuntu_linux:4.10:*:*:*:*:*:*:*","matchCriteriaId":"778A6957-455B-420A-BAAF-E7F88FF4FB1E"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2004","CveId":"1018","Ordinal":"1","Title":"CVE-2004-1018","CVE":"CVE-2004-1018","Year":"2004"},"notes":[{"CveYear":"2004","CveId":"1018","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2004-1018"},{"CveYear":"2004","CveId":"1018","Ordinal":"2","NoteData":"2004-12-08","Type":"Other","Title":"Published"},{"CveYear":"2004","CveId":"1018","Ordinal":"3","NoteData":"2017-10-09","Type":"Other","Title":"Modified"}]}}}