{"id":"CVE-2018-20187","aliases":["ALPINE-CVE-2018-20187","DEBIAN-CVE-2018-20187","EUVD-2018-12754","GHSA-g9j4-hp3j-g668","UBUNTU-CVE-2018-20187","openSUSE-SU-2024:10594-1"],"status":"published","title":"A side-channel issue was discovered in Botan before 2.9.0. An attacker capable of precisely...","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.","severity":{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01525,"percentile":0.74845,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-320"],"published":"2019-03-08T19:00:00Z","modified":"2026-11-03T06:31:27Z","fixes":[{"ecosystem":"Alpine:v3.10","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.11","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"botan","fixed_in":["2.9.0-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"botan","fixed_in":["2.9.0-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"botan","fixed_in":["2.9.0-2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.10","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.11","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-2"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"botan1.10","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.5-1","1.10.5-1ubuntu1","1.10.5-1+deb7u1ubuntu0.14.04.1","1.10.5-1+deb7u1ubuntu0.14.04.1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.0-3","2.4.0-4","2.4.0-5ubuntu1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"Botan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.18.1-1.3"}]}],"bundled":7}],"products":[{"vendor":"botan_project","product":"botan"}],"references":[{"url":"https://github.com/crocs-muni/ECTester","tags":["x_refsource_MISC","x_transferred","Not Applicable","Third Party Advisory","package"]},{"url":"https://botan.randombit.net/news.html","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","advisory"]},{"url":"https://botan.randombit.net/security.html","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20187"},{"url":"https://github.com/advisories/GHSA-g9j4-hp3j-g668"},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-20187","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-20187","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-20187","tags":["report"]},{"url":"https://github.com/randombit/botan/pull/1792","tags":["report"]},{"url":"https://github.com/randombit/botan/commit/70aa7303acfff9eefc24598c289a84db3579ebd1","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20187","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2016-9132","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14737","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-2801","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-12435","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-20187","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-9127","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-9860","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-20187","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.","status":"published","published":"2019-03-08T19:00:00Z","modified":"2024-08-05T11:58:18.213Z","updated_at":"2026-11-02T14:35:00.237825Z"}],"euvd":[{"id":"EUVD-2018-12754","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.","status":"published","published":"2019-03-08T19:00:00Z","modified":"2024-08-05T11:58:18Z","updated_at":"2026-11-03T02:39:31.423203Z"}],"ghsa":[{"id":"GHSA-g9j4-hp3j-g668","title":"A side-channel issue was discovered in Botan before 2.9.0. An attacker capable of precisely...","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.","status":"published","published":"2022-05-24T22:01:00Z","modified":"2024-04-04T03:07:09Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T14:56:13.784244Z"}],"nvd":[{"id":"CVE-2018-20187","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.","status":"published","published":"2019-03-08T19:29:00.25Z","modified":"2026-06-17T01:52:25.623Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-320"],"updated_at":"2026-11-02T14:04:54.21788Z"}],"osv":[{"id":"ALPINE-CVE-2018-20187","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.","status":"published","published":"2019-03-08T19:29:00.25Z","modified":"2026-11-03T06:31:27.982332324Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-03T07:18:23.800469Z"},{"id":"CVE-2018-20187","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.","status":"published","published":"2019-03-08T19:29:00.25Z","modified":"2026-10-24T10:30:55.156592235Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:09.145458Z"},{"id":"DEBIAN-CVE-2018-20187","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.","status":"published","published":"2019-03-08T19:29:00.25Z","modified":"2026-10-23T18:04:47.148771346Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:30.57382Z"},{"id":"UBUNTU-CVE-2018-20187","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.","status":"published","published":"2019-03-08T19:29:00Z","modified":"2026-04-22T11:52:10.41214Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:17.91743Z"},{"id":"openSUSE-SU-2024:10594-1","title":"Botan-2.18.1-1.3 on GA media","description":"These are all security issues fixed in the Botan-2.18.1-1.3 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:20:29.939433Z","updated_at":"2026-11-02T16:58:34.487567Z"}]}}
