{"id":"CVE-2004-0958","aliases":["EUVD-2004-0956","GHSA-7c8x-jx93-w7hg","RHSA-2004:687"],"status":"published","title":"php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via...","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.","severity":{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.0973,"percentile":0.95552,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"published":"2004-10-16T04:00:00Z","modified":"2026-06-29T10:01:17Z","exploits":[{"source":"exploitdb","id":"EDB-24656","title":"PHP 4.x/5.0.1 - PHP_Variables Remote Memory Disclosure","type":"remote","platform":"php","date":"2004-09-15","verified":true,"url":"https://www.exploit-db.com/exploits/24656"}],"affected":[{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://archives.neohapsis.com/archives/vulnwatch/2004-q3/0053.html","tags":["mailing-list","x_refsource_VULNWATCH","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=109527531130492\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://secunia.com/advisories/12560/","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://securitytracker.com/id?1011279","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://bugzilla.fedora.us/show_bug.cgi?id=2344","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17393","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10863","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-687.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Patch","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0958","tags":["advisory"]},{"url":"http://secunia.com/advisories/12560"},{"url":"https://github.com/advisories/GHSA-7c8x-jx93-w7hg"},{"url":"https://access.redhat.com/errata/RHSA-2004:687","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=131412","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=131562","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=132003","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=134971","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=134975","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=141132","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=142056","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2004/rhsa-2004_687.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0958","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617331","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0958","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0959","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617332","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0959","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0959","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-1018","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617352","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1018","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1018","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-1019","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617353","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1019","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1019","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-1065","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617361","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1065","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1065","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2004-0958","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.","status":"published","published":"2004-10-16T04:00:00Z","modified":"2024-08-08T00:31:48.274Z","updated_at":"2026-11-02T14:34:54.758165Z"}],"euvd":[{"id":"EUVD-2004-0956","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.","status":"published","published":"2004-10-16T04:00:00Z","modified":"2024-08-08T00:31:48Z","updated_at":"2026-11-03T01:15:17.239417Z"}],"ghsa":[{"id":"GHSA-7c8x-jx93-w7hg","title":"php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via...","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.","status":"published","published":"2022-04-29T02:58:40Z","modified":"2025-04-03T04:02:49Z","updated_at":"2026-11-02T15:00:39.470148Z"}],"nvd":[{"id":"CVE-2004-0958","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.","status":"published","published":"2004-11-03T05:00:00Z","modified":"2026-06-16T22:06:44.57Z","cvss":[{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:00:51.000028Z"}],"osv":[{"id":"RHSA-2004:687","title":"Red Hat Security Advisory: php security update","status":"published","published":"2024-09-17T01:14:42Z","modified":"2026-06-29T10:01:17Z","updated_at":"2026-11-02T15:52:59.135214Z"}]}}
