CVE-2012-6685: High severity nokogiri vulnerability
An XML eXternal Entity (XXE) flaw was found in Nokogiri, a Ruby gem for parsing HTML, XML, and SAX. Using external XML entities, a remote attacker could specify a URL in a specially crafted XML that, when parsed, would cause a connection to that URL to be opened.
A patch shipped with the 1.5.4 release of Nokogiri provided a "nonet" option to disable external connections. However, local file URLs could still be used to exploit this flaw. The 1.6.4 release of Nokogiri fixed this issue by using libxml2 2.9.0.
Additional information is detailed at:
https://github.com/sparklemotion/nokogiri/issues/693#issuecomment-68334768
CVE request and assignment:
http://seclists.org/oss-sec/2015/q1/57
Other sources
Nokogiri before 1.5.4 is vulnerable to XXE attacks
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2012-6685?
CVE-2012-6685 is classified as a medium severity vulnerability that affects Nokogiri due to an XML eXternal Entity (XXE) flaw.
How do I fix CVE-2012-6685?
To fix CVE-2012-6685, you should upgrade Nokogiri to version 1.6.4 or later.
Which versions of Nokogiri are affected by CVE-2012-6685?
CVE-2012-6685 affects Nokogiri versions up to and including 1.5.4.
What types of software are impacted by CVE-2012-6685?
CVE-2012-6685 impacts several software products including Red Hat CloudForms Management Engine 5.0 and Red Hat OpenShift 2.0.
Can CVE-2012-6685 allow remote code execution?
CVE-2012-6685 does not directly lead to remote code execution, but it can allow a remote attacker to open a connection to a URL in a specially crafted XML document.