# CVE-2026-61627: libass: Out-of-bounds read and write in wrap_lines_measure

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-10-30T14:55:45.500Z
- Modified: 2026-10-30T19:39:14.897Z
- Weaknesses: CWE-125, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- libass libass: < 0.17.5

## References

- <https://github.com/libass/libass/security/advisories/GHSA-pjjp-65r7-ppgm>
- <https://github.com/libass/libass/commit/f2ef59755292bc4bb950ef22710e18a5487c399d>
- <https://github.com/libass/libass/releases/tag/0.17.5>
- <https://lists.debian.org/debian-lts-announce/2026/09/msg00004.html>

## Sources

- CVE List: [CVE-2026-61627](https://www.cve.org/CVERecord?id=CVE-2026-61627), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-61627](https://nvd.nist.gov/vuln/detail/CVE-2026-61627), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-61627 · Whole record: https://cve.day/CVE-2026-61627.json · Rebuilt by cve.day 2026-11-25T22:59:47.951Z
