floooh sokol CVE-2025-14958
LOWAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocal user login
-
DeliveryCall sokol graphics initialization
-
ExploitSupply malformed pipeline parameters
-
ExecutionTrigger buffer overflow in _sg_pipeline_common_init
-
PersistCorrupt heap memory
-
ImpactLimited impact due to privilege boundary
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, buffer size validation
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) Local system access with authenticated user privileges (PR:L in CVSS indicates non-root user login required), (2) Application using sokol_gfx.h for graphics pipeline initialization, (3) Ability to influence pipeline configuration parameters passed to _sg_pipeline_common_init. The vulnerability does NOT require user interaction (UI:N) and does NOT require system-level privileges (PR:L is sufficient). Exploitation is limited to local attack vector only (AV:L) - remote exploitation is not possible. Default or minimal configurations of sokol may be vulnerable if pipeline initialization is invoked; no special feature enablement is described. |
| Impact | CVSS 1.9 with EPSS 0.03% percentile presents a contradictory signal. The CVSS vector shows low impact (VC:L/VI:L/VA:L) with scope unchanged, indicating that while a buffer overflow occurs, its practical damage is limited by privilege boundaries and lack of scope expansion. Authentication requirement (PR:L) restricts exploitation to users with local login access. The EPSS score of 10th percentile suggests this vulnerability has minimal real-world exploitation probability despite public POC availability, likely because: (1) sokol's rolling-release model means most users are already patched or unaffected, (2) the local + authenticated requirement significantly reduces attack surface compared to network-accessible vulnerabilities, and (3) buffer overflow impact is constrained by memory protections. This is a genuine security issue that should be patched but does not represent an urgent priority for most deployments. |
| Exploit ScenarioDerived | A local user with authentication credentials (e.g., system login) calls sokol graphics initialization functions on a machine running a vulnerable version of sokol. By crafting specific pipeline configuration parameters, the attacker triggers the heap-based buffer overflow in _sg_pipeline_common_init, corrupting adjacent heap memory. Publicly available POC code demonstrates the trigger, though impact is limited by memory protections and privilege isolation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Heap-based buffer overflow in sokol_gfx.h's _sg_pipeline_common_init function allows local authenticated attackers to corrupt memory with low impact on confidentiality, integrity, and availability. Exploitation requires local access and authenticated privileges but no user interaction. Publicly available exploit code exists, though EPSS scoring (0.03%) indicates minimal real-world exploitation probability despite low CVSS score.
RemediationAI
Update to commit 33e2271c431bf21de001e972f72da17a984da932 or later from the official sokol repository (https://github.com/floooh/sokol). Since sokol uses a rolling-release model without formal versioned releases, users should pull the latest main branch code or the specific commit hash. No workarounds are available for in-use applications; applications using older builds of sokol_gfx.h must rebuild and redeploy. For development environments, ensure CI/CD pipelines pin to the patched commit or later. Applications that do not use graphics pipeline initialization or only run with elevated privileges may face reduced risk, but patching is still recommended.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
sokol is a lightweight graphics library written in C that abstracts graphics APIs. The vulnerability exists in the sokol_gfx.h header file, specifically in the _sg_pipeline_common_init function which handles initialization of graphics pipeline objects. The root cause is a heap-based buffer overflow (CWE-119) in buffer management during pipeline initialization. This suggests improper bounds checking when writing to dynamically allocated memory structures that hold pipeline configuration data. The attack vector is local (AV:L) with low complexity (AC:L), meaning an attacker with local system access can trigger the overflow without sophisticated techniques.
Know when Sokol gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A security flaw has been discovered in floooh sokol up to 33e2271c431bf21de001e972f72da17a984da932. This vulnerability affects the function _sg_pipeline_common_init in the library sokol_gfx.h. Performing manipulation results in heap-based buffer overflow. The attack needs to be approached locally. The exploit has been released to the public and may be exploited. This product uses a rolling release model to deliver continuous updates. As a result, specific version information for affected or updated releases is not available. The patch is named 33e2271c431bf21de001e972f72da17a984da932. It is suggested to install a patch to address this issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB