CVE-2026-5313 Nothings stb GIF Decoder stb_image.h stbi__gif_load_next denial of service

Medium 5.3 Published Updated

A denial of service vulnerability in the stb GIF decoder allows remote attackers to crash applications using the library via crafted GIF files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-5313?

CVE-2026-5313 is a medium-severity denial of service vulnerability in Nothings stb, published on 1 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A vulnerability has been found in Nothings stb up to 2.30. This issue affects the function stbi__gif_load_next in the library stb_image.h of the component GIF Decoder. Such manipulation leads to denial of service. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-404

Which versions are affected by CVE-2026-5313?

How do I fix CVE-2026-5313?

No fix has been published for CVE-2026-5313 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-5313 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5313 exists.

Sources

Also known as DEBIAN-CVE-2026-5313, GHSA-2487-c6w9-prxm, UBUNTU-CVE-2026-5313.

Is CVE-2026-5313 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free