CVE-2007-1522: PHP

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

Double free vulnerability in the session extension in PHP 5.2.0 and 5.2.1 allows context-dependent attackers to execute arbitrary code via illegal characters in a session identifier, which is rejected by an internal session storage module, which calls the session identifier generator with an improper environment, leading to code execution when the generator is interrupted, as demonstrated by triggering a memory limit violation or certain PHP errors.

Affected products

  • PHP PHP: version 5.2.0 only; version 5.2.1 only

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