LibRaw before 0.20-RC1 lacks a thumbnail size range check. This affects decoders/unpack_thumb.cpp, postprocessing/mem_image.cpp, and utils/thumb_utils.cpp. For example, malloc(sizeof(libraw_processed_image_t)+T.tlength) occurs without validating T.tlength.
https://github.com/LibRaw/LibRaw/compare/0.20-Beta3...0.20-RC1
https://www.libraw.org/news/libraw-0-20-rc1
https://github.com/LibRaw/LibRaw/commit/20ad21c0d87ca80217aee47533d91e633ce1864d
http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00075.html
http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00001.html
https://lists.debian.org/debian-lts-announce/2022/11/msg00042.html
Source: MITRE
Published: 2020-07-02
Updated: 2023-02-03
Type: CWE-20
Base Score: 5
Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P
Impact Score: 2.9
Exploitability Score: 10
Severity: MEDIUM
Base Score: 7.5
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Impact Score: 3.6
Exploitability Score: 3.9
Severity: HIGH