SecurityContext

CVE-2007-1522: PHP - Use After Free

  • Cve: CVE-2007-1522
  • Name: PHP - Use After Free
  • Description: 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.
  • Impact: Attackers can execute arbitrary code on the server, potentially leading to full system compromise.
  • Remediation: Update to the latest PHP version where this vulnerability is fixed.
  • Vulnerability type: use_after_free
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.8
  • Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:P
  • Epss score: 0.06706
  • Epss percentile: 0.94081
  • Assignee: [email protected]
  • Published at: 2007-03-20T20:19:00Z
  • Age in days: 7189
  • Modified at: 2026-06-16T22:37:45Z
  • Public exploits total: 1
  • References total: 6
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2007-1522
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
NVD-CWE-Other—

Public exploits

UrlSourceAdded date
http://www.php-security.org/MOPB/MOPB-23-2007.htmlnvd2007-03-20

References

Same in every row:

  • Source: nvd
UrlTags
http://www.php-security.org/MOPB/MOPB-23-2007.htmlExploit, Vendor Advisory
http://secunia.com/advisories/24505
http://secunia.com/advisories/25056
http://www.novell.com/linux/security/advisories/2007_32_php.html
http://www.securityfocus.com/bid/22971
http://www.vupen.com/english/advisories/2007/0960

Products

ProductAffectedPlatform boundSourcesUrl
php:php= 5.2.1, = 5.2.0nonvd/v1/products/php/php

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2007-03-20
  • Remote: yes
  • Exposed hosts: 6175026
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports