Vulnerability · Published Mar 13, 2026 · Assigned by GitHub_M
CVE-2026-29078Integer Underflow in Lexbor ISO‑2022‑JP Encoder
High 8.2
In plain English
A high-severity out-of-bounds write in lexbor from lexbor. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.22 | php84 | 8.4.27-r0 | ALPINE-CVE-2026-29078 |
| Alpine:v3.23 | php84 | 8.4.21-r0 | ALPINE-CVE-2026-29078 |
| Alpine:v3.23 | php85 | 8.5.6-r0 | ALPINE-CVE-2026-29078 |
| Alpine:v3.24 | php85 | 8.5.6-r0 | ALPINE-CVE-2026-29078 |
| Debian:14 | lexbor | 3.0.0-1 | DEBIAN-CVE-2026-29078 |
| Ubuntu:26.04:LTS | lexbor | no fix listed | UBUNTU-CVE-2026-29078 |
| Ubuntu:26.10 | lexbor | no fix listed | UBUNTU-CVE-2026-29078 |
Affected products (as reported)
Weakness: CWE-191, CWE-787 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/lexbor/lexbor/security/advisories/GHSA-mrwr-xh7f-96v3 x_refsource_CONFIRM