Buffer overflow in Raylib
CVE-2025-15533
A vulnerability was determined in raysan5 raylib up to 909f040. Affected by this vulnerability is the function GenImageFontAtlas of the file src/rtext.c. Executing a manipulation can lead to heap-based buffer overflow. The attack can only be executed locally. The exploit has been publicly disclosed and may be utilized. This patch is called 5a3391fdce046bc5473e52afbd835dd2dc127146. Applying a patch is advised to resolve this issue.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.003, 26.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Raylib
- Raysan5 Raylib — versions 909f040
Weakness classification (CWE)
References
- VDB-341705 | raysan5 raylib rtext.c GenImageFontAtlas heap-based overflow (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-341705 | CTI Indicators (IOB, IOC, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #733341 | raysan5 raylib 909f040 Heap-based Buffer Overflow (Third Party Advisory, VDB Entry, third-party-advisory)
- Submit #733342 | raysan5 raylib 909f040 Heap-based Buffer Overflow (Duplicate) (Third Party Advisory, VDB Entry, third-party-advisory)
- github.com/raysan5/raylib/issues/5433 (issue-tracking, Exploit, Issue Tracking, Vendor Advisory)
- github.com/raysan5/raylib/pull/5450 (issue-tracking, Issue Tracking)
- github.com/oneafter/1224/blob/main/hbf2 (Exploit, exploit)
- github.com/raysan5/raylib/commit/5a3391fdce046bc5473e52afbd835dd2dc127146 (Patch, patch)
- github.com/raysan5/raylib/ (product)