CVE-2007-1582 Code injection in n/a

Medium 6.8 Published Updated

Attackers can execute arbitrary code in PHP by interrupting GD extension functions via a userspace error handler, affecting PHP 4 and 5.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2007-1582?

CVE-2007-1582 is a medium-severity code injection vulnerability in Php Php, published on 21 Mar 2007. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The 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.

Which versions are affected by CVE-2007-1582?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2007-1582?

No fix has been published for CVE-2007-1582 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2007-1582 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-1582 exists.

Public exploit code: 1 Exploit-DB entry.

All Php Php vulnerabilities

Sources

Also known as GHSA-2hp8-hp3g-4285.

Is CVE-2007-1582 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free