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.
Published: 2026-08-25
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Nokogiri versions earlier than 1.13.5 contain an integer overflow in libxml2 buffer handling, allowing attackers to craft oversized XML documents that trigger out-of-bounds writes on the heap. The overflow can lead to information disclosure, arbitrary data modification, or a denial of service by corrupting memory. This directly compromises the confidentiality, integrity, and availability of systems parsing untrusted XML.

Affected Systems

The affected product is Nokogiri, distributed by sparklemotion under the name Nokogiri. All releases before version 1.13.5 are vulnerable; versions 1.13.5 and later include the library patch and are not affected.

Risk and Exploitability

The CVSS score of 8.8 indicates a high severity. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers can exploit it by sending specially crafted multi‑gigabyte XML files to an application that parses them. Based on the description, the likely attack vector is remote via network or local input to the XML parser. The exploit would require sufficient privileges to run the vulnerable application and memory to craft the large XML inputs.

Generated by OpenCVE AI on August 25, 2026 at 16:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Nokogiri to version 1.13.5 or newer, which includes the libxml2 patch that removes the integer overflow.
  • Configure XML processing within the application to enforce a maximum size limit or reject files that exceed a safe threshold, thereby preventing the creation of oversized XML payloads.
  • Apply input validation rules that ensure any XML data is bounded in size and correctly handled by the parser, mitigating potential out‑of‑bounds write risks.

Generated by OpenCVE AI on August 25, 2026 at 16:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title Nokogiri before 1.13.5 Integer Overflow via libxml2
First Time appeared Nokogiri
Nokogiri nokogiri
Weaknesses CWE-119
CPEs cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*
Vendors & Products Nokogiri
Nokogiri nokogiri
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H'}

cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Nokogiri Nokogiri
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-25T16:17:16.932Z

Reserved: 2026-08-25T14:31:37.342Z

Link: CVE-2022-50999

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-25T16:16:44.240

Modified: 2026-08-25T16:16:44.240

Link: CVE-2022-50999

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T16:30:06Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer