Every CVE Search/ Get API key

CVE-2021-39518

An issue was discovered in libjpeg through 2020021. LineBuffer::FetchRegion() in linebuffer.cpp...

6.5 MediumFix available

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

0.87%Up 0.4 points since Sep 21, 2021
90%50%10%1%

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 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
libjpeg
Debian:12
before 0.0~git20200925.f145908-1
0.0~git20200925.f145908-1
libjpeg
Debian:13
before 0.0~git20200925.f145908-1
0.0~git20200925.f145908-1
libjpeg
Debian:14
before 0.0~git20200925.f145908-1
0.0~git20200925.f145908-1
libjpeg6b
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
1:6b2-21:6b2-2ubuntu0.1~esm1
None known
libjpeg
Ubuntu:20.04:LTS
All versions, plus listed versions
0.0~git20190821.87636f3b26b4-10.0~git20190821.87636f3b26b4-1.1
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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.

References

MoveEnter Open