All vulnerabilities

Servers and applications

CVE-2007-1581

The resource system in PHP 5.0.0 through 5.2.1 allows context-dependent attackers to execute arbitrary code by interrupting the hash_update_file function via a userspace (1) error or (2) stream handler, which can then be used to destroy and modify internal resources. NOTE: it was later reported that PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 are also affected.

Severity
High 9.3
Published
21 Mar 2007
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Exploit chance
8% in the next 30 daysHigher than 94% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Code injection (CWE-94)
Attack
Over the network · No login needed
Attacker can
Read data · Change data · Take it down
CVSS vector
AV:N/AC:M/Au:N/C:C/I:C/A:C
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Version 5.3.2
  • Version 5.3.1
  • Version 5.3.0
  • Version 5.2.13
All 33 release lines
  • Version 5.0-rc1
  • Version 5.0-rc2
  • Version 5.0-rc3
  • Version 5.0.0
  • Version 5.0.1
  • Version 5.0.2
  • Version 5.0.3
  • Version 5.0.4
  • Version 5.0.5
  • Version 5.1.0
  • Version 5.1.1
  • Version 5.1.2
  • Version 5.1.3
  • Version 5.1.4
  • Version 5.1.5
  • Version 5.1.6
  • Version 5.2.0
  • Version 5.2.1
  • Version 5.2.2
  • Version 5.2.3
  • Version 5.2.4
  • Version 5.2.5
  • Version 5.2.6
  • Version 5.2.7
  • Version 5.2.8
  • Version 5.2.9
  • Version 5.2.10
  • Version 5.2.11
  • Version 5.2.12
  • Version 5.2.13
  • Version 5.3.0
  • Version 5.3.1
  • Version 5.3.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2007-1581
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2007-1581