CVE-2026-61627

libass: Out-of-bounds read and write in wrap_lines_measure

Published Oct 30, 2026 CVSS 4.0 · 7.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is an out-of-bounds read followed by a buffer overflow that occurs in the libass subtitle renderer’s wrap_lines_measure function when it processes malicious ASS files. Prior to version 0.17.5, a subtitle containing a line that ends with a backslash‑n sequence—consisting mainly of such sequences or spaces—caused the library’s measurement loops to overrun the glyph array by one element. The first loop reads an uninitialized 32‑bit fixed‑point value, while the second loop writes past the end of the array, zeroing the first glyph and inserting an attacker‑controlled offset into the second. No confirmed exploitation beyond a denial of service has been observed, but the memory corruption could, in theory, lead to crashes, memory corruption, or privilege escalation if mitigations such as ASLR were bypassed.

Affected Systems

Affected consumers of the libass library include any application that renders Advanced Substation Alpha subtitles, such as media players, video editors, and streaming services. The defect is present in all libass releases before 0.17.5. The vulnerable component is the libass subtitle renderer, as identified by the CNA as libass:libass.

Risk and Exploitability

The CVSS score of 7.3 indicates a high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The flaw can be triggered by supplying a crafted ASS file to any application that renders subtitles using libass. An attacker could cause a crash or memory corruption, leading to a denial of service. No widespread exploitation is known at present, and mitigation hinges on applying the vendor fix or limiting the processing of untrusted subtitle files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the libass library to version 0.17.5 or newer, which includes bounds‑checking logic to prevent the out-of-bounds read and buffer overflow in wrap_lines_measure.
  • Rebuild or reinstall any applications that link against libass after the upgrade to ensure they reference the fixed library code.
  • Until the upgrade can be applied, disable or sanitize subtitle rendering for any sources that cannot be verified as trusted, reducing the chance that malicious ASS files are parsed.

Generated by OpenCVE AI on October 30, 2026 at 16:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4769-1 libass security update
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Libass
Libass libass
Vendors & Products Libass
Libass libass
Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title libass: Out-of-bounds read and write in wrap_lines_measure
Weaknesses CWE-125
CWE-787
References
Metrics cvssV4_0

{'score': 7.3, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 3:51 PM
Reserved
Jul 10, 2026, 5:38 PM
Status
Deferred
Published
Oct 30, 2026, 3:16 PM
Modified
Oct 30, 2026, 7:39 PM
Severity
Important
Public date
Oct 30, 2026, 2:55 PM