Every CVE Search/ 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 exploitFix available

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. Fixed in php 0:4.3.2-19.ent.

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%

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 MediumAV: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

Affected packages
PackageAffectedFixed
php
Red Hat:enterprise_linux:3::as
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-debuginfo
Red Hat:enterprise_linux:3::as
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-devel
Red Hat:enterprise_linux:3::as
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-imap
Red Hat:enterprise_linux:3::as
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-ldap
Red Hat:enterprise_linux:3::as
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-mysql
Red Hat:enterprise_linux:3::as
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-odbc
Red Hat:enterprise_linux:3::as
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-pgsql
Red Hat:enterprise_linux:3::as
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php
Red Hat:enterprise_linux:3::desktop
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-debuginfo
Red Hat:enterprise_linux:3::desktop
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
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-imap
Red Hat:enterprise_linux:3::desktop
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-ldap
Red Hat:enterprise_linux:3::desktop
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-mysql
Red Hat:enterprise_linux:3::desktop
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-odbc
Red Hat:enterprise_linux:3::desktop
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-pgsql
Red Hat:enterprise_linux:3::desktop
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php
Red Hat:enterprise_linux:3::es
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-debuginfo
Red Hat:enterprise_linux:3::es
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-devel
Red Hat:enterprise_linux:3::es
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-imap
Red Hat:enterprise_linux:3::es
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-ldap
Red Hat:enterprise_linux:3::es
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-mysql
Red Hat:enterprise_linux:3::es
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-odbc
Red Hat:enterprise_linux:3::es
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-pgsql
Red Hat:enterprise_linux:3::es
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php
Red Hat:enterprise_linux:3::ws
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-debuginfo
Red Hat:enterprise_linux:3::ws
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-devel
Red Hat:enterprise_linux:3::ws
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-imap
Red Hat:enterprise_linux:3::ws
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-ldap
Red Hat:enterprise_linux:3::ws
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-mysql
Red Hat:enterprise_linux:3::ws
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-odbc
Red Hat:enterprise_linux:3::ws
before 0:4.3.2-19.ent
0:4.3.2-19.ent
php-pgsql
Red Hat:enterprise_linux:3::ws
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

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, Exploit-DB, GitHub Advisories, NVD, OSV

References

Show 33 moreShow less
MoveEnter Open