CVE-2004-0958: PHP

Medium severity, CVSS 5.0. EPSS: 9.7% chance of exploitation in the next 30 days.

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.

Affected products

  • PHP PHP: up to and including 5.0.2

Published 2004-11-03. Last modified 2026-06-16.