Summary
This update for expat fixes the following issues:
- CVE-2025-59375: denial of service (resource consumption) caused by processing malformed small documents (bsc#1249584).
- CVE-2026-24515: NULL dereference (CWE-476) due to function XML_ExternalEntityParserCreate() failing to copy the
encoding handler data passed to XML_SetUnknownEncodingHandler() from the parent to the subparser (bsc#1257144).
- CVE-2026-25210: lack of buffer size check can lead to an integer overflow (bsc#1257496).
- CVE-2026-32776: NULL pointer dereference when processing empty external parameter entities inside an entity
declaration value (bsc#1259726).
- CVE-2026-32777: denial of service due to infinite loop in DTD content parsing (bsc#1259711).
- CVE-2026-32778: NULL pointer dereference in `setContext` on retry after an out-of-memory condition
(bsc#1259729).
- CVE-2026-41080: crafted XML document can cause a denial of service (bsc#1262263).
- CVE-2026-45186: denial of service via moderately sized crafted XML input (bsc#1264713).
- CVE-2026-50219: lack of handler call depth tracking for calls to XML_* functions from within handlers in cases of a
policy violation (bsc#1267631).
- CVE-2026-56131: lack of handler call depth tracking for calls to XML_ResumeParser from within
handlers in cases of a policy violation (bsc#1268572).
- CVE-2026-56132: heap-based buffer overflow in doProlog in xmlparse.c (bsc#1268573).
- CVE-2026-56403,CVE-2026-56404,CVE-2026-56405,CVE-2026-56406,
CVE-2026-56407,CVE-2026-56408,CVE-2026-56409,CVE-2026-56410,
CVE-2026-56411,CVE-2026-56412: multiple integer overflow vulnerabilities (bsc#1275115).
- CVE-2026-66046: denial of service vulnerability caused by quadratic algorithmic complexity in the storeAtts()
function (bsc#1275732).
- CVE-2026-72522: out-of-bounds read and resultant infinite loop due to low surrogates being treated the same
as high surrogates during Unicode processing (bsc#1275594).
- CVE-2026-76641: out-of-bounds read vulnerability that allows attackers to trigger
memory corruption (bsc#1275915).
- CVE-2026-76956: denial of service via hash flooding attacks (bsc#1275860).
- CVE-2026-76957: lack of handler call depth tracking with custom encoding callbacks. Thus, a use-
after-free can occur (bsc#1275859).
- CVE-2026-77214: out-of-bounds read due to insufficient checks in `XML_ParseBuffer()` (bsc#1284334).
- CVE-2026-93990: fails to validate low surrogates following high surrogates in UTF-16 input (bsc#1282347).
- CVE-2026-102633: Denial of Service via integer overflow in expat_realloc (bsc#1283493).
Changes for expat:
Update to 2.8.5 (jsc#PED-16154):
* Bug fixes:
* Fix an OOM-related memory leak on a failed overflow check
* Fix memory alignment for architectures with 128bit pointers
* Mark XML_SetHashSalt deprecated
* CMake: only add /source-charset:utf-8 when /utf-8 is not present
* lib: resolve undefined behavior from overshifting a signed int
* lib: support read-only hash table lookup with non-zero-terminated
keys
* lib: use a C99 bool for ENTITY.open
* version info bumped from 13:3:12 to 13:4:12
* fix support for 2+ GiB documents (regression from 2.8.2)
* reject empty version in the XML declaration
* fix printf format for AIX
* CMake|AIX: enable EXPAT_DEV_URANDOM by default
* version info bumped from 13:2:12 to 13:3:12
* Existing API function XML_SetHashSalt is now deprecated
* because of its limitations, and its use should be
* considered a vulnerability. Please either use the new API
* function XML_SetHashSalt16Bytes (with known-high-quality
* entropy input only!) instead, or leave the derivation of
* a 16-bytes hash salt from high quality entropy to Expat's
* internal machinery (by *not* calling either of the two
* XML_SetHashSalt* functions).
* xmlwf: Fix a memory leak
* WASI: Fix format specifiers for 32bit WASI SDK
* Fix alignment of internal allocations for some non-amd64
architectures (e.g. sparc32); fixes up on the fix to
CVE-2025-59375 (of Expat 2.7.2)
* Fix a class of false positives where input should have been
rejected with error XML_ERROR_ASYNC_ENTITY; regression from
CVE-2024-8176 (of Expat 2.7.0)
* Prove and regression-proof absence of integer overflow
from function expat_realloc
* Remove "harmless" cast that truncated a size_t to unsigned
* xmlwf: Resolve use of functions XML_GetErrorLineNumber
and XML_GetErrorColumnNumber
* CVE-2025-59375 -- Disallow use of disproportional amounts of
dynamic memory from within an Expat parser
* xmlwf: Fix (internal) help generator
* xmlwf: Mention supported environment variables in
Fixed packages 1
| Release | Package | Fixed in |
|---|---|---|
| SUSE · SLE Micro 6.1 Linux Micro 6.1 | expat | 2.8.5-slfo.1.1_1.1 |
Vulnerabilities 29
-
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 in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that i…
-
High 7.5
Expat Denial of Service via storeAtts() Quadratic Complexity
Expat through 2.8.3 contains a denial of service vulnerability caused by quadratic algorithmic complexity in the storeAtts() function in xmlparse.c, where processing N specified attributes with non-normalized values triggers an O(N^2) linear scan of elementTy…
-
High 7.5
Expat Out-of-Bounds Read via dtdCopy
Expat through 2.8.3 contains an out-of-bounds read vulnerability that allows attackers to trigger memory corruption by processing XML with external entity parsers created via XML_ExternalEntityParserCreate. A struct size mismatch between ELEMENT_TYPE members …
-
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 6.9
In libexpat before 2.7.4, the doContent function does not properly determine the buffer size bufSize because there is n…
-
Medium 6.9
In libexpat before 2.8.2, there is a heap-based buffer overflow in doProlog in xmlparse.c because scaffold backing arra…
-
Medium 6.9
libexpat before 2.8.2 has an integer overflow in storeAtts.
-
Medium 6.9
libexpat before 2.8.2 has an integer overflow in addBinding.
-
Medium 6.9
libexpat before 2.8.2 has an integer overflow in getAttributeId.
-
Medium 6.9
libexpat before 2.8.2 has an integer overflow in XML_ParseBuffer because it lacked a check that was present in XML_Pars…
-
Medium 6.9
libexpat before 2.8.2 has an integer overflow in doProlog that is related to storeEntityValue and entity textLen.
-
Medium 6.9
libexpat before 2.8.2 has an integer overflow in copyString.
-
Medium 6.9
xmlwf in libexpat before 2.8.2 has an integer overflow in resolveSystemId.
-
Medium 6.9
xmlwf in libexpat before 2.8.2 has an integer overflow in endDoctypeDecl via NOTATION declarations.
-
Medium 6.5
xmlwf in libexpat before 2.8.2 has an integer overflow for the output filename when -d outputDir is used.
-
Medium 6.2
libexpat before 2.8.3 has an out-of-bounds read and resultant infinite loop because low surrogates are treated the same…
-
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
In libexpat 2.8.2 and 2.8.3 before 2.8.4, misinterpretation of getentropy's return code leads to insufficient entropy, …
-
Medium 4.9
libexpat before 2.8.2 lacks handler call depth tracking for calls to XML_GetBuffer, XML_Parse, XML_ParseBuffer, XML_Par…
-
Medium 4.9
libexpat before 2.8.2 lacks handler call depth tracking for calls to XML_ResumeParser from within handlers in cases of …
-
Medium 4.9
libexpat before 2.8.2 does not consider XML_TOK_DATA_CHARS in doCdataSection and thus lacks handler call depth tracking…
-
Medium 4.9
libexpat before 2.8.4 lacks handler call depth tracking with custom encoding callbacks. Thus, a use-after-free can occu…
-
Medium 4.0
libexpat before 2.7.5 allows a NULL pointer dereference with empty external parameter entity content.
-
Medium 4.0
libexpat before 2.7.5 allows an infinite loop while parsing DTD content.
-
Low 2.9
In libexpat before 2.7.4, XML_ExternalEntityParserCreate does not copy unknown encoding handler user data.
-
Low 2.9
libexpat before 2.7.5 allows a NULL pointer dereference in the function setContext on retry after an earlier ouf-of-mem…
-
Low 2.9
libexpat before 2.8.0 uses insufficient entropy, and thus hash flooding can occur via a crafted XML document.
-
Low 2.9
In libexpat before 2.8.1, the computational complexity of attribute name collision checks allows a denial of service vi…
References
-
report
https://bugzilla.suse.com/1249584
-
report
https://bugzilla.suse.com/1257144
-
report
https://bugzilla.suse.com/1257496
-
report
https://bugzilla.suse.com/1259711
-
report
https://bugzilla.suse.com/1259726
-
report
https://bugzilla.suse.com/1259729
-
report
https://bugzilla.suse.com/1262263
-
report
https://bugzilla.suse.com/1264713
-
report
https://bugzilla.suse.com/1267631
-
report
https://bugzilla.suse.com/1268572
-
report
https://bugzilla.suse.com/1268573
-
report
https://bugzilla.suse.com/1275115
-
report
https://bugzilla.suse.com/1275594
-
report
https://bugzilla.suse.com/1275732
-
report
https://bugzilla.suse.com/1275859
-
report
https://bugzilla.suse.com/1275860
-
report
https://bugzilla.suse.com/1275915
-
report
https://bugzilla.suse.com/1282347
-
report
https://bugzilla.suse.com/1283493
-
report
https://bugzilla.suse.com/1284334
-
web
https://www.suse.com/security/cve/CVE-2025-59375
-
web
https://www.suse.com/security/cve/CVE-2026-102633
-
web
https://www.suse.com/security/cve/CVE-2026-24515
-
web
https://www.suse.com/security/cve/CVE-2026-25210
-
web
https://www.suse.com/security/cve/CVE-2026-32776
-
web
https://www.suse.com/security/cve/CVE-2026-32777
-
web
https://www.suse.com/security/cve/CVE-2026-32778
-
web
https://www.suse.com/security/cve/CVE-2026-41080
-
web
https://www.suse.com/security/cve/CVE-2026-45186
-
web
https://www.suse.com/security/cve/CVE-2026-50219
-
web
https://www.suse.com/security/cve/CVE-2026-56131
-
web
https://www.suse.com/security/cve/CVE-2026-56132
-
web
https://www.suse.com/security/cve/CVE-2026-56403
-
web
https://www.suse.com/security/cve/CVE-2026-56404
-
web
https://www.suse.com/security/cve/CVE-2026-56405
-
web
https://www.suse.com/security/cve/CVE-2026-56406
-
web
https://www.suse.com/security/cve/CVE-2026-56407
-
web
https://www.suse.com/security/cve/CVE-2026-56408
-
web
https://www.suse.com/security/cve/CVE-2026-56409