{"schemaVersion":3,"id":"CVE-2018-20187","aliases":["ALPINE-CVE-2018-20187","UBUNTU-CVE-2018-20187","DEBIAN-CVE-2018-20187"],"status":"published","duplicateOf":null,"title":null,"description":"A side-channel issue was discovered in Botan before 2.9.0. An attacker capable of precisely measuring the time taken for ECC key generation may be able to derive information about the high bits of the secret key, as the function to derive the public point from the secret scalar uses an unblinded Montgomery ladder whose loop iteration count depends on the bitlength of the secret. This issue affects only key generation, not ECDSA signatures or ECDH key agreement.","dates":{"published":"2019-03-08T19:00:00.000Z","modified":"2024-08-05T11:58:18.213Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.9,"severity":"medium","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/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":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true}]},"epss":{"probability":0.01525,"percentile":0.74443,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.0749999999999999,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.0145},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0145,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01525,"percentile":0.74443}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.0145,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01525,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01525,"percentile":0.74443}]},"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-320","name":"Key Management Errors","description":"Weaknesses in this category are related to errors in the management of cryptographic keys.","type":"category","status":"Obsolete","abstraction":null,"likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/320.html"}],"affected":[{"vendor":"alpine","product":"botan","name":"botan","label":"botan","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/botan","purlType":"apk","versions":[{"text":"< 2.9.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r0","eol":null,"hubHref":null},{"vendor":"botan_project","product":"botan","name":"botan","label":"botan","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0","eol":null,"hubHref":"/vendor/botan_project/botan"},{"vendor":"debian","product":"botan","name":"botan","label":"botan","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/botan","purlType":"deb","versions":[{"text":"< 2.9.0-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"botan","name":"botan","label":"botan","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/botan","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"botan1.10","name":"botan1.10","label":"botan1.10","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/botan1.10","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/crocs-muni/ECTester","label":"github.com/crocs-muni/ECTester","hostname":"github.com","tags":["X Refsource MISC","Not Applicable","Third Party Advisory"]},{"url":"https://botan.randombit.net/news.html","label":"botan.randombit.net/news.html","hostname":"botan.randombit.net","tags":["X Refsource MISC","Release Notes","Vendor Advisory"]},{"url":"https://botan.randombit.net/security.html","label":"botan.randombit.net/security.html","hostname":"botan.randombit.net","tags":["X Refsource MISC","Vendor Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-20187","label":"security.alpinelinux.org/vuln/CVE-2018-20187","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-20187","label":"ubuntu.com/security/CVE-2018-20187","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/randombit/botan/pull/1792","label":"github.com/randombit/botan/pull/1792","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/randombit/botan/commit/70aa7303acfff9eefc24598c289a84db3579ebd1","label":"github.com/randombit/botan/commit/70aa7303acfff9eefc24598c289a84db3579ebd1","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20187","label":"www.cve.org/CVERecord?id=CVE-2018-20187","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-20187","label":"security-tracker.debian.org/tracker/CVE-2018-20187","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:10594-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:10594-1"]},"timeline":[{"kind":"published","date":"2019-03-08T19:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T11:58:18.213Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":24,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T08:42:46.352Z","stale":false,"partial":false}}