Immutable-js
Immutable.js `List` 32-bit trie overflow → unrecoverable DoS
Immutable.js provides many Persistent Immutable data structures. Prior to 4.3.9 and 5.1.8, List#set, List#setSize, List#setIn, List#updateIn, and the functional set, setIn, and updateIn mishandle an index or size in the range 2 ** 30 to 2 ** 31 in setListBounds in src/List.js, causing an empty List to enter an uncatchable infinite loop, a populated List to allocate without bound until process abort, or setSize to silently wrap large values. This issue is fixed in versions 4.3.9 and 5.1.8.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.7high · scored by CNA · CWE-190
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
immutable-js immutable-js
- >= 5.0.0-beta.1, < 5.1.8
- < 4.3.9
Fixed in 5.1.8, 4.3.9
Mitigation
Upgrade immutable-js to 5.1.8 or 4.3.9 or later.
References
- Vendor advisory github.com/immutable-js/immutable-js/security/…
- Patch github.com/immutable-js/immutable-js/commit/a1…
- Patch github.com/immutable-js/immutable-js/commit/f0…
2 more
- Release notes github.com/immutable-js/immutable-js/releases/…
- Release notes github.com/immutable-js/immutable-js/releases/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.