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

- Severity: Medium 4.9 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2025-07-11T00:00:00.000Z
- Modified: 2026-06-17T09:37:26.327Z
- Also known as: GHSA-q745-cfqh-hcrw
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- phpThumb project phpThumb: up to 1.7.23
- james-heinrich/phpthumb (Packagist): up to 1.7.23

## Every score

- mitre: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N`

## References

- <https://github.com/JamesHeinrich/phpThumb/releases> (web)
- <https://safety-online.pl/cve-2025-52994/>
- <https://github.com/JamesHeinrich/phpThumb/commit/cdcbc206ae601b15fd17e7aadf59df51149a0e82> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-52994> (advisory)
- <https://github.com/JamesHeinrich/phpThumb> (package)
- <https://safety-online.pl/cve-2025-52994> (web)

## Sources

- CVE List: [CVE-2025-52994](https://www.cve.org/CVERecord?id=CVE-2025-52994), CVE Terms of Use, modified 2025-07-11
- GitHub Advisory Database: [GHSA-q745-cfqh-hcrw](https://github.com/advisories/GHSA-q745-cfqh-hcrw), CC-BY-4.0, modified 2025-07-11
- NVD: [CVE-2025-52994](https://nvd.nist.gov/vuln/detail/CVE-2025-52994), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-52994 · Whole record: https://cve.day/CVE-2025-52994.json · Rebuilt by cve.day 2026-11-25T22:59:01.157Z
