# CVE-2025-0838: Heap Buffer overflow in Abseil

- Severity: Medium 5.9 (CVSS:4.0, scored by Google) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Published: 2025-02-21T14:20:52.767Z
- Modified: 2026-06-17T08:27:14.047Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Google

## 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

(As written by CVE List.)

## Affected

- abseil-cpp: before 5a0e2cb5e3958dd90bb8569a2766622cb74d90c1
- abseil common_libraries: before 20250127.0
- debian debian_linux: 11.0

## Every score

- Google: CVSS:4.0 5.9 Medium `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/abseil/abseil-cpp/commit/5a0e2cb5e3958dd90bb8569a2766622cb74d90c1> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/04/msg00012.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-0838](https://www.cve.org/CVERecord?id=CVE-2025-0838), CVE Terms of Use, modified 2025-04-05
- NVD: [CVE-2025-0838](https://nvd.nist.gov/vuln/detail/CVE-2025-0838), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-0838 · Whole record: https://cve.day/CVE-2025-0838.json · Rebuilt by cve.day 2026-11-25T22:58:54.213Z
