Vulnerability DatabaseGHSA-pxvg-2qj5-37jq

GHSA-pxvg-2qj5-37jq
Ruby vulnerability analysis and mitigation

Overview

Nokogiri v1.14.3 addresses multiple vulnerabilities in its packaged libxml2 dependency by upgrading to version 2.10.4. The vulnerabilities include CVE-2023-29469, which involves non-deterministic hashing of empty dict strings, and CVE-2023-28484, which relates to a NULL pointer dereference in XML schema parsing. These issues affect the CRuby implementation of Nokogiri versions below 1.14.3 when using packaged libraries (GitHub Advisory).

Technical details

The vulnerability in libxml2 before version 2.10.4 manifests in two ways: First, when hashing empty dict strings in crafted XML documents, the xmlDictComputeFastKey function in dict.c can produce non-deterministic values due to attempting to use the first byte of an empty string. Second, parsing of invalid XSD schemas can lead to a NULL pointer dereference in the xmlSchemaFixupComplexType function in xmlschemas.c, resulting in a segmentation fault (MITRE CVE, Libxml2 Commit).

Impact

The vulnerabilities can lead to various logic and memory errors, including double frees and application crashes through segmentation faults when processing untrusted inputs. The issues primarily affect applications parsing untrusted XML documents or schemas (GitHub Advisory).

Mitigation and workarounds

Users are advised to upgrade to Nokogiri version 1.14.3 or later. For those unable to upgrade, an alternative mitigation involves compiling and linking Nokogiri against external libraries libxml2 version 2.10.4 or higher. Users who have overridden defaults to use system libraries should monitor their distribution's libxml2 release announcements (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 2025
GHSA-52c5-vh7f-26fxHIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 06, 2025
CVE-2025-12790HIGH7.4
  • RubyRuby
  • mqtt
NoYesNov 06, 2025

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