CVE-2022-31796: libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in hierarchicalbitm
CVE-2022-31796 is a medium-severity flaw (CVSS 6.5) affecting libjpeg. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in hierarchicalbitmaprequester.cpp because the MCU size can be different between allocation and use.
Why this priority
- No elevated risk signals yet
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.9% (top 39%) |
| CISA exploited list | No |
| Weakness | CWE-125 |
| Published | 2022-06-02 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-31796?
libjpeg: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-31796 being exploited?
CVE-2022-31796 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-31796 affect?
CVE-2022-31796 affects libjpeg. Severity is medium (CVSS 6.5). libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in hierarchicalbitmaprequester.cpp because the MCU size can be different between allocation and use.
How urgent is CVE-2022-31796?
Priority 38/100. No elevated risk signals yet.
Related CVEs
- CVE-2023-37837 MEDIUM 6.5 UPGRADE libjpeg commit db33a6e was discovered to contain a heap buffer overflow via LineBitmapRequester::EncodeRegion
- CVE-2023-37836 MEDIUM 6.5 UPGRADE libjpeg commit db33a6e was discovered to contain a reachable assertion via BitMapHook::BitMapHook at bitmaphoo
- CVE-2022-37770 MEDIUM 6.5 MITIGATE libjpeg commit 281daa9 was discovered to contain a segmentation fault via LineMerger::GetNextLowpassLine at li
- CVE-2022-37769 MEDIUM 6.5 MITIGATE libjpeg commit 281daa9 was discovered to contain a segmentation fault via HuffmanDecoder::Get at huffmandecode
- CVE-2022-37768 HIGH 7.5 MITIGATE libjpeg commit 281daa9 was discovered to contain an infinite loop via the component Frame::ParseTrailer.