CVE-2004-0958
php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via...
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.
Exploit likelihood
What each source reports
NVD Score used
5.0
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.
- Record
CVE-2004-0958- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2004-0958- Updated
- 2026-11-02
EUVDEUVD-2004-0956 No score
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.
- Record
EUVD-2004-0956- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-7c8x-jx93-w7hg No score
php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via...
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.
- Record
GHSA-7c8x-jx93-w7hg- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
phpRed Hat:enterprise_linux:3::as From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-debuginfoRed Hat:enterprise_linux:3::as From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-develRed Hat:enterprise_linux:3::as From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-imapRed Hat:enterprise_linux:3::as From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-ldapRed Hat:enterprise_linux:3::as From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-mysqlRed Hat:enterprise_linux:3::as From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-odbcRed Hat:enterprise_linux:3::as From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-pgsqlRed Hat:enterprise_linux:3::as From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
phpRed Hat:enterprise_linux:3::desktop From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-debuginfoRed Hat:enterprise_linux:3::desktop From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
Show 22 moreShow less
| Package | Affected | Fixed |
|---|---|---|
php-develRed Hat:enterprise_linux:3::desktop From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-imapRed Hat:enterprise_linux:3::desktop From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-ldapRed Hat:enterprise_linux:3::desktop From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-mysqlRed Hat:enterprise_linux:3::desktop From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-odbcRed Hat:enterprise_linux:3::desktop From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-pgsqlRed Hat:enterprise_linux:3::desktop From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
phpRed Hat:enterprise_linux:3::es From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-debuginfoRed Hat:enterprise_linux:3::es From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-develRed Hat:enterprise_linux:3::es From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-imapRed Hat:enterprise_linux:3::es From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-ldapRed Hat:enterprise_linux:3::es From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-mysqlRed Hat:enterprise_linux:3::es From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-odbcRed Hat:enterprise_linux:3::es From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-pgsqlRed Hat:enterprise_linux:3::es From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
phpRed Hat:enterprise_linux:3::ws From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-debuginfoRed Hat:enterprise_linux:3::ws From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-develRed Hat:enterprise_linux:3::ws From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-imapRed Hat:enterprise_linux:3::ws From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-ldapRed Hat:enterprise_linux:3::ws From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-mysqlRed Hat:enterprise_linux:3::ws From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-odbcRed Hat:enterprise_linux:3::ws From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
php-pgsqlRed Hat:enterprise_linux:3::ws From an advisory covering 5 CVEs |
before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | PHP 4.x/5.0.1 - PHP_Variables Remote Memory Disclosure | 2004-09-15 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2004-0958 is a medium vulnerability (CVSS 5.0) in Php, published October 16, 2004. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 9.73%, the 95th percentile. No source names a fixed version.
References
archives.neohapsis.com/archives/vulnwatch/2004-q3/0053.html
marc.info?l=bugtraq&m=109527531130492&w=2
secunia.com/advisories/12560
securitytracker.com/id?1011279
bugzilla.fedora.us/show_bug.cgi?id=2344
exchange.xforce.ibmcloud.com/vulnerabilities/17393
Show 33 moreShow less
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10863
redhat.com/support/errata/RHSA-2004-687.html
nvd.nist.gov/vuln/detail/CVE-2004-0958
github.com/advisories/GHSA-7c8x-jx93-w7hg
access.redhat.com/errata/RHSA-2004:687
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=131412
bugzilla.redhat.com/show_bug.cgi?id=131562
bugzilla.redhat.com/show_bug.cgi?id=132003
bugzilla.redhat.com/show_bug.cgi?id=134971
bugzilla.redhat.com/show_bug.cgi?id=134975
bugzilla.redhat.com/show_bug.cgi?id=141132
bugzilla.redhat.com/show_bug.cgi?id=142056
security.access.redhat.com/data/csaf/v2/advisories/2004/rhsa-2004_687.json
access.redhat.com/security/cve/CVE-2004-0958
bugzilla.redhat.com/show_bug.cgi?id=1617331
cve.org/CVERecord?id=CVE-2004-0958
access.redhat.com/security/cve/CVE-2004-0959
bugzilla.redhat.com/show_bug.cgi?id=1617332
cve.org/CVERecord?id=CVE-2004-0959
nvd.nist.gov/vuln/detail/CVE-2004-0959
access.redhat.com/security/cve/CVE-2004-1018
bugzilla.redhat.com/show_bug.cgi?id=1617352
cve.org/CVERecord?id=CVE-2004-1018
nvd.nist.gov/vuln/detail/CVE-2004-1018
access.redhat.com/security/cve/CVE-2004-1019
bugzilla.redhat.com/show_bug.cgi?id=1617353
cve.org/CVERecord?id=CVE-2004-1019
nvd.nist.gov/vuln/detail/CVE-2004-1019
access.redhat.com/security/cve/CVE-2004-1065
bugzilla.redhat.com/show_bug.cgi?id=1617361
cve.org/CVERecord?id=CVE-2004-1065
nvd.nist.gov/vuln/detail/CVE-2004-1065