Description
libnxml before 0.18.6 contains a stack-based buffer overflow vulnerability in src/nxml_parser.c that allows remote attackers to write past a 1024-byte stack buffer via long XML names. Attackers can supply XML or RSS feeds with a 1022-character element, attribute, DOCTYPE or entity name ending in a multi-byte UTF-8 character to crash parsing applications.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| bakulf | libnxml | < 0.18.6 | 0.18.6 |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libnxml | No fix yet | — |
| Debian 13 | libnxml | No fix yet | — |
| Debian 12 | libnxml | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libnxml | No fix yet | — |
| Ubuntu 26.04 LTS | libnxml | No fix yet | — |
| Ubuntu 24.04 LTS | libnxml | No fix yet | — |
| Ubuntu 22.04 LTS | libnxml | No fix yet | — |
| Ubuntu 20.04 LTS | libnxml | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libnxml | No fix yet | — |
| Ubuntu 16.04 LTS | libnxml | No fix yet | — |
References
- https://github.com/bakulf/libnxml/commit/fbac242374883edf2ec14127ca6d2accf4704b6a patch
- libnxml 0.18.6 Release Notes release-notes
- https://github.com/bakulf/libnxml/blob/9272d1cd6fee88fe7fd4fd812736d95a6ba25f2f/src/nxml_parser.c#L952-L958 technical-description
- VulnCheck Advisory: libnxml before 0.18.6 Stack-based Buffer Overflow via long multi-byte XML name third-party-advisory