Skip to content
Fencer Vulns
medium 5.0

CVE-2004-0958 json

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 vari…

published 2004-10-16 22 y ago modified 2026-06-16 4 mo ago also EUVD-2004-0956

cvss
5.0
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
9.7%
EPSS 9.7% chance of exploitation in 30 days, percentile 95%
public exploits
1
Exploit-DB

Summary

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.

Patch / fix

  • php RHEL 3 4.3.2-19.ent
  • php-imap RHEL 3 4.3.2-19.ent
  • php-ldap RHEL 3 4.3.2-19.ent
  • php-odbc RHEL 3 4.3.2-19.ent
  • php-mysql RHEL 3 4.3.2-19.ent
  • php-pgsql RHEL 3 4.3.2-19.ent

red hat advisories RHSA-2004:687

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2004-0958 updated

security flaw

  • Red Hat Desktop version 3 php 4.3.2-19.ent, php-imap 4.3.2-19.ent, php-ldap 4.3.2-19.ent, php-odbc 4.3.2-19.ent, php-mysql 4.3.2-19.ent, php-pgsql 4.3.2-19.ent Red Hat Enterprise Linux AS version 3 php 4.3.2-19.ent, php-imap 4.3.2-19.ent, php-ldap 4.3.2-19.ent, php-odbc 4.3.2-19.ent, php-mysql 4.3.2-19.ent, php-pgsql 4.3.2-19.ent Red Hat Enterprise Linux ES version 3 php 4.3.2-19.ent, php-imap 4.3.2-19.ent, php-ldap 4.3.2-19.ent, php-odbc 4.3.2-19.ent, php-mysql 4.3.2-19.ent, php-pgsql 4.3.2-19.ent Red Hat Enterprise Linux WS version 3 php 4.3.2-19.ent, php-imap 4.3.2-19.ent, php-ldap 4.3.2-19.ent, php-odbc 4.3.2-19.ent, php-mysql 4.3.2-19.ent, php-pgsql 4.3.2-19.ent
    fixed: vendor fix RHSA-2004:687

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (EDB-24656)
  2. Published

Exploit prediction

9.73% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-24656 PHP 4.x/5.0.1 - PHP_Variables Remote Memory Disclosure remote, 2004-09-15

CVSS scores

assigned by version score vector
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.