CVE-2025-52994 phpThumb is vulnerable to Command Injection through its gif_outputAsJpeg function

Medium 4.9 Published Updated

Attackers can execute arbitrary OS commands via crafted parameters in phpThumb, requiring immediate patching for all users.

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-2025-52994?

CVE-2025-52994 is a medium-severity command injection vulnerability in phpThumb, published on 11 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

gif_outputAsJpeg in phpThumb through 1.7.23 allows phpthumb.gif.php OS Command Injection via a crafted parameter value. This is fixed in 1.7.23-202506081709.

Weakness: CWE-78

Which versions are affected by CVE-2025-52994?

2 open source packages ship an affected version, including james-heinrich/phpthumb.

PackageAffectedFixed in
james-heinrich/phpthumb PackagistAll versions to 1.7.23None
james-heinrich/phpthumb PackagistAll versions to 1.7.23None

How do I fix CVE-2025-52994?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-52994 being exploited?

There is no known exploitation of CVE-2025-52994 in the wild and no public exploit code.

Sources

Also known as GHSA-q745-cfqh-hcrw.

Is CVE-2025-52994 in your software?

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

Check your SBOMs for free