Every CVE Search/ Get API key

CVE-2022-31620

In libjpeg before 1.64, BitStream<false>::Get in bitstream.hpp has an assertion failure that may...

6.5 MediumFix available

In libjpeg before 1.64, BitStream<false>::Get in bitstream.hpp has an assertion failure that may cause denial of service. This is related to out-of-bounds array access during arithmetically coded lossless scan or arithmetically coded sequential scan.

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

1.43%Up 0.5 points since May 26, 2022
90%50%10%1%

What each source reports

NVD Score used 6.5

In libjpeg before 1.64, BitStream<false>::Get in bitstream.hpp has an assertion failure that may cause denial of service. This is related to out-of-bounds array access during arithmetically coded lossless scan or arithmetically coded sequential scan.

Record
CVE-2022-31620
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-617
Updated
2026-11-02
CVE List No score

In libjpeg before 1.64, BitStream<false>::Get in bitstream.hpp has an assertion failure that may cause denial of service. This is related to out-of-bounds array access during arithmetically coded lossless scan or arithmetically coded sequential scan.

Record
CVE-2022-31620
Updated
2026-11-02
EUVDEUVD-2022-53072 No score

In libjpeg before 1.64, BitStream<false>::Get in bitstream.hpp has an assertion failure that may cause denial of service. This is related to out-of-bounds array access during arithmetically coded lossless scan or arithmetically coded sequential scan.

Record
EUVD-2022-53072
Updated
2026-11-03
GitHub AdvisoriesGHSA-62v2-wx44-h68c 6.5

In libjpeg before 1.64, BitStream<false>::Get in bitstream.hpp has an assertion failure that may...

In libjpeg before 1.64, BitStream<false>::Get in bitstream.hpp has an assertion failure that may cause denial of service. This is related to out-of-bounds array access during arithmetically coded lossless scan or arithmetically coded sequential scan.

Record
GHSA-62v2-wx44-h68c
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-119
Updated
2026-11-02
OSVDEBIAN-CVE-2022-31620 6.5

In libjpeg before 1.64, BitStream<false>::Get in bitstream.hpp has an assertion failure that may cause denial of service. This is related to out-of-bounds array access during arithmetically coded lossless scan or arithmetically coded sequential scan.

Record
DEBIAN-CVE-2022-31620
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-03
OSVUBUNTU-CVE-2022-31620 6.5

In libjpeg before 1.64, BitStream<false>::Get in bitstream.hpp has an assertion failure that may cause denial of service. This is related to out-of-bounds array access during arithmetically coded lossless scan or arithmetically coded sequential scan.

Record
UBUNTU-CVE-2022-31620
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
OSV No score

In libjpeg before 1.64, BitStream<false>::Get in bitstream.hpp has an assertion failure that may cause denial of service. This is related to out-of-bounds array access during arithmetically coded lossless scan or arithmetically coded sequential scan.

Record
CVE-2022-31620
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libjpeg
Debian:12
before 0.0~git20220615.842c7ba-1
0.0~git20220615.842c7ba-1
libjpeg
Debian:13
before 0.0~git20220615.842c7ba-1
0.0~git20220615.842c7ba-1
libjpeg
Debian:14
before 0.0~git20220615.842c7ba-1
0.0~git20220615.842c7ba-1
libjpeg
Ubuntu:20.04:LTS
All versions, plus listed versions
0.0~git20190821.87636f3b26b4-10.0~git20190821.87636f3b26b4-1.1
None known
libjpeg
Ubuntu:22.04:LTS
All versions, plus listed versions
0.0~git20210129.91985dc-1build10.0~git20210908.58455ca-10.0~git20211115.76133b7-10.0~git20211203.966a8ed-1
None known
libjpeg
Ubuntu:24.04:LTS
All versions, plus listed versions
0.0~git20220805.54ec643-1
None known
libjpeg
Ubuntu:25.10
All versions, plus listed versions
0.0~git20241105.c719010-1
None known
libjpeg
Ubuntu:26.10
All versions, plus listed versions
0.0~git20250815.25f7128-20.0~git20250815.25f7128-3
None known
libjpeg
Ubuntu:26.04:LTS
All versions, plus listed versions
0.0~git20241105.c719010-10.0~git20250815.25f7128-10.0~git20250815.25f7128-2
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-2022-31620 is a medium vulnerability (CVSS 6.5) in Libjpeg Project Libjpeg, published May 25, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.43%, the 73rd percentile. Fixed in libjpeg 0.0~git20220615.842c7ba-1.

References

MoveEnter Open