Description
Mini-XML 4.0.0 through 4.0.6 contains an off-by-one stack out-of-bounds write in mxml_strtod() when the locale decimal point is not '.'. Attackers can supply XML with a 63-digit REAL value followed by '.' to write a NUL byte past the 64-byte stack buffer, corrupting stack memory or crashing the process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Michael R Sweet | Mini-XML | 4.0.0 – ≤ 4.0.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 | mxml | 4.0.6-3 | — |
| Debian 13 | mxml | No fix yet | — |
| Debian 12 | mxml | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mxml | No fix yet | — |
| Ubuntu 26.04 LTS | mxml | No fix yet | — |
| Ubuntu 24.04 LTS | mxml | No fix yet | — |
| Ubuntu 22.04 LTS | mxml | No fix yet | — |
| Ubuntu 20.04 LTS | mxml | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | mxml | No fix yet | — |
| Ubuntu 16.04 LTS | mxml | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/mxml-strtod-locale-stack-overflow third-party-advisory
- https://github.com/michaelrsweet/mxml/blob/v4.0.6/mxml-file.c#L1860-L1887 technical-description
- https://github.com/michaelrsweet/mxml/commit/367c7ddd3387f65e867d776216de274bcaa3dae1 patch
- VulnCheck Advisory: Mini-XML 4.0.0 through 4.0.6 Stack Out-of-Bounds Write via mxml_strtod() third-party-advisory