Vulnerability · Published Feb 21, 2025 · Assigned by Google

CVE-2025-0838Heap Buffer overflow in Abseil

Medium 5.9

In plain English

A medium-severity integer overflow in abseil-cpp from abseil. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.9Medium
Exploit odds (30 days)0.6%top 49.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12abseil20220623.1-1+deb12u1DEBIAN-CVE-2025-0838
Debian:13abseil20240722.0-3DEBIAN-CVE-2025-0838
Debian:14abseil20240722.0-3DEBIAN-CVE-2025-0838
Ubuntu:22.04:LTSabseil0~20210324.2-2ubuntu0.2USN-7505-1
Ubuntu:22.04:LTSabseil0~20210324.2-2ubuntu0.2UBUNTU-CVE-2025-0838
Ubuntu:24.04:LTSabseil20220623.1-3.1ubuntu3.2UBUNTU-CVE-2025-0838
Ubuntu:24.04:LTSabseil20220623.1-3.1ubuntu3.2USN-7505-1
Ubuntu:25.10abseil20240722.0-3ubuntu1UBUNTU-CVE-2025-0838

Affected products (as reported)

VendorProductVersions
abseil abseil-cpp 0 – before 5a0e2cb5e3958dd90bb8569a2766622cb74d90c1

Weakness: CWE-190 · Vector: CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:A/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L

References