CVE-2023-45667
published medium CVSS 3.1 · 5.3Null pointer dereference because of an uninitialized variable in stb_image
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nothings | — | stb<= 2.28 | Affected | Not stated | GitHub_M |
| nothings | — | stb_image0 through 2.28 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Alpine Linux | edge | stb | Fixed | 0_git20231012-r0 | Package fix record |
| Alpine Linux | v3.19 | stb | Fixed | 0_git20231012-r0 | Package fix record |
| Alpine Linux | v3.20 | stb | Fixed | 0_git20231012-r0 | Package fix record |
| Alpine Linux | v3.21 | stb | Fixed | 0_git20231012-r0 | Package fix record |
| Alpine Linux | v3.22 | stb | Fixed | 0_git20231012-r0 | Package fix record |
| Alpine Linux | v3.23 | stb | Fixed | 0_git20231012-r0 | Package fix record |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.24 | stb | Fixed | 0_git20231012-r0 | Package fix record |
Description
stb_image is a single file MIT licensed library for processing images. If `stbi__load_gif_main` in `stbi_load_gif_from_memory` fails it returns a null pointer and may keep the `z` variable uninitialized. In case the caller also sets the flip vertically flag, it continues and calls `stbi__vertical_flip_slices` with the null pointer result value and the uninitialized `z` value. This may result in a program crash.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nothings | stb | <= 2.28 (affected) | GitHub_M · cna |
| nothings | stb_image | 0 through 2.28 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-476 CWE-476: NULL Pointer Dereference
References
6- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.h#L1442-L1454
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.h#L1448
- https://lists.fedoraproject.org/archives/list/[email protected]/message/NMXKOKPP4BKTNUTF5KSRDQAWOUILQZNO/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/QVABVF4GEM6BYD5L4L64RCRSXUHY6LGN/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/UVQ7ONFH5GWLMXYEAJG32A3EUKUCEVCR/
- https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/
Provider assertions
3GitHub_M · cna
Null pointer dereference because of an uninitialized variable in stb_image
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8a1c53645ca935c55114ae64998d5f5a0349bea4f08b889df32aa3d0742f4064
- Ingested
- 23 Sep 2026, 08:12:31 UTC
- Source record
- Official CVE record