CVE-2022-31796
libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in...
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.
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
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.
- Record
CVE-2022-31796- 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-125
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2022-31796- Updated
- 2026-11-02
EUVDEUVD-2022-53187 No score
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.
- Record
EUVD-2022-53187- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hxpg-2x22-5xr4
6.5
libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in...
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.
- Record
GHSA-hxpg-2x22-5xr4- 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-125
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-31796
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.
- Record
DEBIAN-CVE-2022-31796- 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-31796
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.
- Record
UBUNTU-CVE-2022-31796- 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
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.
- Record
CVE-2022-31796- 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-31796 is a medium vulnerability (CVSS 6.5) in Jpeg Libjpeg, published May 29, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.94%, the 61st percentile. Fixed in libjpeg 0.0~git20220615.842c7ba-1.
References
github.com/thorfdbg/libjpeg/issues/71
github.com/thorfdbg/libjpeg/commit/187035b9726710b4fe11d565c7808975c930895d
nvd.nist.gov/vuln/detail/CVE-2022-31796
github.com/advisories/GHSA-hxpg-2x22-5xr4
github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31796.json
security-tracker.debian.org/tracker/CVE-2022-31796
ubuntu.com/security/CVE-2022-31796
cve.org/CVERecord?id=CVE-2022-31796