Skip to content
OpenAdvisories
High · 8.2 CVE-2026-29078 EUVD-2026-12051

Integer Underflow in Lexbor ISO‑2022‑JP Encoder

Published Mar 13, 2026 · Updated Mar 16, 2026 · Assigned by GitHub_M

Description

Lexbor is a web browser engine library. Prior to 2.7.0, the ISO‑2022‑JP encoder in Lexbor fails to reset the temporary size variable between iterations. The statement ctx->buffer_used -= size with a stale size = 3 causes an integer underflow that wraps to SIZE_MAX. Afterwards, memcpy is called with a negative length, leading to an out‑of‑bounds read from the stack and an out‑of‑bounds write to the heap. The source data is partially controllable via the contents of the DOM tree. This vulnerability is fixed in 2.7.0.

Affected products

VendorProductAffectedFixed
lexbor lexbor < 2.7.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 lexbor 3.0.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 lexbor No fix yet —
Ubuntu 26.04 LTS lexbor No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 php85 8.5.6-r0 —
Alpine v3.23 php84 8.4.21-r0 —
Alpine v3.23 php85 8.5.6-r0 —
Alpine v3.22 php84 8.4.27-r0 —

References