{"schemaVersion":3,"id":"CVE-2020-25864","aliases":["UBUNTU-CVE-2020-25864","DEBIAN-CVE-2020-25864","CGA-2f8f-jfwr-57hr","CGA-7rpp-q6v8-96mp","CGA-8qf8-584v-q664","CGA-cj47-2hh8-x74p","CGA-q834-5chf-2cvw","CGA-vcp2-hqjr-rg9c","GHSA-8xmx-h8rq-h94j","BIT-consul-2020-25864","GO-2023-1851"],"status":"published","duplicateOf":null,"title":null,"description":"HashiCorp Consul and Consul Enterprise up to version 1.9.4 key-value (KV) raw mode was vulnerable to cross-site scripting. Fixed in 1.9.5, 1.8.10 and 1.7.14.","dates":{"published":"2021-04-20T13:07:21.000Z","modified":"2024-08-04T15:49:05.907Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.06068,"percentile":0.93325,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.06068},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.06085,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.06085,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.06085,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.06085,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.06085,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.06085,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.06068,"percentile":0.93325}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06068,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.06068,"percentile":0.93325}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"chainguard","product":"k3d","name":"k3d","label":"k3d","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/k3d","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"chainguard","product":"k3d-proxy","name":"k3d-proxy","label":"k3d-proxy","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/k3d-proxy","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"chainguard","product":"k3d-tools","name":"k3d-tools","label":"k3d-tools","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/k3d-tools","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"wolfi","product":"k3d","name":"k3d","label":"k3d","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/k3d","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"wolfi","product":"k3d-proxy","name":"k3d-proxy","label":"k3d-proxy","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/k3d-proxy","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"wolfi","product":"k3d-tools","name":"k3d-tools","label":"k3d-tools","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/k3d-tools","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"debian","product":"consul","name":"consul","label":"consul","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/consul","purlType":"deb","versions":[{"text":"< 1.8.7+dfsg1-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.7+dfsg1-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"consul","name":"consul","label":"consul","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/consul","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/hashicorp","product":"consul","name":"github.com/hashicorp/consul","label":"consul","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/hashicorp/consul","purlType":"golang","versions":[{"text":"≥ 1.8.0, < 1.8.10","noFixRecorded":false,"fixedIn":null},{"text":"< 1.7.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.9.0, < 1.9.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.8.0, < 1.8.10 | < 1.7.14 | ≥ 1.9.0, < 1.9.5","eol":null,"hubHref":null},{"vendor":"hashicorp","product":"consul","name":"consul","label":"consul","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.7.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.8.0, < 1.8.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.9.0, < 1.9.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.7.14 | ≥ 1.8.0, < 1.8.10 | ≥ 1.9.0, < 1.9.5","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"consul","label":"Hashicorp Consul","category":"server-app"}},"hubHref":"/vendor/hashicorp/consul"}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.hashicorp.com/blog/category/consul","label":"www.hashicorp.com/blog/category/consul","hostname":"www.hashicorp.com","tags":["X Refsource MISC","Advisory","WEB","Product","Vendor Advisory"]},{"url":"https://discuss.hashicorp.com/t/hcsec-2021-07-consul-api-kv-endpoint-vulnerable-to-cross-site-scripting/23368","label":"discuss.hashicorp.com/t/…","hostname":"discuss.hashicorp.com","tags":["X Refsource MISC","Advisory","WEB","Vendor Advisory"]},{"url":"https://security.gentoo.org/glsa/202208-09","label":"security.gentoo.org/glsa/202208-09","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Advisory","WEB","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-25864","label":"ubuntu.com/security/CVE-2020-25864","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1950275","label":"bugzilla.redhat.com/show_bug.cgi?id=1950275","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://github.com/hashicorp/consul/pull/10023","label":"github.com/hashicorp/consul/pull/10023","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-25864","label":"www.cve.org/CVERecord?id=CVE-2020-25864","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-25864","label":"security-tracker.debian.org/tracker/CVE-2020-25864","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25864","label":"nvd.nist.gov/vuln/detail/CVE-2020-25864","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/hashicorp/consul","label":"github.com/hashicorp/consul","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-8xmx-h8rq-h94j","label":"github.com/advisories/GHSA-8xmx-h8rq-h94j","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-6QMV-W6V4-7G8W","CGA-9C44-FR62-J5QF","CGA-H262-Q94J-6MFP","CGA-PGVJ-869H-995W","CGA-V9RC-HR69-8824","CGA-WCWQ-2435-8MPM"]},"timeline":[{"kind":"published","date":"2021-04-20T13:07:21.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T15:49:05.907Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:26:22.111Z","stale":false,"partial":false}}