CVE-2025-9809 Details
Description
Out-of-bounds write in cdfs_open_cue_track in libretro libretro-common latest on all platforms allows remote attackers to execute arbitrary code via a crafted .cue file with a file path exceeding PATH_MAX_LENGTH that is copied using memcpy into a fixed-size buffer.
A buffer overflow vulnerability has been identified in the CDFS .cue file parser of Libretro Libretro-Common, all platforms. The issue arises in the 'cdfs_open_cue_track' function, where 'memcpy' is used to copy file paths from the .cue file into a buffer. If the file path exceeds the maximum allowed length, this creates an out-of-bounds write condition. Remote attackers can exploit this vulnerability by crafting a .cue file with an excessively long file path, leading to stack-based buffer overflow and potential execution of arbitrary code.
The vulnerability can be mitigated by limiting the 'memcpy' operation to 'PATH_MAX_LENGTH - 1' bytes and ensuring that the copied string is null-terminated.
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 Sep 3, 2025References 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/libretro/libretro-common/blob/master/formats/cdfs/cdfs.c#L471 | CyberArk Labs | Product |
| https://github.com/libretro/libretro-common/issues/222 | CyberArk Labs | Issue TrackingThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | CyberArk Labs |
Affected Products
| Product | Versions |
|---|---|
| libretro libretro-common | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CyberArk Labs |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 8, 2025 | Initial Analysis | [email protected] |
| Sep 1, 2025 | New CVE Received | CyberArk Labs |