Vulnerability DatabaseGHSA-5mwf-688x-mr7x

GHSA-5mwf-688x-mr7x
Ruby vulnerability analysis and mitigation

Overview

Nokogiri version 1.18.3 addresses security vulnerabilities by upgrading its dependency libxml2 to version 2.13.6. This update resolves two significant security issues: CVE-2025-24928 and CVE-2024-56171. The vulnerability affects Nokogiri versions below 1.18.3 and was published on February 18, 2025 (Nokogiri Advisory).

Technical details

The vulnerability consists of two distinct issues in libxml2: First, a stack-buffer overflow vulnerability (CVE-2025-24928) that occurs during DTD validation error reporting when processing input containing long QName prefixes (approximately 3KB in length). Second, a use-after-free vulnerability (CVE-2024-56171) that manifests during XML Schema validation processes, particularly when handling xsd:keyref elements in combination with recursively defined types that have additional identity constraints (Ruby Advisory).

Impact

The impact varies between the two vulnerabilities. For CVE-2025-24928, attackers could potentially trigger a stack-buffer overflow by crafting XML documents with extremely long QName prefixes during DTD validation. For CVE-2024-56171, the vulnerability could lead to use-after-free conditions when validating either untrusted XML Schemas or when validating untrusted documents against trusted Schemas (Nokogiri Advisory).

Mitigation and workarounds

Users should upgrade to Nokogiri version 1.18.3 or later, which includes the patched libxml2 version 2.13.6. This version addresses both CVE-2025-24928 and CVE-2024-56171 vulnerabilities (Ruby Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management