Abseil abseil-cpp
Heap Buffer overflow in Abseil
There exists a heap buffer overflow vulnerable in Abseil-cpp. The sized constructors, reserve(), and rehash() methods of absl::{flat,node}hash{set,map} did not impose an upper bound on their size argument. As a result, it was possible for a caller to pass a very large size that would cause an integer overflow when computing the size of the container's backing store, and a subsequent out-of-bounds memory write. Subsequent accesses to the container might also access out-of-bounds memory. We recommend upgrading past commit 5a0e2cb5e3958dd90bb8569a2766622cb74d90c1
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5a0e2cb5e3958dd90bb8569a2766622cb74d90c1
Fixed in 5a0e2cb5e3958dd90bb8569a2766622cb74d90c1
Mitigation
Upgrade abseil-cpp to 5a0e2cb5e3958dd90bb8569a2766622cb74d90c1 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.