Every CVESearch/Get API key

CVE-2004-0958

php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via...

5.0 MediumPublic exploit

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.

What does this mean?
Severity
5.0 MediumCVSS 2.0, NVD
Exploit chance
9.73%EPSS, 95th percentile
Exploitation
None known1 public exploit
Fixed in
No fix listedNo source names one

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.

Exploit likelihood

9.73%Up 2.5 points since Feb 4, 2022
90%50%10%1%

Affected products

Affected packages

Affected packages
PackageAffectedFixed
php
Red 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-debuginfo
Red 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-devel
Red 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-imap
Red 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-ldap
Red 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-mysql
Red 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-odbc
Red 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-pgsql
Red 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
Red 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-debuginfo
Red 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
Affected packages
PackageAffectedFixed
php-devel
Red 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-imap
Red 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-ldap
Red 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-mysql
Red 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-odbc
Red 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-pgsql
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-imap
Red 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-ldap
Red 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-mysql
Red 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-odbc
Red 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-pgsql
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-imap
Red 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-ldap
Red 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-mysql
Red 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-odbc
Red 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-pgsql
Red 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.

Public exploits
SourceLinkDate
Exploit-DBPHP 4.x/5.0.1 - PHP_Variables Remote Memory Disclosure2004-09-15

What each source reports

NVD Score used5.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 MediumAV:N/AC:L/Au:N/C:P/I:N/A:N
Updated
2026-11-02
CVE ListNo 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-0956No 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-w7hgNo 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

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, Exploit-DB, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

References

Show 33 moreShow less
MoveEnter Open