CVE
CVE-2026-118370, CVE-2026-115506, CVE-2026-117610, CVE-2026-113351, CVE-2026-111959, CVE-2026-120438, CVE-2026-120439, CVE-2026-120440
CWE
CWE-190, CWE-787, CWE-125, CWE-776, CWE-476, CWE-400, CWE-401
Affected Surface
- C / C++ XML parser library `libexpat` (Expat) versions `<= 2.9.0` (`CVE-2026-118370`, `CVE-2026-115506`, `CVE-2026-117610`, and `CVE-2026-113351`, fixed in `libexpat 2.10.0`)
- crates.io Apache Arrow Rust (`arrow`, `arrow-data`, and `arrow-array` crates) versions `>= 33.0.0, <= 57.3.1`, `>= 58.0.0, <= 58.4.0`, `>= 59.0.0, <= 59.3.1`, and `60.0.0` (`CVE-2026-111959`, fixed in `60.1.0`, `59.3.2`, `58.4.1`, and `57.3.2`)
- C / WebAssembly JavaScript engine `QuickJS-NG` (`quickjs-ng/quickjs`) versions `< 0.16.0` (`CVE-2026-120438` / `GHSA-jp52-chwg-2p9p` CVSS 7.8 High, `CVE-2026-120439` / `GHSA-9wv5-5cgr-grj6` CVSS 7.0 High, and `CVE-2026-120440` / `GHSA-wm7w-r6qf-3c9w` CVSS 5.3 / 5.9 Medium, fixed in `v0.16.0`)
TL;DR
On 2 November 2026, oss-security, NVD, and the GitHub Advisory Database published eight vulnerabilities across three foundational libraries embedded in Python/Node.js runtimes, columnar data engines, and WebAssembly/IoT sandboxes:
libexpat2.10.0patches four XML parser vulnerabilities (CVE-2026-118370,CVE-2026-115506,CVE-2026-117610, andCVE-2026-113351):CVE-2026-118370(PR#1450): Inexpat/lib/xmlparse.c,storeAtts()tracked attribute indices and namespace prefix counts in signedintvariables (attIndexandnPrefixes), allowing signed integer overflow when storingparser->m_nSpecifiedAttsandparser->m_idAttIndex.CVE-2026-115506(PRs#1433,#1439, and#1442): Entity closure size scanning (scanEntityText()) did not skip<![CDATA[...]]>,<!--...-->, or<?...?>sections inside entity bodies and Improved Billion Laughs detection against compressed payloads generated by Hanno Böck’slolololfuzzer.CVE-2026-117610(PR#1444):externalEntityInitProcessor2()did not handleXML_TOK_NONEon an initial non-final (!finalBuffer) emptyXML_Parsecall on a subparser, falling through and dereferencing a NULL pointer.CVE-2026-113351(PR#1431):XML_ParserReset()calledparserInit(), which zeroedm_accounting.countBytesDirectviamemset()while leavingm_alloc_tracker.bytesAllocatedintact. Once a pooled parser processed a single well-formed document over 64 MiB, every subsequentXML_ParserReset()+XML_Parse()call on even a 25-byte document computed a>7,456,890xamplification ratio and failed permanently withXML_ERROR_NO_MEMORY. Worse,parserInit()also silently reset customXML_SetBillionLaughsAttackProtection*thresholds back to defaults on every reset.
- Apache Arrow Rust (
arrow/arrow-data/arrow-array)RunEndEncodedout-of-bounds read (CVE-2026-111959, reported by Ada Logics and Anthropic): In versions33.0.0through60.0.0,ArrayData::check_run_ends()inarrow-data/src/data.rschecked that the last run-end value was>= len_plus_offsetusing the childrun_endsarray’s length and offset (self.len + self.offset) rather than the parentRunEndEncodedarray’s logicaloffset + len(commita9455d4a26), andFrom<ArrayData> for RunArray<R>inarrow-array/src/array/run_array.rsdiscardedrun_end_offsetandrun_end_lenwhen constructingScalarBuffer::from(run_end_buffer)(commitee9f2a38f6). Crafting aRunEndEncodedarray via IPC/FFI orArrayDataBuilderallowed reading memory past the bounds of the childvaluesarray. Fixed in60.1.0,59.3.2,58.4.1, and57.3.2. QuickJS-NG< 0.16.032-bitProxyandTypedArray.prototype.sortheap buffer overflows (CVE-2026-120438/GHSA-jp52-chwg-2p9p, CVSS 7.8 High;CVE-2026-120439/GHSA-9wv5-5cgr-grj6, CVSS 7.0 High) andAtomics.storememory leak (CVE-2026-120440/GHSA-wm7w-r6qf-3c9w, CVSS 5.3 / 5.9 Medium): On 32-bit and WebAssembly builds ofQuickJS-NG,js_proxy_get_own_property_names()computeduint32_t n = len + extra_lenwithout overflow checking before callingjs_realloc(), andjs_typed_array_sort()allocated its merge-sort index buffer withjs_malloc(ctx, len * sizeof(array_idx[0]))(which wraps atlen >= 2^30), leading to heap buffer overflows in both functions. Fixed inQuickJS-NG v0.16.0.
What to do now: Upgrade libexpat to >= 2.10.0, upgrade Apache Arrow Rust crates (arrow, arrow-data, arrow-array) to >= 60.1.0 (59.3.2, 58.4.1, or 57.3.2), and upgrade QuickJS-NG to >= v0.16.0.
Affected packages and libraries
| Ecosystem | Library / Crate | CVE / GHSA | Severity | Affected versions | Fixed version | Vulnerable component |
|---|---|---|---|---|---|---|
| C / C++ | libexpat (Expat) | CVE-2026-118370 | High / Medium | <= 2.9.0 | 2.10.0 | storeAtts() (attIndex and nPrefixes signed int overflow) in expat/lib/xmlparse.c |
| C / C++ | libexpat (Expat) | CVE-2026-115506, CVE-2026-117610, CVE-2026-113351 | Medium | <= 2.9.0 (113351 from 2.7.2) | 2.10.0 | scanEntityText(), externalEntityInitProcessor2(), and XML_ParserReset() / parserInit() in expat/lib/xmlparse.c |
| crates.io (Rust) | arrow, arrow-data, arrow-array | CVE-2026-111959 | Moderate | 33.0.0..57.3.1, 58.0.0..58.4.0, 59.0.0..59.3.1, 60.0.0 | 60.1.0, 59.3.2, 58.4.1, 57.3.2 | ArrayData::check_run_ends() (arrow-data/src/data.rs) and From<ArrayData> for RunArray<R> (arrow-array/src/array/run_array.rs) |
| C / WASM | QuickJS-NG (quickjs-ng/quickjs) | CVE-2026-120438 (GHSA-jp52-chwg-2p9p) | CVSS 7.8 High | < 0.16.0 | 0.16.0 | js_proxy_get_own_property_names() in quickjs.c |
| C / WASM | QuickJS-NG | CVE-2026-120439 (GHSA-9wv5-5cgr-grj6) | CVSS 7.0 High | < 0.16.0 | 0.16.0 | js_typed_array_sort() in quickjs.c |
| C / WASM | QuickJS-NG | CVE-2026-120440 (GHSA-wm7w-r6qf-3c9w) | CVSS 5.3 / 5.9 Medium | < 0.16.0 | 0.16.0 | js_atomics_store() (JS_CLASS_BIG_INT64_ARRAY / BIG_UINT64_ARRAY) in quickjs.c |
Technical analysis
1. libexpat 2.10.0: storeAtts integer overflow (CVE-2026-118370) and XML_ParserReset lockout (CVE-2026-113351)
In expat/lib/xmlparse.c, storeAtts() populates the attribute array passed to the application’s start-element handler and records parser->m_nSpecifiedAtts and parser->m_idAttIndex. Prior to 2.10.0 (PR #1450), attIndex, nPrefixes, and the loop index i were declared as signed int:
--- a/expat/lib/xmlparse.c
+++ b/expat/lib/xmlparse.c
@@ -4168,9 +4168,9 @@ storeAtts(XML_Parser parser, const ENCODING *enc, const char *attStr,
TAG_NAME *tagNamePtr, BINDING **bindingsPtr,
enum XML_Account account) {
DTD *const dtd = parser->m_dtd; /* save one level of indirection */
- int attIndex = 0;
+ size_t attIndex = 0;
XML_Char *uri;
- int nPrefixes = 0;
+ size_t nPrefixes = 0;
...
@@ -4311,11 +4311,16 @@ storeAtts(XML_Parser parser, const ENCODING *enc, const char *attStr,
/* set-up for XML_GetSpecifiedAttributeCount and XML_GetIdAttributeIndex */
- parser->m_nSpecifiedAtts = attIndex;
+ // Detect and reject integer overflow
+ if (attIndex > INT_MAX)
+ return XML_ERROR_NO_MEMORY;
+ parser->m_nSpecifiedAtts = (int)attIndex;
if (elementType->idAtt && (elementType->idAtt->name)[-1]) {
- for (int i = 0; i < attIndex; i += 2)
+ for (size_t i = 0; i < attIndex; i += 2)
if (appAtts[i] == elementType->idAtt->name) {
- parser->m_idAttIndex = i;
+ if (i > INT_MAX)
+ return XML_ERROR_NO_MEMORY;
+ parser->m_idAttIndex = (int)i;
break;
}
Separately, CVE-2026-113351 (PR #1431, reported by @GeekQAQ) exposed two subtle interactions between XML_ParserReset() and Expat’s allocation tracker (m_alloc_tracker, added in 2.7.2) and Billion Laughs accounting (m_accounting):
- Permanent
XML_ERROR_NO_MEMORYafter parsing one>64 MiBdocument: When an application reuses anXML_Parseracross requests by callingXML_ParserReset(p, NULL), Expat retains its internal attribute and string pools (som_alloc_tracker.bytesAllocatedstays above the 64 MiB defaultactivationThresholdBytesif the previous document had a 70 MiB attribute). However,parserInit()ranmemset(&parser->m_accounting, 0, sizeof(ACCOUNTING)), resettingcountBytesDirectto0. On the very nextXML_Parse()call,expat_heap_increase_tolerable()divided the retained134 MBnewTotalby18direct input bytes (7,456,890.00amplification vs. the100.0limit) and rejected every subsequent document withXML_ERROR_NO_MEMORYuntil the process freed the parser. - Silent reset of custom Billion Laughs limits: Because
parserInit()overwrotem_accounting.maximumAmplificationFactorandm_accounting.activationThresholdBytesunconditionally, any stricter limits configured viaXML_SetBillionLaughsAttackProtectionMaximumAmplification()orXML_SetBillionLaughsAttackProtectionActivationThreshold()were wiped out on the firstXML_ParserReset()call.
PR #1431 records bytesAllocatedWhenLastReset on XML_ParserReset(), subtracts that baseline in expat_heap_increase_tolerable(), and passes bool isReset to parserInit() so caller-configured Billion Laughs thresholds survive resets.
2. Apache Arrow Rust 60.1.0 (CVE-2026-111959): RunEndEncoded parent length and child offset mismatch
In Apache Arrow’s Run-End Encoded (RunEndEncoded) layout, a logical array of length L and offset O stores two child arrays: a strictly increasing run_ends array (giving the logical end index of each run) and a values array of the same physical length as run_ends. For every logical index in [O, O + L), binary search over run_ends maps the logical index to a physical slot in values.
Two bugs in arrow-data and arrow-array broke that invariant (CVE-2026-111959):
--- a/arrow-data/src/data.rs
+++ b/arrow-data/src/data.rs
@@ -1675,11 +1675,19 @@ impl ArrayData {
DataType::RunEndEncoded(run_ends, _values) => {
+ let len_plus_offset =
+ checked_len_plus_offset(&self.data_type, self.len, self.offset)?;
let run_ends_data = self.child_at(0)?;
match run_ends.data_type() {
- DataType::Int16 => run_ends_data.check_run_ends::<i16>(),
- DataType::Int32 => run_ends_data.check_run_ends::<i32>(),
- DataType::Int64 => run_ends_data.check_run_ends::<i64>(),
+ DataType::Int16 => {
+ run_ends_data.check_run_ends::<i16>(self.len, len_plus_offset)
+ }
+ DataType::Int32 => {
+ run_ends_data.check_run_ends::<i32>(self.len, len_plus_offset)
+ }
+ DataType::Int64 => {
+ run_ends_data.check_run_ends::<i64>(self.len, len_plus_offset)
+ }
...
@@ -1856,10 +1868,9 @@ impl ArrayData {
- let len_plus_offset = checked_len_plus_offset(&self.data_type, self.len, self.offset)?;
- if prev_value.as_usize() < len_plus_offset {
+ if parent_len > 0 && prev_value.as_usize() < parent_len_plus_offset {
- Checking the child’s length instead of the parent’s (
#11668, commita9455d4a26):run_ends_data.check_run_ends()computedlen_plus_offsetfromself(run_ends_data, the child array of physical run count2) instead of the parentRunEndEncodedArrayData. Ifrun_endswas[1, 3](physical length2, last run end3),check_run_ends()only checked3 >= 2, allowing a caller to build a parentRunEndEncodedArrayDatawithlen = 100(oroffset = 2, len = 2). - Ignoring
run_end_offsetwhen buildingRunArrayfromArrayData(#11660, commitee9f2a38f6): Inarrow-array/src/array/run_array.rs,From<ArrayData> for RunArray<R>unpacked_run_end_lenand_run_end_offsetas unused variables and passed the rawrun_end_buffertoScalarBuffer::from(run_end_buffer)before callingunsafe { RunEndBuffer::new_unchecked(scalar, offset, len) }, reading unvalidated bytes beforerun_end_offset.
3. QuickJS-NG 0.16.0 (CVE-2026-120438, CVE-2026-120439, and CVE-2026-120440)
QuickJS-NG is frequently compiled to 32-bit WebAssembly (wasm32) or embedded on 32-bit microcontrollers to run untrusted JavaScript plugins and user scripts. In versions prior to 0.16.0:
ProxyownKeys32-bit addition wrap (CVE-2026-120438/GHSA-jp52-chwg-2p9p, commit252209d99c): Injs_proxy_get_own_property_names()(quickjs.c), the engine combined the property count returned by aProxy’sownKeystrap (len) withextra_lenusinguint32_tarithmetic (uint32_t n = len + extra_len), wrapped around on 32-bit builds whenlen + extra_len >= 2^32, allocated a tinyjs_realloc()buffer, and copiedlen + extra_lenproperty atoms past the end of the heap chunk.TypedArray.prototype.sort32-bit multiplication wrap (CVE-2026-120439/GHSA-9wv5-5cgr-grj6, commite93cca6119): Injs_typed_array_sort(), sorting aTypedArraywith a custom comparator allocated a scratch index array viaarray_idx = js_malloc(ctx, len * sizeof(array_idx[0]))wheresizeof(array_idx[0]) == 4. On 32-bit hosts (size_tis 32 bits), aUint8Arrayof length0x40000001(2^30 + 1) wrappedlen * 4to4bytes, and the merge sort wrote2^30 + 1indices out of bounds.Atomics.storeBigInt leak (CVE-2026-120440/GHSA-wm7w-r6qf-3c9w, commit62951e1bc6): Injs_atomics_store(), callingAtomics.store()on aBigInt64ArrayorBigUint64ArraywhoseSharedArrayBufferwas detached or shrunk inside the value’svalueOf()callback returned aRangeError/TypeErrorwithout callingJS_FreeValue(ctx, val).
Detection and remediation
# 1. Check installed libexpat packages on Linux / container images
dpkg -l '*expat*' 2>/dev/null || rpm -qa '*expat*' 2>/dev/null || apk info -vv expat 2>/dev/null || true
# 2. Search Rust Cargo.lock files for vulnerable arrow / arrow-data / arrow-array versions
rg -n -A 2 'name = "arrow(-data|-array)?"' Cargo.lock 2>/dev/null
# 3. Search C/C++/WASM submodules and build manifests for quickjs-ng
rg -n 'quickjs-ng|quickjs\.c' CMakeLists.txt Makefile Cargo.toml package.json .gitmodules 2>/dev/null
- Upgrade
libexpatto>= 2.10.0: If you backport the Billion Laughs entity-scanning fix (CVE-2026-115506) to an older branch, include follow-up PR#1439alongside#1433. - Upgrade Apache Arrow Rust to
>= 60.1.0(59.3.2,58.4.1, or57.3.2): Runcargo update -p arrow -p arrow-data -p arrow-arrayand verify your lockfile resolves to a patched maintenance train. - Upgrade
QuickJS-NGto>= v0.16.0: Any application embeddingQuickJS-NGinside a 32-bitwasm32sandbox (such as serverless edge workers, plugin sandboxes, or MCP code-execution tools) should rebuild its WASM module fromv0.16.0.
Timeline
- 2026-10-19 to 2026-10-23: Apache Arrow Rust merges PRs
#11660(ee9f2a38f6) and#11668(a9455d4a26) and releases57.3.2,58.4.1,59.3.2, and60.1.0. - 2026-10-23 to 2026-10-29:
libexpatmerges PRs#1431,#1433,#1439,#1442,#1444, and#1450. - 2026-11-02: Sebastian Pipping releases
libexpat 2.10.0(CVE-2026-113351,CVE-2026-115506,CVE-2026-117610,CVE-2026-118370); Apache announcesCVE-2026-111959for Apache Arrow Rust onoss-security; and NVD publishesCVE-2026-120438,CVE-2026-120439, andCVE-2026-120440forQuickJS-NG 0.16.0.
From research to remediation
Check whether this pattern exists in your codebase
Turn this research into a remediation workflow. Scan dependencies and package manifests for similar supply-chain risk, then prioritize fixes with reachability context.
References
- oss-security (2 November 2026): libexpat 2.10.0 fixes four vulnerabilities (CVE-2026-113351, CVE-2026-115506, CVE-2026-117610, CVE-2026-118370)
- libexpat PRs #1431, #1439, #1444, and #1450 (R_2_10_0 release commits)
- oss-security (2 November 2026): CVE-2026-111959 in Apache Arrow Rust (RunEndEncoded ArrayData out-of-bounds read)
- apache/arrow-rs commits a9455d4a26 (#11668) and ee9f2a38f6 (#11660) fixing RunEndEncoded validation and offset slicing
- quickjs-ng/quickjs Advisories GHSA-jp52-chwg-2p9p (CVE-2026-120438), GHSA-9wv5-5cgr-grj6 (CVE-2026-120439), and GHSA-wm7w-r6qf-3c9w (CVE-2026-120440)