CVE-2025-15013 floooh sokol sokol_gfx.h _sg_validate_pipeline_desc stack-based overflow
A stack-based buffer overflow in the sokol graphics library allows local attackers to execute arbitrary code or cause denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-15013?
CVE-2025-15013 is a medium-severity memory corruption vulnerability in floooh sokol, published on 22 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability was identified in floooh sokol up to 5d11344150973f15e16d3ec4ee7550a73fb995e0. The impacted element is the function _sg_validate_pipeline_desc in the library sokol_gfx.h. Such manipulation leads to stack-based buffer overflow. The attack must be carried out locally. The exploit is publicly available and might be used. This product utilizes a rolling release system for continuous delivery, and as such, version information for affected or updated releases is not disclosed. The name of the patch is b95c5245ba357967220c9a860c7578a7487937b0. It is best practice to apply a patch to resolve this issue.
Which versions are affected by CVE-2025-15013?
How do I fix CVE-2025-15013?
No fix has been published for CVE-2025-15013 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-15013 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-15013 exists.
Sources
Also known as GHSA-ff2p-7h68-73qg.