Heap-Based Buffer Overflow in Sparklemotion Nokogiri for Enhanced Security
CVE-2025-6490

4.8MEDIUM

Key Information:

Status
Vendor
CVE Published:
22 June 2025

Badges

👾 Exploit Exists🟡 Public PoC

What is CVE-2025-6490?

A vulnerability in the Sparklemotion Nokogiri library, specifically in the function hashmap_set_with_hash found in the file gumbo-parser/src/hashmap.c, can lead to a heap-based buffer overflow. This vulnerability allows an attacker to manipulate memory allocation, resulting in potential exploitation. Local access is required for an attack, which poses risks if attackers gain access to the affected systems. The issue has been publicly disclosed, heightening the importance of immediate awareness and mitigation for users of the affected versions.

Affected Version(s)

nokogiri 1.18.0

nokogiri 1.18.1

nokogiri 1.18.2

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
4.8
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
Low
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

JJLeo (VulDB User)
.
CVE-2025-6490 : Heap-Based Buffer Overflow in Sparklemotion Nokogiri for Enhanced Security