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).

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-2025-68271CRITICAL10
  • RubyRuby
  • openc3
NoYesJan 13, 2026
GHSA-5qw5-wf2q-f538HIGH8.8
  • RubyRuby
  • activerecord-jdbc-adapter
NoYesJan 16, 2026
CVE-2026-22589HIGH7.5
  • RubyRuby
  • spree_core
NoYesJan 10, 2026
CVE-2026-23885MEDIUM6.6
  • RubyRuby
  • alchemy_cms
NoYesJan 19, 2026
GHSA-mpwp-4h2m-765cMEDIUM6.6
  • RubyRuby
  • activejob
NoYesJan 16, 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