Vulnerabilities / CVE-2025-0838

critical

CVE-2025-0838

abseil-cpp: Heap Buffer overflow in Abseil

Published Modified CWE 190
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat5.6CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:L

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Amazon (medium), Azure Linux (medium), CBL-Mariner (medium), Ubuntu (medium).

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 and fixed versions

SourcePackageFixed in
Photon OS 5.0abseil-cpp, abseil-cpp-devel20230125.3-3.ph5
amazon linux 2023abseil-cpp, abseil-cpp-debuginfo, abseil-cpp-debugsource and 1 more20220623.1-4.amzn2023.0.2
Azure Linux 3.0abseil-cpp, mysql0:20240116.0-3.azl3 and 1 more
CBL-Mariner 2.0abseil-cpp, mysql0:20220623.0-2.cm2 and 1 more
debian 11abseil0~20200923.3-2+deb11u1
debian 12abseil20220623.1-1+deb12u1
debian 13abseil20240722.0-3
debian 14abseil20240722.0-3
echoabseil20220623.1-1+deb12u1
rapidfort amazon linux 2023abseil-cpp, abseil-cpp-devel20220623.1-4.amzn2023.0.2
rapidfort debian 12abseil0:20240722.0-3
rapidfort debian 13abseil0:20240722.0-3
Show all 32 entries from 22 sources
SourcePackageFixed in
Photon OS 5.0abseil-cpp20230125.3-3.ph5
Photon OS 5.0abseil-cpp-devel20230125.3-3.ph5
amazon linux 2023abseil-cpp20220623.1-4.amzn2023.0.2
amazon linux 2023abseil-cpp-debuginfo20220623.1-4.amzn2023.0.2
amazon linux 2023abseil-cpp-debugsource20220623.1-4.amzn2023.0.2
amazon linux 2023abseil-cpp-devel20220623.1-4.amzn2023.0.2
Azure Linux 3.0abseil-cpp0:20240116.0-3.azl3
Azure Linux 3.0mysql0:8.0.45-2.azl3
CBL-Mariner 2.0abseil-cpp0:20220623.0-2.cm2
CBL-Mariner 2.0mysql0:8.0.45-3.cm2
debian 11abseil0~20200923.3-2+deb11u1
debian 12abseil20220623.1-1+deb12u1
debian 13abseil20240722.0-3
debian 14abseil20240722.0-3
echoabseil20220623.1-1+deb12u1
rapidfort amazon linux 2023abseil-cpp20220623.1-4.amzn2023.0.2
rapidfort amazon linux 2023abseil-cpp-devel20220623.1-4.amzn2023.0.2
rapidfort debian 12abseil0:20240722.0-3
rapidfort debian 13abseil0:20240722.0-3
rapidfort ubuntu 20.04abseil0:0~20210324.2-2ubuntu0.2, 0:20220623.1-3.1ubuntu3.2
rapidfort ubuntu 20.04rf-abseil0:0~20210324.2-2ubuntu0.2, 0:20220623.1-3.1ubuntu3.2
rapidfort ubuntu 22.04abseil0:0~20210324.2-2ubuntu0.2, 0:20220623.1-3.1ubuntu3.2
rapidfort ubuntu 22.04rf-abseil0:0~20210324.2-2ubuntu0.2, 0:20220623.1-3.1ubuntu3.2
rapidfort ubuntu 24.04abseil0:0~20210324.2-2ubuntu0.2, 0:20220623.1-3.1ubuntu3.2
rapidfort ubuntu 24.04rf-abseil0:0~20210324.2-2ubuntu0.2, 0:20220623.1-3.1ubuntu3.2
ubuntu 22.04abseil0~20210324.2-2ubuntu0.2
ubuntu 24.04abseil20220623.1-3.1ubuntu3.2
ubuntu 24.10abseil20230802.1-4ubuntu1.2
ubuntu 25.04abseil20230802.1-4.2ubuntu0.2
ubuntu 25.10abseil20240722.0-3ubuntu1
ubuntu 26.04abseil20240722.0-3ubuntu1
ubuntu 26.10abseil20240722.0-3ubuntu1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.