CVE-2022-50999
Received Received - Intake

Integer Overflow in Nokogiri via libxml2 Buffer Handling

Vulnerability report for CVE-2022-50999, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-25

Last updated on: 2026-08-25

Assigner: VulnCheck

Description

Nokogiri versions before 1.13.5 contain an integer overflow vulnerability in packaged libxml2 buffer handling functions that allows attackers to cause out-of-bounds memory writes. Attackers can exploit this by crafting multi-gigabyte XML files to trigger buffer overflows resulting in information disclosure, data modification, or denial of service.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-25
Last Modified
2026-08-25
Generated
2026-08-25
AI Q&A
2026-08-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
sparklemotion nokogiri to 1.13.5 (exc)
gnome libxml2 to 2.9.14 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an integer overflow in Nokogiri versions before 1.13.5, specifically in bundled libxml2 buffer handling functions. Attackers can exploit it by creating multi-gigabyte XML files to trigger buffer overflows, leading to information disclosure, data modification, or denial of service.

Detection Guidance

To detect this vulnerability, check the installed Nokogiri version with 'gem list nokogiri'. If using CRuby with packaged libraries, verify if it is below 1.13.5. For libxml2, check version with 'xml2-config --version' and ensure it is 2.9.14 or higher.

Impact Analysis

If exploited, this vulnerability could allow attackers to read sensitive data, modify existing data, or crash systems by causing denial of service. It primarily affects systems processing large XML files using Nokogiri with bundled libxml2.

Compliance Impact

This vulnerability could lead to information disclosure, data modification, or denial of service, which may violate compliance requirements under GDPR (data protection) and HIPAA (patient data security). Unauthorized data access or modification could result in regulatory penalties or breaches of confidentiality obligations.

Mitigation Strategies

Upgrade Nokogiri to version 1.13.5 or later. If using CRuby with packaged libraries, recompile against external libxml2 version 2.9.14 or higher. Avoid processing untrusted large XML files until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2022-50999. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart