Skip to main content

floooh sokol CVE-2025-14958

LOW
Buffer Overflow (CWE-119)
2025-12-19 cna@vuldb.com
1.9
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Local user login
  2. Delivery
    Call sokol graphics initialization
  3. Exploit
    Supply malformed pipeline parameters
  4. Execution
    Trigger buffer overflow in _sg_pipeline_common_init
  5. Persist
    Corrupt heap memory
  6. Impact
    Limited 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

NVD PRIMARY 1.9 LOW
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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.0%
Top 90% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Affected Products (CPE)CVE.org

cpe:2.3:a:floooh:sokol:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy