Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-45666

published high CVSS 3.1 · 7.3

Possible double-free or memory leak in stbi__load_gif_main in stb_image

Published
20 Oct 2023, 23:26:42 UTC
Updated
13 Feb 2025, 17:14:06 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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 / vendorReleasePackage / productPublisher statusFixed buildSource
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. It may look like `stbi__load_gif_main` doesn’t give guarantees about the content of output value `*delays` upon failure. Although it sets `*delays` to zero at the beginning, it doesn’t do it in case the image is not recognized as GIF and a call to `stbi__load_gif_main_outofmem` only frees possibly allocated memory in `*delays` without resetting it to zero. Thus it would be fair to say the caller of `stbi__load_gif_main` is responsible to free the allocated memory in `*delays` only if `stbi__load_gif_main` returns a non null value. However at the same time the function may return null value, but fail to free the memory in `*delays` if internally `stbi__convert_format` is called and fails. Thus the issue may lead to a memory leak if the caller chooses to free `delays` only when `stbi__load_gif_main` didn’t fail or to a double-free if the `delays` is always freed

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

7

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.3 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
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-415 CWE-415: Double Free (GitHub_M · cna)

References

6

Provider assertions

3

GitHub_M · cna

Possible double-free or memory leak in stbi__load_gif_main in stb_image

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
39e2e3cac8031edb31a81e613cbae6d4ef8bb06487056c3835c11334096455e5
Ingested
23 Sep 2026, 08:12:31 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected