# CVE-2021-39518

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-09-20 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2021-39518, DEBIAN-CVE-2021-39518
- Record: https://cvemate.com/vulnerability/CVE-2021-39518 · JSON: https://cvemate.com/vulnerability/CVE-2021-39518/json

## Description

```text
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp has a heap-based buffer overflow.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.866%, percentile 59.939%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian libjpeg (Debian): \< 0.0~git20200925.f145908-1
- ubuntu libjpeg (Ubuntu): All versions (No fix recorded)
- ubuntu libjpeg6b (Ubuntu): All versions (No fix recorded)
- jpeg libjpeg: ≤ 2020021

## References

- <https://github.com/thorfdbg/libjpeg/issues/35>
- <https://ubuntu.com/security/CVE-2021-39518>
- <https://www.cve.org/CVERecord?id=CVE-2021-39518>
- <https://security-tracker.debian.org/tracker/CVE-2021-39518>

---

Data as of 2026-12-05T05:08:26.556Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
