# JLSEC-2025-178: The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap-based...

- Severity: High 8.8 (CVSS:3.0, scored by Julia Security Advisories) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/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.289Z
- Related: CVE-2018-20330

## Description

The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap-based buffer overflow via a BMP image because multiplication of pitch and height is mishandled, as demonstrated by tjbench.

(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:P/I:P/A:P`
- Julia Security Advisories: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/libjpeg-turbo/libjpeg-turbo/issues/304> (web)
- <https://usn.ubuntu.com/4190-1/> (web)

## Sources

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

---

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