# phpThumb is vulnerable to Command Injection through its gif_outputAsJpeg function

Advisory record · `GHSA-q745-cfqh-hcrw`

- **Identifiers:** `GHSA-q745-cfqh-hcrw` · `CVE-2025-52994` · `PKSA-hmp4-h7hb-bhj5`
- **State:** Confirmed
- **Severity:** CVSS 4.9 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-78](https://cwe.mitre.org/data/definitions/78.html)
- **Tags:** [Command injection](https://agentprime.io/advisories/tag/command-injection.md)
- **Published:** 11 Jul 2025
- **Updated:** 11 Jul 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 11 Jul 2025, 15:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `james-heinrich/phpthumb` (Packagist): affected `<=1.7.23`; no fixed version yet

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> phpThumb through version 1.7.23 is vulnerable to OS command injection in the gif_outputAsJpeg function, reachable through phpthumb.gif.php via a crafted parameter value. The source gives few details on what access an attacker needs, but successful exploitation would let them run operating system commands. Upgrade to 1.7.23-202506081709, which fixes this issue.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 4.9 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N`, from CNA (mitre)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0069, the 53rd percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:27 UTC: First seen by agentprime
- 31 Oct 2026, 14:27 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-q745-cfqh-hcrw)

## Sources

- [GitHub Advisory Database: GHSA-q745-cfqh-hcrw](https://github.com/advisories/GHSA-q745-cfqh-hcrw)
- [OSV: GHSA-q745-cfqh-hcrw](https://osv.dev/vulnerability/GHSA-q745-cfqh-hcrw)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-52994>
- <https://github.com/JamesHeinrich/phpThumb/commit/cdcbc206ae601b15fd17e7aadf59df51149a0e82>
- <https://github.com/JamesHeinrich/phpThumb>
- <https://github.com/JamesHeinrich/phpThumb/releases>
- <https://safety-online.pl/cve-2025-52994>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-q745-cfqh-hcrw>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-q745-cfqh-hcrw/>. Everything for agents: <https://agentprime.io/llms.txt>.
