Skip to content

CVE-2026-29078 Integer Underflow in Lexbor ISO‑2022‑JP Encoder

HighCVSS 8.2 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 6 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/lexbor(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/lexbor(Ubuntu 26.10) All versions No fix listed No fix yet
alpine/php84(Alpine v3.22) < 8.4.27-r0 8.4.27-r0 Fixed
alpine/php84(Alpine v3.23) < 8.4.21-r0 8.4.21-r0 Fixed
alpine/php85(Alpine v3.23) < 8.5.6-r0 8.5.6-r0 Fixed
alpine/php85(Alpine v3.24) < 8.5.6-r0 8.5.6-r0 Fixed
debian/lexbor(Debian 14) < 3.0.0-1; = 2.6.0-1; = 2.6.0-2; = 3.0.0-1~exp1 3.0.0-1 Fixed
lexbor < 2.7.0; = < 2.7.0 2.7.0 Fixed

Affected products

ProductAffected versionsFixed in
lexbor = < 2.7.0 No fix listed
debian/lexbor(Debian:14) < 3.0.0-1 3.0.0-1
debian/lexbor(Debian:14) = 2.6.0-1 No fix listed
debian/lexbor(Debian:14) = 2.6.0-2 No fix listed
debian/lexbor(Debian:14) = 3.0.0-1~exp1 No fix listed
alpine/php84(Alpine:v3.22) < 8.4.27-r0 8.4.27-r0
alpine/php84(Alpine:v3.23) < 8.4.21-r0 8.4.21-r0
alpine/php85(Alpine:v3.23) < 8.5.6-r0 8.5.6-r0
alpine/php85(Alpine:v3.24) < 8.5.6-r0 8.5.6-r0
ubuntu/lexbor(Ubuntu:26.04) All versions No fix listed
ubuntu/lexbor(Ubuntu:26.10) All versions No fix listed
lexbor < 2.7.0 2.7.0

References