{"schemaVersion":3,"id":"CVE-2012-6685","aliases":["UBUNTU-CVE-2012-6685","DEBIAN-CVE-2012-6685","DLA-229-1","GHSA-6wj9-77wq-jq7p"],"status":"published","duplicateOf":null,"title":null,"description":"Nokogiri before 1.5.4 is vulnerable to XXE attacks","dates":{"published":"2020-02-19T14:41:27.000Z","modified":"2024-08-06T21:36:01.934Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Rubygems","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.02168,"percentile":0.81959,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.02168},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02168,"percentile":0.81959}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02168,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02168,"percentile":0.81959}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_SPARKLEMOTION_NOKOGIRI","name":"Nokogiri","source":"github","url":"https://github.com/sparklemotion/nokogiri/issues/693","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-776","name":"Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')","description":"The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/776.html"}],"affected":[{"vendor":"debian","product":"libnokogiri-ruby","name":"libnokogiri-ruby","label":"libnokogiri-ruby","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libnokogiri-ruby","purlType":"deb","versions":[{"text":"< 1.4.0-4+deb6u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.0-4+deb6u1","eol":null,"hubHref":null},{"vendor":"debian","product":"ruby-nokogiri","name":"ruby-nokogiri","label":"ruby-nokogiri","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ruby-nokogiri","purlType":"deb","versions":[{"text":"< 1.5.4-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.4-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby-nokogiri","name":"ruby-nokogiri","label":"ruby-nokogiri","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby-nokogiri","purlType":"deb","versions":[{"text":"< 1.6.1+ds-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.6.1+ds-1","eol":null,"hubHref":null},{"vendor":"RubyGems","product":"nokogiri","name":"nokogiri","label":"nokogiri","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/nokogiri","purlType":"gem","versions":[{"text":"< 1.5.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.4","eol":null,"hubHref":null},{"vendor":"nokogiri","product":"nokogiri","name":"nokogiri","label":"nokogiri","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.5.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.4","eol":null,"hubHref":"/vendor/nokogiri/nokogiri"},{"vendor":"redhat","product":"cloudforms_management_engine","name":"cloudforms management engine","label":"cloudforms_management_engine","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.0","eol":null,"hubHref":"/vendor/redhat/cloudforms_management_engine"},{"vendor":"redhat","product":"enterprise_mrg","name":"enterprise mrg","label":"enterprise_mrg","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0","eol":null,"hubHref":"/vendor/redhat/enterprise_mrg"},{"vendor":"redhat","product":"openshift","name":"openshift","label":"openshift","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"red-hat-openshift","label":"Red Hat OpenShift","category":"server-app"}},"hubHref":"/vendor/redhat/openshift"},{"vendor":"redhat","product":"openstack","name":"openstack","label":"openstack","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.0","noFixRecorded":false,"fixedIn":null},{"text":"6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.0 | 6.0","eol":null,"hubHref":"/vendor/redhat/openstack"},{"vendor":"redhat","product":"openstack_foreman","name":"openstack foreman","label":"openstack_foreman","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/redhat/openstack_foreman"},{"vendor":"redhat","product":"satellite","name":"satellite","label":"satellite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.0","eol":null,"hubHref":"/vendor/redhat/satellite"},{"vendor":"redhat","product":"subscription_asset_manager","name":"subscription asset manager","label":"subscription_asset_manager","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/redhat/subscription_asset_manager"}],"affectedCount":12,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/sparklemotion/nokogiri/issues/693","label":"github.com/sparklemotion/nokogiri/issues/693","hostname":"github.com","tags":["X Refsource CONFIRM","Exploit","Issue Tracking","Third Party Advisory","REPORT","WEB"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1178970","label":"bugzilla.redhat.com/show_bug.cgi?id=1178970","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","Issue Tracking","Third Party Advisory","WEB"]},{"url":"https://nokogiri.org/CHANGELOG.html#154-2012-06-12","label":"nokogiri.org/CHANGELOG.html","hostname":"nokogiri.org","tags":["X Refsource CONFIRM","Release Notes","Vendor Advisory","WEB"]},{"url":"https://ubuntu.com/security/CVE-2012-6685","label":"ubuntu.com/security/CVE-2012-6685","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2012-6685","label":"www.cve.org/CVERecord?id=CVE-2012-6685","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-6685","label":"security-tracker.debian.org/tracker/CVE-2012-6685","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-6685","label":"nvd.nist.gov/vuln/detail/CVE-2012-6685","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/sparklemotion/nokogiri","label":"github.com/sparklemotion/nokogiri","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["RHSA-2019:0212"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-02-19T14:41:27.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T21:36:01.934Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T09:38:38.009Z","stale":false,"partial":false}}