# CVE-2026-111138: NetSurf libnsbmp through 0.1.7 Out-of-Bounds Read in RLE8 and RLE4 Decoders

- Severity: Medium 6.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-15T18:57:31.267Z
- Modified: 2026-10-16T18:25:45.343Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

NetSurf libnsbmp through 0.1.7 contains an out-of-bounds read vulnerability in bmp_decode_rle8() and bmp_decode_rle4() because absolute-run bound checks omit the word-alignment pad byte. Attackers can supply a crafted RLE8 or RLE4 BMP ending on an odd-length absolute run to cause a one-byte heap over-read, crashing applications decoding untrusted images.

(As written by CVE List.)

## Affected

- NetSurf libnsbmp: up to 0.1.7

## Every score

- VulnCheck: CVSS:4.0 6.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://hackmd.io/@haind-pwn/libnsbmp-rle-absolute-pad-and-ico-mask-oob-read> (exploit, technical-description)
- <https://github.com/netsurf-browser/libnsbmp/blob/ea063c9f46acb43e90208da14073332b505ef7e7/src/libnsbmp.c#L942-L982> (technical-description)
- <https://github.com/netsurf-browser/libnsbmp/blob/ea063c9f46acb43e90208da14073332b505ef7e7/src/libnsbmp.c#L1096-L1147> (technical-description)
- <https://download.netsurf-browser.org/libs/releases/libnsbmp-0.1.7-src.tar.gz> (product)
- <https://github.com/netsurf-browser/libnsbmp> (product)
- <https://www.vulncheck.com/advisories/netsurf-libnsbmp-through-0.1.7-out-of-bounds-read-in-rle8-and-rle4-decoders> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-111138](https://www.cve.org/CVERecord?id=CVE-2026-111138), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-111138](https://nvd.nist.gov/vuln/detail/CVE-2026-111138), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-111138 · Whole record: https://cve.day/CVE-2026-111138.json · Rebuilt by cve.day 2026-11-25T22:59:44.933Z
