{"id":"CVE-2004-0958","url":"https://www.cyber-defence.io/tools/cve/CVE-2004-0958","generatedAt":"2026-10-27T18:40:39.445Z","title":"php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via (1) GET, (2) POST, or (3) COOKIE GPC variables that end in an open bracket character, which causes PHP to calculate an incorrect string length.","description":"php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via (1) GET, (2) POST, or (3) COOKIE GPC variables that end in an open bracket character, which causes PHP to calculate an incorrect string length.","published":"2004-11-03T05:00:00.000Z","lastModified":"2026-06-16T22:06:45.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"2.0","score":5,"severity":"MEDIUM","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N"},"cwe":[],"affected":["php/php"],"epss":{"score":0.0973,"percentile":0.95484,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":1,"verified":true,"firstPublished":"2004-09-15","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":24656,"kind":"exploit","title":"PHP 4.x/5.0.1 - PHP_Variables Remote Memory Disclosure","url":"https://www.exploit-db.com/exploits/24656","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/remote/24656.txt","file":"exploits/php/remote/24656.txt","published":"2004-09-15","added":"2004-09-15","updated":"2013-03-08","author":"Stefano Di Paola","type":"remote","platform":"php","port":null,"verified":true,"codes":["CVE-2004-0958","OSVDB-12601"],"tags":null,"aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://www.securityfocus.com/bid/11334/info"}]},"verdict":{"level":"high","text":"A public exploit is published in Exploit-DB (verified), so the technical barrier is gone even though the severity is medium and EPSS is 9.7%. Treat it as high on anything reachable from the internet."},"changes":[],"references":[{"url":"http://archives.neohapsis.com/archives/vulnwatch/2004-q3/0053.html","source":"cve@mitre.org"},{"url":"http://marc.info/?l=bugtraq&m=109527531130492&w=2","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/12560/","source":"cve@mitre.org"},{"url":"http://securitytracker.com/id?1011279","source":"cve@mitre.org"},{"url":"http://www.redhat.com/support/errata/RHSA-2004-687.html","tags":["Patch","Vendor Advisory"],"source":"cve@mitre.org"},{"url":"https://bugzilla.fedora.us/show_bug.cgi?id=2344","source":"cve@mitre.org"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17393","source":"cve@mitre.org"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10863","source":"cve@mitre.org"},{"url":"http://archives.neohapsis.com/archives/vulnwatch/2004-q3/0053.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://marc.info/?l=bugtraq&m=109527531130492&w=2","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/12560/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://securitytracker.com/id?1011279","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.redhat.com/support/errata/RHSA-2004-687.html","tags":["Patch","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugzilla.fedora.us/show_bug.cgi?id=2344","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17393","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10863","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2004-0958","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}