{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.17.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "f2ef59755292bc4bb950ef22710e18a5487c399d"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "0.17.5",
                "range": [
                  {
                    "fixed": "4a05d8127f525943ebf45fdc6497c9e665947f0d"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4a05d8127f525943ebf45fdc6497c9e665947f0d"
            },
            {
              "fixed": "f2ef59755292bc4bb950ef22710e18a5487c399d"
            }
          ],
          "repo": "https://github.com/libass/libass",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-pjjp-65r7-ppgm"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-125",
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61627.json"
  },
  "details": "libass is a portable subtitle renderer for the `ASS`/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format. Prior to 0.17.5, libass can overread and overwrite the glyph array in `wrap_lines_measure` while rendering malicious `ASS` content. In `wrap modes other than two`, a final line ending with a literal backslash-n sequence and otherwise consisting only of such sequences or spaces can remain after early trimming and make the line-measurement loops overshoot by one glyph. When the total text size exactly matches the allocated glyph-array capacity, the first loop reads an uninitialized 32-bit fixed-point `pos.x` value, although that value is not subsequently used. The second loop writes `pos.x` and `pos.y` beyond the array, zeroing the first and adding an attacker-controllable offset to the second. No actual exploitation beyond possible denial of service is known; broader exploitation is theoretical and constrained by the addresses, limited writes, and ASLR. This issue is fixed in version 0.17.5.",
  "id": "CVE-2026-61627",
  "modified": "2026-11-01T02:30:59.434026892Z",
  "published": "2026-10-30T14:55:45.500Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/libass/libass/releases/tag/0.17.5"
    },
    {
      "type": "WEB",
      "url": "https://lists.debian.org/debian-lts-announce/2026/09/msg00004.html"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61627.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/libass/libass/security/advisories/GHSA-pjjp-65r7-ppgm"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-61627"
    },
    {
      "type": "FIX",
      "url": "https://github.com/libass/libass/commit/f2ef59755292bc4bb950ef22710e18a5487c399d"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "libass: Out-of-bounds read and write in wrap_lines_measure"
}