CVE-2012-6685: High severity nokogiri vulnerability

Published Jan 5, 2015
·
Updated

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

10 affected componentsFixes available
redhat/nokogiri<1.6.4
1.6.4
Nokogiri Nokogiri<1.5.4
redhat CloudForms Management Engine=5.0
redhat Openshift=2.0
redhat Openstack=4.0
redhat Openstack=6.0
redhat Openstack Foreman
redhat Satellite=6.0
redhat Subscription Asset Manager
redhat Enterprise MRG=2.0

Event History

Jan 5, 2015
Data Sourced
via Red Hat·07:38 PM
DescriptionSeverityAffected Software
Feb 19, 2020
CVE Published
via MITRE·02:41 PM
Data Sourced
via MITRE·02:41 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

How do I fix CVE-2012-6685?

To fix CVE-2012-6685, you should upgrade Nokogiri to version 1.6.4 or later.

3

Which versions of Nokogiri are affected by CVE-2012-6685?

CVE-2012-6685 affects Nokogiri versions up to and including 1.5.4.

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203