# CVE-2023-45663: Disclosure of uninitialized memory in stbi__tga_load in stb_image

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- 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.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2023-10-20T23:26:13.834Z
- Modified: 2026-06-17T06:29:03.940Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

stb_image is a single file MIT licensed library for processing images. The stbi__getn function reads a specified number of bytes from context (typically a file) into the specified buffer. In case the file stream points to the end, it returns zero. There are two places where its return value is not checked: In the `stbi__hdr_load` function and in the `stbi__tga_load` function. The latter of the two is likely more exploitable as an attacker may also control the size of an uninitialized buffer.

(As written by CVE List.)

## Affected

- nothings stb: <= 2.28
- nothings stb_image: up to 2.28
- nothings stb_image.h: 2.28

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/> (third-party-advisory)
- <https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.h#L1664> (third-party-advisory)
- <https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.h#L5936C10-L5936C20> (third-party-advisory)
- <https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.h#L7221> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UVQ7ONFH5GWLMXYEAJG32A3EUKUCEVCR/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QVABVF4GEM6BYD5L4L64RCRSXUHY6LGN/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NMXKOKPP4BKTNUTF5KSRDQAWOUILQZNO/>

## Sources

- CVE List: [CVE-2023-45663](https://www.cve.org/CVERecord?id=CVE-2023-45663), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-45663](https://nvd.nist.gov/vuln/detail/CVE-2023-45663), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-45663 · Whole record: https://cve.day/CVE-2023-45663.json · Rebuilt by cve.day 2026-11-25T22:58:28.994Z
