Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-45666— Possible double-free or memory leak in stbi__load_gif_main in stb_image

Quick assessment

Affected
nothings stb
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

stb是一款用于C/C ++的单文件公共域库。 stb_image 存在安全漏洞,该漏洞源于可能导致内存泄漏和双重释放。

CVSS 7.3 · High EPSS 0.96% · P61

Possible ATT&CK Techniques 1 AI

T1211 · Exploitation for Stealth
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-45666

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Possible double-free or memory leak in stbi__load_gif_main in stb_image
Source: CVE Program / CVE List V5
Vulnerability 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
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
双重释放
Source: CVE Program / CVE List V5
Vulnerability Title
stb_image 资源管理错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
stb是一款用于C/C ++的单文件公共域库。 stb_image 存在安全漏洞,该漏洞源于可能导致内存泄漏和双重释放。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
nothings stb <= 2.28 -

II. Public POCs for CVE-2023-45666

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 9135 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2023-45666

请登录查看更多情报信息。

Mailing List Discussions for CVE-2023-45666 (3)

Other References for CVE-2023-45666 (3)

Same Patch Batch · nothings · 2023-10-20 · 14 CVEs total

CVE-2023-45681 7.3 HIGH Out of bounds heap buffer write in stb_vorbis
CVE-2023-45679 7.3 HIGH Attempt to free an uninitialized memory pointer in vorbis_deinit in stb_vorbis
CVE-2023-45677 7.3 HIGH Heap buffer out of bounds write in start_decoder in stb_vorbis
CVE-2023-45676 7.3 HIGH Multi-byte write heap buffer overflow in start_decoder in stb_vorbis
CVE-2023-45664 7.3 HIGH Double-free in stbi__load_gif_main_outofmem in stb_image
CVE-2023-45678 6.5 MEDIUM Off-by-one heap buffer write in start_decoder in stb_vorbis
CVE-2023-45675 6.5 MEDIUM 0 byte write heap buffer overflow in start_decoder in stb_vorbis
CVE-2023-45662 6.5 MEDIUM Multi-byte read heap buffer overflow in stbi__vertical_flip in stb_image
CVE-2023-45661 6.5 MEDIUM Wild address read in stbi__gif_load_next in stb_image
CVE-2023-45682 5.3 MEDIUM Wild address read in vorbis_decode_packet_rest in stb_vorbis
CVE-2023-45680 5.3 MEDIUM Null pointer dereference in vorbis_deinit in stb_vorbis
CVE-2023-45667 5.3 MEDIUM Null pointer dereference because of an uninitialized variable in stb_image
CVE-2023-45663 5.3 MEDIUM Disclosure of uninitialized memory in stbi__tga_load in stb_image

IV. Related Vulnerabilities

V. Comments for CVE-2023-45666

No comments yet


Leave a comment