Medium

phpThumb is vulnerable to Command Injection through its gif_outputAsJpeg function

  • Disclosed: 11.07.2025
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package james-heinrich/phpthumb <= 1.7.23 no fix

References

CVSS score 4.9/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-78
Platform
Composer
Package
james-heinrich/phpthumb
Disclosed
11.07.2025
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-q745-cfqh-hcrw - CC BY 4.0

Vulnerability history: james-heinrich/phpthumb

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
05.2022 07.2025
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • Medium 2

Disclosures per year

  1. 2022: 1
  2. 2023: 0
  3. 2024: 0
  4. 2025: 1
  5. 2026: 0
  1. phpThumb is vulnerable to Command Injection through its gif_outputAsJpeg function this entry
    Medium · 4.9 CVE-2025-52994 <= 1.7.23 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.