GHSA-q745-cfqh-hcrwmedium4.9
phpThumb is vulnerable to Command Injection through its gif_outputAsJpeg function
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
james-heinrich/phpthumb Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases through 1.7.23 (inclusive)Ecosystem versions | Not recorded |
Version evidence: OSV · GHSA-q745-cfqh-hcrw
View original version evidence (12 explicit versions)
Original source 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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2025-52994
- Patch github.com/JamesHeinrich/phpThumb/commit/cdcbc206ae601b15fd17e7aadf59df51149a0e82
- Source reference github.com/JamesHeinrich/phpThumb
- Source reference github.com/JamesHeinrich/phpThumb/releases
- Security advisory safety-online.pl/cve-2025-52994