# Ubuntu releases security updates for Expat XML parsing library

> **Key takeaway:** Multiple vulnerabilities in the Expat XML library, including integer overflows and buffer over-reads, have been patched across Ubuntu 22.04, 24.04, and 26.04 LTS.

**Published:** 2026-11-25T13:48:17+00:00 
**Source:** Ubuntu Security &amp; Release Notices 
**Category:** distro-news 
**Canonical URL:** https://fosswire.org/news/ubuntu-releases-security-updates-for-expat-xml-parsing-libra.html 

## Summary
Canonical has issued security updates for the Expat XML parsing C library to address a series of vulnerabilities affecting multiple Ubuntu Long Term Support (LTS) releases. The flaws range from memory management errors to improper validation of character encodings, which could lead to various security risks.

Users running Ubuntu 22.04 LTS, 24.04 LTS, and 26.04 LTS are affected. The vulnerabilities could allow an attacker to cause application crashes via denial of service, leak sensitive information through heap buffer over-reads, or potentially execute arbitrary code through integer overflows.

## Vulnerability breakdown and technical fixes
- **Memory Management & Overflows:** Integer overflows were identified in how Expat computes memory allocation sizes on 32-bit platforms (CVE-2026-102633) and when handling a very large number of attributes (CVE-2026-118370), both of which could lead to crashes or arbitrary code execution.
- **Buffer & Memory Safety:** The library suffered from heap buffer over-reads due to improper buffer length validation (CVE-2026-77214) and out-of-bounds reads caused by truncated multibyte sequences in documents with unknown encodings (CVE-2026-124317).
- **Encoding & Validation Errors:** Multiple issues involved improper handling of UTF-16 surrogate pairs (CVE-2026-93990, CVE-2026-134703) and NULL pointer dereferences when handling empty input to external entity parsers (CVE-2026-117610).
- **Tooling & Logic Flaws:** The xmlwf tool was updated to prevent local attackers from overwriting files via symbolic links when using the -d option (CVE-2026-128241), and the library's entity expansion detection was improved to prevent resource exhaustion (CVE-2026-115506).
- **Parser State Issues:** A flaw in how memory allocations were tracked during parser resets (CVE-2026-113351) specifically impacted Ubuntu 24.04 and 26.04 LTS, potentially causing subsequent parsing tasks to fail.

## Why it matters
Because Expat is a fundamental C library used by countless applications for XML processing, these patches are critical for system stability and security. System administrators should prioritize updating the 'expat' and 'libexpat1' packages to mitigate risks of remote code execution and denial of service across their Linux environments.