Vulnerabilites related to libretro - libretro-common
CVE-2025-9809 (GCVE-0-2025-9809)
Vulnerability from cvelistv5
Published
2025-09-01 18:38
Modified
2025-09-03 20:29
CWE
Summary
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.
Impacted products
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2025-9809",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-09-03T20:29:10.518670Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-09-03T20:29:21.013Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "affected",
          "modules": [
            "cdfs_open_cue_track"
          ],
          "product": "libretro-common",
          "programFiles": [
            "libretro-common/formats/cdfs/cdfs.c"
          ],
          "vendor": "libretro",
          "versions": [
            {
              "status": "affected",
              "version": "0"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Simcha Kosman"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "Out-of-bounds write in \u003ccode\u003ecdfs_open_cue_track\u003c/code\u003e in libretro \u003ccode\u003elibretro-common\u003c/code\u003e latest on all platforms allows remote attackers to execute arbitrary code via a crafted \u003ccode\u003e.cue\u003c/code\u003e file with a file path exceeding \u003ccode\u003ePATH_MAX_LENGTH\u003c/code\u003e that is copied using \u003ccode\u003ememcpy\u003c/code\u003e into a fixed-size buffer."
            }
          ],
          "value": "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."
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-100",
          "descriptions": [
            {
              "lang": "en",
              "value": "CAPEC-100 Overflow Buffers"
            }
          ]
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "Automatable": "NOT_DEFINED",
            "Recovery": "NOT_DEFINED",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "attackVector": "LOCAL",
            "baseScore": 8.4,
            "baseSeverity": "HIGH",
            "privilegesRequired": "NONE",
            "providerUrgency": "NOT_DEFINED",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "ACTIVE",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
            "version": "4.0",
            "vulnAvailabilityImpact": "HIGH",
            "vulnConfidentialityImpact": "HIGH",
            "vulnIntegrityImpact": "HIGH",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-787",
              "description": "CWE-787 Out-of-bounds Write",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-01T18:38:22.165Z",
        "orgId": "96148269-fe82-4198-b1bf-3a73ce8bc92e",
        "shortName": "CyberArk"
      },
      "references": [
        {
          "url": "https://github.com/libretro/libretro-common/blob/master/formats/cdfs/cdfs.c#L471"
        },
        {
          "url": "https://github.com/libretro/libretro-common/issues/222"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "Limit memcpy size to PATH_MAX_LENGTH-1 when copying file paths, ensure explicit NUL-termination, and validate lengths before copy; update to a version including the fix once available.\n\n\u003cbr\u003e"
            }
          ],
          "value": "Limit memcpy size to PATH_MAX_LENGTH-1 when copying file paths, ensure explicit NUL-termination, and validate lengths before copy; update to a version including the fix once available."
        }
      ],
      "source": {
        "discovery": "UNKNOWN"
      },
      "x_generator": {
        "engine": "Vulnogram 0.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "96148269-fe82-4198-b1bf-3a73ce8bc92e",
    "assignerShortName": "CyberArk",
    "cveId": "CVE-2025-9809",
    "datePublished": "2025-09-01T18:38:22.165Z",
    "dateReserved": "2025-09-01T18:17:00.403Z",
    "dateUpdated": "2025-09-03T20:29:21.013Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}