CVE-2025-6490
BaseFortify
Publication date: 2025-06-22
Last updated on: 2026-04-29
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-119 | The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. |
| CWE-122 | A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2025-6490 is a heap-based buffer overflow vulnerability in the Nokogiri library (up to version 1.18.7), specifically in the function hashmap_set_with_hash within the gumbo-parser component. The vulnerability occurs due to improper bounds checking or allocation size mismanagement, causing the function to read or write beyond the allocated heap buffer. This can be triggered by specially crafted local input, leading to memory corruption or crashes during HTML parsing. [1, 2, 3]
How can this vulnerability impact me? :
This vulnerability can impact you by causing denial of service (DoS) conditions through crashes or memory corruption when processing malicious input locally. Since exploitation requires local access and the attack complexity is low, an attacker with local privileges could exploit this flaw to disrupt the availability of applications using Nokogiri. There are no known mitigations currently, so affected versions should be replaced or updated once a fix is available. [1, 2, 3]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability is a heap-based buffer overflow in the Nokogiri library's Gumbo parser component, triggered by specially crafted local input. Detection can be approached by monitoring for crashes or abnormal behavior in applications using Nokogiri up to version 1.18.7. Since the issue was identified via fuzz testing with AddressSanitizer, running fuzz tests or memory error detection tools like AddressSanitizer on the Nokogiri library in your environment could help detect the vulnerability. There are no specific network detection commands provided. Suggested commands include running fuzz tests or using AddressSanitizer-enabled builds to detect heap-buffer-overflow issues, for example: `clang -fsanitize=address -g -o test_binary test_source.c` and then executing the test binary with inputs to trigger the vulnerability. [3]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include avoiding use of Nokogiri versions up to 1.18.7 that contain the vulnerable hashmap implementation. Since no patches or countermeasures are currently available, it is recommended to replace the affected Nokogiri version with an updated or alternative library version once released. Additionally, restrict local access to systems running the vulnerable Nokogiri version to reduce exploitation risk, as the attack requires local access. [2]