What’s Vulnerable › Vulnerabilities
CVE-2022-31620
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-05-25 · updated 2026-06-17
- Weakness: CWE-617
Description
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.
Affected products
- Libjpeg Project Libjpeg: before 1.64 — fixed in 1.64
How to fix
Upgrade to a fixed version: Libjpeg Project Libjpeg 1.64. Check the vendor advisory for mitigations.
References
- https://github.com/thorfdbg/libjpeg/commit/ef4a29a62ab48b8dc235f4af52cfd6319eda9a6a
- https://github.com/thorfdbg/libjpeg/issues/70
- https://github.com/thorfdbg/libjpeg/commit/ef4a29a62ab48b8dc235f4af52cfd6319eda9a6a
- https://github.com/thorfdbg/libjpeg/issues/70
Get alerted when CVE-2022-31620 or the next vulnerability affects your stack