CVE-2012-6685 Nokogiri is vulnerable to XML External Entity (XXE) attack
An attacker can exploit XML External Entity vulnerabilities in Nokogiri to read sensitive files or cause denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-6685?
CVE-2012-6685 is a high-severity vulnerability in Redhat Enterprise Mrg, published on 19 Feb 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Nokogiri before 1.5.4 is vulnerable to XXE attacks
Weakness: CWE-776
Which versions are affected by CVE-2012-6685?
2 open source packages ship an affected version, including nokogiri. It affects 8 products.
| Package | Affected | Fixed in |
|---|---|---|
nokogiri RubyGems | All versions | 1.5.4 |
nokogiri RubyGems | All versions | 1.5.4 |
Products include Nokogiri Nokogiri, Redhat Cloudforms Management Engine, Redhat Enterprise Mrg, Redhat Openshift, Redhat Openstack, Redhat Openstack Foreman and 2 more.
How do I fix CVE-2012-6685?
Upgrade nokogiri to 1.5.4 or later.
Is CVE-2012-6685 being exploited?
There is no known exploitation of CVE-2012-6685 in the wild and no public exploit code.
Other vulnerabilities in Redhat Enterprise Mrg
- CVE-2026-79770 Nokogiri before 1.19.3 ReDoS via CSS selector tokenizer
- CVE-2022-23476 Unchecked return value from xmlTextReaderExpand in Nokogiri
- CVE-2021-41098 Improper Restriction of XML External Entity Reference (XXE) in Nokogiri on JRuby
- CVE-2026-79771 Nokogiri before 1.19.3 Memory Leak via XSLT Transform
- CVE-2026-79772 Nokogiri before 1.19.1 Unchecked Return Value canonicalize
Sources
Also known as DEBIAN-CVE-2012-6685, DLA-229-1, GHSA-6wj9-77wq-jq7p.