Skip to content
Fencer Intel
high 7.5

CVE-2012-6685 json

Nokogiri is vulnerable to XML External Entity (XXE) attack

published 2020-02-19 6 y ago modified 2026-06-16 4 mo ago also GHSA-6wj9-77wq-jq7p , EUVD-2022-1656

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.2%
EPSS 2.2% chance of exploitation in 30 days, percentile 82%
public exploits
0
none known

Summary

Nokogiri before 1.5.4 is vulnerable to XXE attacks

Patch / fix

  • rubygems nokogiri 1.5.4
  • nokogiri nokogiri 1.5.4
  • ruby-nokogiri Debian 14, Debian 13, Debian 12 1.5.4-1

debian advisories DEBIAN-CVE-2012-6685

  • wmi cloudforms managementengine 5.10 1.3.14-7.el7cf
  • cfme cloudforms managementengine 5.10 5.10.0.33-1.el7cf
  • ruby cloudforms managementengine 5.10 2.4.5-90.el7cf
  • smem cloudforms managementengine 5.10 1.4-1.el7cf
  • nginx cloudforms managementengine 5.10 1:1.10.2-1.el7at
  • erlang cloudforms managementengine 5.10 19.3.6.7-1.el7at
  • prince cloudforms managementengine 5.10 9.0r2-10.el7cf
  • wxGTK3 cloudforms managementengine 5.10 3.0.3-5.el7at

red hat advisories RHSA-2019:0212

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2012-6685 updated cvss 5.0

rubygem-nokogiri: XML eXternal Entity (XXE) flaw

  • Red Hat OpenStack Foreman ruby193-rubygem-nokogiri
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux OpenStack Platform 6 (Juno) Installer ruby193-rubygem-nokogiri
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise MRG 2 ruby-nokogiri, rubygem-nokogiri Red Hat OpenShift Enterprise 2 rubygem-nokogiri, ruby193-rubygem-nokogiri Red Hat OpenStack Platform 4 ruby193-rubygem-nokogiri Red Hat Satellite 6 ruby193-rubygem-nokogiri Red Hat Subscription Asset Manager rubygem-nokogiri, ruby193-rubygem-nokogiri
    affected: no fix planned “Will not fix”
  • Red Hat CloudForms Management Engine 5.10 smem 1.4-1.el7cf, wmi 1.3.14-7.el7cf, ruby 2.4.5-90.el7cf, nginx 1.10.2-1.el7at, wxGTK3 3.0.3-5.el7at, prince 9.0r2-10.el7cf, +179 more
    fixed: vendor fix RHSA-2019:0212

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.17% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/sparklemotion/nokogiri/issues/693 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
rubygems nokogiri
<1.5.4
1.5.4

Classification

Weakness
  • CWE-776 Improper Restriction of Recursive Entity References in DTDs

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.