# JLSEC-2025-180: The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit...

- Severity: Medium 5.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-10-21T17:39:06.495Z
- Modified: 2026-07-23T22:30:17.284Z
- Related: CVE-2021-46822

## Description

The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the `get_word_rgb_row` function in rdppm.c.

(As written by Julia Security Advisories.)

## Affected

- JpegTurbo_jll (Julia): before 2.1.0+0

## Every score

- Julia Security Advisories: CVSS:2.0 `AV:N/AC:M/Au:N/C:N/I:N/A:P`
- Julia Security Advisories: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://exchange.xforce.ibmcloud.com/vulnerabilities/221567> (web)
- <https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2> (web)

## Sources

- Julia Security Advisories: [JLSEC-2025-180](https://osv.dev/vulnerability/JLSEC-2025-180), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/JLSEC-2025-180 · Whole record: https://cve.day/JLSEC-2025-180.json · Rebuilt by cve.day 2026-11-25T22:56:25.761Z
