CVE-2007-1582

Summary

CVECVE-2007-1582
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2007-03-21 23:19:00 UTC
Updated2026-04-23 00:35:47 UTC
DescriptionThe resource system in PHP 4.0.0 through 4.4.6 and 5.0.0 through 5.2.1 allows context-dependent attackers to execute arbitrary code by interrupting certain functions in the GD (ext/gd) extension and unspecified other extensions via a userspace error handler, which can be used to destroy and modify internal resources.

Risk And Classification

Primary CVSS: v2.0 6.8 from [email protected]

AV:N/AC:M/Au:N/C:P/I:P/A:P

Problem Types: NVD-CWE-Other | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:M/Au:N/C:P/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Php Php 4.0 All All All
Application Php Php 4.0 beta1 All All
Application Php Php 4.0 beta2 All All
Application Php Php 4.0 beta3 All All
Application Php Php 4.0 beta4 All All
Application Php Php 4.0 beta_4_patch1 All All
Application Php Php 4.0 rc1 All All
Application Php Php 4.0 rc2 All All
Application Php Php 4.0.0 All All All
Application Php Php 4.0.1 All All All
Application Php Php 4.0.1 patch1 All All
Application Php Php 4.0.1 patch2 All All
Application Php Php 4.0.2 All All All
Application Php Php 4.0.3 All All All
Application Php Php 4.0.3 patch1 All All
Application Php Php 4.0.4 All All All
Application Php Php 4.0.4 patch1 All All
Application Php Php 4.0.5 All All All
Application Php Php 4.0.6 All All All
Application Php Php 4.0.7 All All All
Application Php Php 4.0.7 rc1 All All
Application Php Php 4.0.7 rc2 All All
Application Php Php 4.0.7 rc3 All All
Application Php Php 4.1.0 All All All
Application Php Php 4.1.1 All All All
Application Php Php 4.1.2 All All All
Application Php Php 4.2 All dev All
Application Php Php 4.2.0 All All All
Application Php Php 4.2.1 All All All
Application Php Php 4.2.2 All All All
Application Php Php 4.2.3 All All All
Application Php Php 4.3.0 All All All
Application Php Php 4.3.1 All All All
Application Php Php 4.3.10 All All All
Application Php Php 4.3.11 All All All
Application Php Php 4.3.2 All All All
Application Php Php 4.3.3 All All All
Application Php Php 4.3.4 All All All
Application Php Php 4.3.5 All All All
Application Php Php 4.3.6 All All All
Application Php Php 4.3.7 All All All
Application Php Php 4.3.8 All All All
Application Php Php 4.3.9 All All All
Application Php Php 4.4.0 All All All
Application Php Php 4.4.1 All All All
Application Php Php 4.4.2 All All All
Application Php Php 4.4.3 All All All
Application Php Php 4.4.4 All All All
Application Php Php 4.4.5 All All All
Application Php Php 4.4.6 All All All
Application Php Php 5.0 rc1 All All
Application Php Php 5.0 rc2 All All
Application Php Php 5.0 rc3 All All
Application Php Php 5.0.0 All All All
Application Php Php 5.0.0 beta1 All All
Application Php Php 5.0.0 beta2 All All
Application Php Php 5.0.0 beta3 All All
Application Php Php 5.0.0 beta4 All All
Application Php Php 5.0.0 rc1 All All
Application Php Php 5.0.0 rc2 All All
Application Php Php 5.0.0 rc3 All All
Application Php Php 5.0.1 All All All
Application Php Php 5.0.2 All All All
Application Php Php 5.0.3 All All All
Application Php Php 5.0.4 All All All
Application Php Php 5.0.5 All All All
Application Php Php 5.1.0 All All All
Application Php Php 5.1.1 All All All
Application Php Php 5.1.2 All All All
Application Php Php 5.1.3 All All All
Application Php Php 5.1.4 All All All
Application Php Php 5.1.5 All All All
Application Php Php 5.1.6 All All All
Application Php Php 5.2.0 All All All
Application Php Php 5.2.1 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
PHP Multiple Code Execution Vulnerabilities - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Vendor Advisory
PHP <= 4.4.6 / 5.2.1 ext/gd Already Freed Resources Usage Exploit af854a3a-2127-422b-91ae-364da2661108 www.exploit-db.com
PHP GD Extension Freed Resource Access Code Execution Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
MOPB-27-2007:PHP ext/gd Already Freed Resource Access Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.php-security.org Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

OrganizationPublishedContributorStatement
Red Hat2007-04-16Mark J CoxThe PHP interpreter does not offer a reliable &quot;sandboxed&quot; security layer (as found in, say, a JVM) in which untrusted scripts can be run; any script run by the PHP interpreter must be trusted with the privileges of the interpreter itself. We therefore do not classify this issue as security-sensitive since no trust boundary is crossed.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report