# CVE-2022-31796: libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in hierarchicalbitmaprequester.cpp because the M…

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 61% of CVEs (2026-12-01)
- Published: 2022-05-29T16:37:32.000Z
- Modified: 2026-06-17T04:46:19.483Z
- Weaknesses: CWE-125
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- jpeg libjpeg: 1.63

## Every score

- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/thorfdbg/libjpeg/issues/71> (third-party-advisory)
- <https://github.com/thorfdbg/libjpeg/commit/187035b9726710b4fe11d565c7808975c930895d> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-31796](https://www.cve.org/CVERecord?id=CVE-2022-31796), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-31796](https://nvd.nist.gov/vuln/detail/CVE-2022-31796), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31796 · Whole record: https://cve.day/CVE-2022-31796.json · Rebuilt by cve.day 2026-11-25T22:58:12.076Z
