CVE-2025-15534 Details
Description
A vulnerability was identified in raysan5 raylib up to 909f040. Affected by this issue is the function LoadFontData of the file src/rtext.c. The manipulation leads to integer overflow. The attack can only be performed from a local environment. The exploit is publicly available and might be used. The identifier of the patch is 5a3391fdce046bc5473e52afbd835dd2dc127146. It is suggested to install a patch to address this issue.
A critical integer overflow vulnerability has been identified in the raysan5 raylib library, specifically in version 909f040 and prior. The issue arises in the `LoadFontData` function within `src/rtext.c`, where the font parser improperly handles font metrics, allowing negative values to be interpreted as large positive integers. This flawed calculation leads to an invalid memory allocation request via `calloc`, which, in a release build, causes a segmentation fault when the `GenImageFontAtlas` function attempts to process the corrupted data. The vulnerability can be exploited locally, and a public proof-of-concept exploit is available.
Users are advised to update to the latest version of raylib, where this vulnerability has been fixed. The patch is available in the commit `5a3391fdce046bc5473e52afbd835dd2dc127146`.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/oneafter/1224/blob/main/segv1 | [email protected] | Exploit |
| https://github.com/raysan5/raylib/ | [email protected] | |
| https://github.com/raysan5/raylib/commit/5a3391fdce046bc5473e52afbd835dd2dc127146 | [email protected] | Patch |
| https://github.com/raysan5/raylib/issues/5436 | [email protected] | ExploitIssue TrackingVendor Advisory |
| https://github.com/raysan5/raylib/pull/5450 | [email protected] | Issue Tracking |
| https://vuldb.com/?ctiid.341706 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.341706 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.733343 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
| CWE-189 | Numeric Errors | [email protected] |
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| raylib raylib | < 2026-01-01 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Feb 23, 2026 | CVE Modified | [email protected] |
| Feb 17, 2026 | Initial Analysis | [email protected] |
| Jan 18, 2026 | New CVE Received | [email protected] |