CVE-2012-6685
Ruby vulnerability analysis and mitigation

Overview

Nokogiri before version 1.5.4 was found to contain an XML eXternal Entity (XXE) vulnerability. The issue was discovered and reported by Felix Groebert of Google, and was assigned CVE-2012-6685. The vulnerability affected the XML parsing functionality in Nokogiri, a popular Ruby gem for parsing HTML, XML, and SAX documents (Debian Tracker, NVD).

Technical details

The vulnerability allowed external XML entities to be specified in specially crafted XML documents. When such documents were parsed, they could trigger connections to specified URLs, potentially leading to unauthorized access of resources. The issue was particularly concerning because it could be exploited through both network-based and local file URLs (GitHub Issue).

Impact

The vulnerability could allow attackers to trigger connections to internal network resources or access local files through specially crafted XML documents. This could potentially lead to information disclosure or unauthorized access to resources on systems processing XML content with affected Nokogiri versions (Red Hat Bugzilla).

Exploitability

The vulnerability could be exploited by providing a specially crafted XML document containing external entity references. A proof of concept demonstrated that when parsing such documents, the parser would make connections to specified URLs, including both HTTP URLs and local file system references (GitHub Issue).

Mitigation and workarounds

The vulnerability was addressed in Nokogiri version 1.5.4 through the introduction of a 'nonet' option to disable external connections. However, it was noted that local file URLs could still be used to exploit the vulnerability. A complete fix was later implemented in version 1.6.4 by updating to libxml2 2.9.0 (Nokogiri Changelog).

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

CVE-2026-61666HIGH8.9
  • Ruby logoRuby
  • websocket-driver
NoYesAug 17, 2026
CVE-2026-73648MEDIUM5.1
  • Ruby logoRuby
  • ruby3.4-rails-7.2
NoYesAug 13, 2026
CVE-2026-73428MEDIUM4.6
  • JavaScript logoJavaScript
  • trix
NoYesAug 13, 2026
CVE-2026-73492LOW2.3
  • Ruby logoRuby
  • loofah
NoYesAug 12, 2026
CVE-2026-73491LOW2.3
  • Ruby logoRuby
  • ruby3.3-rails-8.0
NoYesAug 12, 2026

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