Vulnerability DatabaseGHSA-gx8x-g87m-h5q6

GHSA-gx8x-g87m-h5q6
Ruby vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-gx8x-g87m-h5q6) affects Nokogiri versions below 1.13.4, specifically in its JRuby implementation. The issue stems from the vendored org.cyberneko.html library, which was discovered to have a Denial of Service vulnerability. This security flaw was assigned a High severity rating with a CVSS score of 7.5 (GitHub Advisory).

Technical details

The vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption). When parsing ill-formed HTML markup, the fork of org.cyberneko.html used by Nokogiri raises a java.lang.OutOfMemoryError exception. The issue specifically affects the JRuby implementation of Nokogiri and was tracked as CVE-2022-24839 (NIST NVD, GitHub Advisory).

Impact

The vulnerability can lead to a Denial of Service condition through uncontrolled resource consumption. When exploited, it can cause the application to run out of memory when processing specially crafted HTML input, potentially affecting the availability of the service (GitHub Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade to Nokogiri version 1.13.4 or later. This version updates the vendored org.cyberneko.html library to version 1.9.22.noko2, which includes the security fix. The fix involves proper handling of ill-formed Processing Instructions (PIs) in the HTML parser (Nokogiri Release).

Community reactions

The vulnerability was reported by 이형관 (windshock) and was addressed promptly by the Nokogiri team. The fix was announced through the Ruby Security Announcements mailing list, indicating the security community's coordinated response to the issue (Ruby Security).

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