Every CVE Search/ Get API key

CVE-2021-39516

An issue was discovered in libjpeg through 2020021. A NULL pointer dereference exists in the...

6.5 MediumFix available

An issue was discovered in libjpeg through 2020021. A NULL pointer dereference exists in the function HuffmanDecoder::Get() located in huffmandecoder.hpp. It allows an attacker to cause Denial of Service.

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.85%Up 0.3 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. A NULL pointer dereference exists in the function HuffmanDecoder::Get() located in huffmandecoder.hpp. It allows an attacker to cause Denial of Service.

Record
CVE-2021-39516
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-476
Updated
2026-11-02
CVE List No score

An issue was discovered in libjpeg through 2020021. A NULL pointer dereference exists in the function HuffmanDecoder::Get() located in huffmandecoder.hpp. It allows an attacker to cause Denial of Service.

Record
CVE-2021-39516
Updated
2026-11-02
EUVDEUVD-2021-25873 No score

An issue was discovered in libjpeg through 2020021. A NULL pointer dereference exists in the function HuffmanDecoder::Get() located in huffmandecoder.hpp. It allows an attacker to cause Denial of Service.

Record
EUVD-2021-25873
Updated
2026-11-03
GitHub AdvisoriesGHSA-gf8p-pg5p-7jm3 No score

An issue was discovered in libjpeg through 2020021. A NULL pointer dereference exists in the...

An issue was discovered in libjpeg through 2020021. A NULL pointer dereference exists in the function HuffmanDecoder::Get() located in huffmandecoder.hpp. It allows an attacker to cause Denial of Service.

Record
GHSA-gf8p-pg5p-7jm3
Weakness
CWE-476
Updated
2026-11-02
OSV 6.5

An issue was discovered in libjpeg through 2020021. A NULL pointer dereference exists in the function HuffmanDecoder::Get() located in huffmandecoder.hpp. It allows an attacker to cause Denial of Service.

Record
CVE-2021-39516
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-39516 6.5

An issue was discovered in libjpeg through 2020021. A NULL pointer dereference exists in the function HuffmanDecoder::Get() located in huffmandecoder.hpp. It allows an attacker to cause Denial of Service.

Record
DEBIAN-CVE-2021-39516
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-39516 6.5

An issue was discovered in libjpeg through 2020021. A NULL pointer dereference exists in the function HuffmanDecoder::Get() located in huffmandecoder.hpp. It allows an attacker to cause Denial of Service.

Record
UBUNTU-CVE-2021-39516
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-39516 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.85%, the 58th percentile. Fixed in libjpeg 0.0~git20200925.f145908-1.

References

MoveEnter Open