Every CVE Search/ Get API key

CVE-2022-31796

libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in...

6.5 MediumFix available

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

0.94%Up 0.1 points since May 30, 2022
90%50%10%1%

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 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
libjpeg
Debian:12
before 0.0~git20220615.842c7ba-1
0.0~git20220615.842c7ba-1
libjpeg
Debian:13
before 0.0~git20220615.842c7ba-1
0.0~git20220615.842c7ba-1
libjpeg
Debian:14
before 0.0~git20220615.842c7ba-1
0.0~git20220615.842c7ba-1
libjpeg
Ubuntu:20.04:LTS
All versions, plus listed versions
0.0~git20190821.87636f3b26b4-10.0~git20190821.87636f3b26b4-1.1
None known
libjpeg
Ubuntu: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
libjpeg
Ubuntu:24.04:LTS
All versions, plus listed versions
0.0~git20220805.54ec643-1
None known
libjpeg
Ubuntu:25.10
All versions, plus listed versions
0.0~git20241105.c719010-1
None known
libjpeg
Ubuntu:26.10
All versions, plus listed versions
0.0~git20250815.25f7128-20.0~git20250815.25f7128-3
None known
libjpeg
Ubuntu:26.04:LTS
All versions, plus listed versions
0.0~git20241105.c719010-10.0~git20250815.25f7128-10.0~git20250815.25f7128-2
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

MoveEnter Open