CVE-2022-31620
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.
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
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 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-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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
libjpegDebian:12 |
before 0.0~git20220615.842c7ba-1 | 0.0~git20220615.842c7ba-1 |
libjpegDebian:13 |
before 0.0~git20220615.842c7ba-1 | 0.0~git20220615.842c7ba-1 |
libjpegDebian:14 |
before 0.0~git20220615.842c7ba-1 | 0.0~git20220615.842c7ba-1 |
libjpegUbuntu:20.04:LTS |
All versions, plus listed versions 0.0~git20190821.87636f3b26b4-10.0~git20190821.87636f3b26b4-1.1 |
None known |
libjpegUbuntu: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 |
libjpegUbuntu:24.04:LTS |
All versions, plus listed versions 0.0~git20220805.54ec643-1 |
None known |
libjpegUbuntu:25.10 |
All versions, plus listed versions 0.0~git20241105.c719010-1 |
None known |
libjpegUbuntu:26.10 |
All versions, plus listed versions 0.0~git20250815.25f7128-20.0~git20250815.25f7128-3 |
None known |
libjpegUbuntu:26.04:LTS |
All versions, plus listed versions 0.0~git20241105.c719010-10.0~git20250815.25f7128-10.0~git20250815.25f7128-2 |
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-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
github.com/thorfdbg/libjpeg/issues/70
github.com/thorfdbg/libjpeg/commit/ef4a29a62ab48b8dc235f4af52cfd6319eda9a6a
nvd.nist.gov/vuln/detail/CVE-2022-31620
github.com/advisories/GHSA-62v2-wx44-h68c
github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31620.json
security-tracker.debian.org/tracker/CVE-2022-31620
ubuntu.com/security/CVE-2022-31620
cve.org/CVERecord?id=CVE-2022-31620