CVE-2007-5899: PHP

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

The output_add_rewrite_var function in PHP before 5.2.5 rewrites local forms in which the ACTION attribute references a non-local URL, which allows remote attackers to obtain potentially sensitive information by reading the requests for this URL, as demonstrated by a rewritten form containing a local session ID.

Affected products

  • PHP PHP: up to and including 5.2.4

Published 2007-11-20. Last modified 2026-06-16.