Skip to content
OpenAdvisories
High USN-9196-1 10 CVEs

expat vulnerabilities

Published Nov 25, 2026 · Updated Nov 25, 2026

Summary

It was discovered that Expat did not properly validate UTF-16 surrogate
pairs. An attacker could possibly use this issue to pass malformed
characters to applications using Expat, resulting in unexpected behavior.
(CVE-2026-93990)

It was discovered that Expat incorrectly computed memory allocation sizes
on 32-bit platforms, leading to an integer overflow. An attacker could
possibly use this issue to cause Expat to crash, resulting in a denial of
service, or possibly execute arbitrary code. This issue only affected
Ubuntu 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2026-102633)

It was discovered that Expat did not properly validate buffer lengths under
certain circumstances, leading to a heap buffer over-read. An attacker
could possibly use this issue to cause Expat to crash, resulting in a
denial of service, or obtain sensitive information. (CVE-2026-77214)

It was discovered that Expat detected certain entity expansion attacks too
late. An attacker could possibly use this issue to cause Expat to consume
excessive resources, leading to a denial of service. (CVE-2026-115506)

It was discovered that Expat incorrectly tracked memory allocations when a
parser was reset. An attacker could possibly use this issue to cause later
documents parsed with the same parser to fail, resulting in a denial of
service. This issue only affected Ubuntu 24.04 LTS and Ubuntu 26.04 LTS.
(CVE-2026-113351)

It was discovered that Expat incorrectly handled a very large number of
attributes, leading to an integer overflow. An attacker could possibly use
this issue to cause Expat to crash, resulting in a denial of service, or
possibly execute arbitrary code. (CVE-2026-118370)

It was discovered that Expat incorrectly handled empty input to external
entity parsers, leading to a NULL pointer dereference. An attacker could
possibly use this issue to cause Expat to crash, resulting in a denial of
service. (CVE-2026-117610)

It was discovered that Expat incorrectly handled truncated multibyte
sequences in documents with unknown encodings, leading to an out-of-bounds
read. An attacker could possibly use this issue to cause Expat to crash,
resulting in a denial of service, or obtain sensitive information.
(CVE-2026-124317)

It was discovered that the xmlwf tool in Expat followed symbolic links when
writing output files with the -d option. A local attacker could possibly
use this issue to overwrite files with the privileges of the user running
xmlwf. This update also changes xmlwf to create these output files with
0600 permissions. (CVE-2026-128241)

It was discovered that Expat could split UTF-16 surrogate pairs when
converting UTF-16 input in non-native byte order. An attacker could
possibly use this issue to pass malformed characters to applications using
Expat, resulting in unexpected behavior. (CVE-2026-134703)

Fixed packages 3

ReleasePackageFixed in
Ubuntu · 22.04 LTS 22.04:LTS expat 2.4.7-1ubuntu0.10
Ubuntu · 24.04 LTS 24.04:LTS expat 2.6.1-2ubuntu0.7
Ubuntu · 26.04 LTS 26.04:LTS expat 2.7.4-1ubuntu0.3

Vulnerabilities 10

  • High 8.2

    libexpat Heap Buffer Over-read in xmlparse.c via XML_ParseBuffer

    libexpat before commit 13c5f63 contains a heap buffer over-read vulnerability in xmlparse.c. XML_ParseBuffer advances the parse buffer end with parser->m_bufferEnd += len using a caller-supplied length that is not validated against the allocated buffer size, …

  • High 7.5

    libexpat through 2.9.0 Denial of Service via Billion Laughs Detection Delay

    libexpat through 2.9.0 contains a denial of service vulnerability because billion laughs protection in accountingDiffTolerated() in xmlparse.c detects entity amplification too late. Attackers can supply a moderately sized XML document with a large DTD and nes…

  • High 7.5

    Expat before 2.8.5 Malformed UTF-16 Acceptance via Unchecked Surrogate

    Expat before 2.8.5 fails to validate that a high surrogate in UTF-16 input is followed by a low surrogate, allowing malformed UTF-16 sequences to be accepted. Attackers can supply UTF-16 encoded XML containing lone high surrogates that consume the following c…

  • Medium 5.9

    libexpat 2.7.2 through 2.8.5 Integer Overflow in expat_realloc

    libexpat versions 2.7.2 through 2.8.5 contain an integer overflow vulnerability in expat_realloc() function on 32-bit platforms when computing allocation sizes. Attackers supplying malicious XML to applications parsing with vulnerable libexpat can cause heap …

  • Medium 5.9

    libexpat 2.7.2 through 2.9.0 Denial of Service via XML_ParserReset

    libexpat 2.7.2 through 2.9.0 contains a denial of service vulnerability because XML_ParserReset zeroes the direct byte count but never offsets tracked heap allocations. Attackers can submit a large XML document so later documents on the same reset parser fail…

  • Medium 5.9

    libexpat through 2.9.0 NULL Pointer Dereference via External Entity Subparser

    libexpat through 2.9.0 contains a NULL pointer dereference vulnerability in externalEntityInitProcessor2() in lib/xmlparse.c that mishandles the XML_TOK_NONE token from empty input. Attackers who control stream chunking can force an empty non-final first pars…

  • Medium 5.9

    libexpat through 2.9.0 Integer Overflow in storeAtts via attIndex and nPrefixes

    libexpat through 2.9.0 contains a signed integer overflow vulnerability in storeAtts() in lib/xmlparse.c that allows attackers to trigger out-of-bounds writes via oversized attribute counts. Attackers can supply a multi-gigabyte document with a start tag carr…

  • Medium 4.8

    libexpat through 2.10.0 Out-of-Bounds Read via unknown_toUtf8 and unknown_toUtf16

    libexpat through 2.10.0 contains an out-of-bounds read vulnerability in unknown_toUtf8() and unknown_toUtf16() in xmltok.c when handling application-registered unknown encodings. Attackers can supply a document ending in a truncated multibyte sequence so the …

  • Medium 4.4

    libexpat xmlwf through 2.10.0 Symlink Following via -d Output Directory

    The xmlwf tool in libexpat through 2.10.0 contains a symlink following vulnerability because -d output mode opens files with fopen("wb"), which follows symbolic links. Local attackers with write access to the output directory can plant a symlink at the expect…

  • Low 3.7

    libexpat through 2.10.0 Isolated High Surrogate via UTF-16 Conversion

    libexpat through 2.10.0 contains an improper Unicode handling vulnerability in DEFINE_UTF16_TO_UTF16 conversion functions in xmltok.c that can split valid surrogate pairs when output space is limited. In XML_UNICODE builds parsing non-native byte order UTF-16…

References

  • report
    https://ubuntu.com/security/CVE-2026-77214
  • report
    https://ubuntu.com/security/CVE-2026-93990
  • report
    https://ubuntu.com/security/CVE-2026-102633
  • report
    https://ubuntu.com/security/CVE-2026-113351
  • report
    https://ubuntu.com/security/CVE-2026-115506
  • report
    https://ubuntu.com/security/CVE-2026-117610
  • report
    https://ubuntu.com/security/CVE-2026-118370
  • report
    https://ubuntu.com/security/CVE-2026-124317
  • report
    https://ubuntu.com/security/CVE-2026-128241
  • report
    https://ubuntu.com/security/CVE-2026-134703