CVE-2021-39518
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp...
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp has a heap-based buffer overflow.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp has a heap-based buffer overflow.
- Record
CVE-2021-39518- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp has a heap-based buffer overflow.
- Record
CVE-2021-39518- Updated
- 2026-11-02
EUVDEUVD-2021-25875 No score
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp has a heap-based buffer overflow.
- Record
EUVD-2021-25875- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-75wx-7fqq-f6pf No score
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp...
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp has a heap-based buffer overflow.
- Record
GHSA-75wx-7fqq-f6pf- Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
6.5
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp has a heap-based buffer overflow.
- Record
CVE-2021-39518- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-39518
6.5
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp has a heap-based buffer overflow.
- Record
DEBIAN-CVE-2021-39518- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-39518
6.5
An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp has a heap-based buffer overflow.
- Record
UBUNTU-CVE-2021-39518- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libjpegDebian:12 |
before 0.0~git20200925.f145908-1 | 0.0~git20200925.f145908-1 |
libjpegDebian:13 |
before 0.0~git20200925.f145908-1 | 0.0~git20200925.f145908-1 |
libjpegDebian:14 |
before 0.0~git20200925.f145908-1 | 0.0~git20200925.f145908-1 |
libjpeg6bUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 1:6b2-21:6b2-2ubuntu0.1~esm1 |
None known |
libjpegUbuntu:20.04:LTS |
All versions, plus listed versions 0.0~git20190821.87636f3b26b4-10.0~git20190821.87636f3b26b4-1.1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-39518 is a medium vulnerability (CVSS 6.5) in Jpeg Libjpeg, published September 20, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.87%, the 58th percentile. Fixed in libjpeg 0.0~git20200925.f145908-1.