CVE-2025-0838CWE-190

Heap Buffer overflow in Abseil

Medium · published February 21, 2025

CVSS v4.0
5.9
EPSS
1%
Percentile
49.4
In the wild
Unconfirmed
What it is

⚠️ A sneaky little heap buffer overflow is lurking in Abseil-cpp! The constructors, reserve(), and rehash() methods are open to integer overflow tricks. 🔍 Think of this like a restaurant that allows customers to order an unlimited number of pizzas without checking if the kitchen can keep up. If someone orders way too many, it could result in a chaotic mess, just like an overflow that leads to out-of-bounds memory writes. If an attacker exploits this flaw, they could potentially cause crashes or unpredictable behavior in applications relying on Abseil-cpp's hash sets and maps. This means data corruption and security risks are on the table, and we don’t want that at our dinner party!

Put simply

Think of this like a restaurant that allows customers to order an unlimited number of pizzas without checking if the kitchen can keep up. If someone orders way too many, it could result in a chaotic mess, just like an overflow that leads to out-of-bounds memory writes. This vulnerability occurs in the sized constructors, reserve(), and rehash() methods of absl::{flat,node}hash{set,map}, where an upper size limit was not enforced. This allows a caller to pass excessively large size arguments, leading to an integer overflow and a heap buffer overflow.

What to do

If an attacker exploits this flaw, they could potentially cause crashes or unpredictable behavior in applications relying on Abseil-cpp's hash sets and maps. This means data corruption and security risks are on the table, and we don’t want that at our dinner party! To remediate this issue, upgrade to a version beyond commit 5a0e2cb5e3958dd90bb8569a2766622cb74d90c1. Always ensure to audit any existing code that might use these methods to avoid potential exploitation. Stay vigilant! You've got this! Follow these steps and you'll be the hero of your codebase! 🦸‍♂️

The record
Technical detail
CVSS v4.0
5.9 · MEDIUM
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
EPSS
0.00627 · 49.4th percentile
Weakness
CWE-190 · Integer Overflow or Wraparound
Published
2025-02-21T14:20Z
EPSS history
Timeline
  • 21 FEB 14:20Z
    Heap Buffer overflow in Abseil
    cvelistv5