{"schemaVersion":3,"id":"CVE-2024-34702","aliases":["ALPINE-CVE-2024-34702","UBUNTU-CVE-2024-34702","DEBIAN-CVE-2024-34702"],"status":"published","duplicateOf":null,"title":"Botan has a Denial of Service Due to Excessive Name Constraints","description":"Botan is a C++ cryptography library. X.509 certificates can identify elliptic curves using either an object identifier or using explicit encoding of the parameters.  Prior to 3.5.0 and 2.19.5, checking name constraints in X.509 certificates is quadratic in the number of names and name constraints. An attacker who presented a certificate chain which contained a very large number of names in the SubjectAlternativeName, signed by a CA certificate which contained a large number of name constraints, could cause a denial of service. The problem has been addressed in Botan 3.5.0 and a partial backport has also been applied and is included in Botan 2.19.5.","dates":{"published":"2024-07-08T16:22:37.770Z","modified":"2024-08-02T02:59:22.209Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00845,"percentile":0.57609,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00845},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00845,"percentile":0.57609}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00845,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00845,"percentile":0.57609}]},"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-405","name":"Asymmetric Resource Consumption (Amplification)","description":"The product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is \"asymmetric.\"","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/405.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.19.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.19.5-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"botan3","name":"botan3","label":"botan3","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/botan3","purlType":"apk","versions":[{"text":"< 3.5.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.5.0-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"botan","name":"botan","label":"botan","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/botan","purlType":"deb","versions":[{"text":"< 2.19.3+dfsg-1+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.19.5+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.19.3+dfsg-1+deb12u1 | < 2.19.5+dfsg-1","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},{"text":"< 2.19.1+dfsg-2ubuntu1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.19.3+dfsg-1ubuntu2+esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2.19.1+dfsg-2ubuntu1+esm1 | < 2.19.3+dfsg-1ubuntu2+esm1","eol":null,"hubHref":null},{"vendor":"randombit","product":"botan","name":"botan","label":"botan","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.19.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.19.5 | ≥ 3.0.0, < 3.5.0","eol":null,"hubHref":"/vendor/randombit/botan"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/randombit/botan/security/advisories/GHSA-5gg9-hqpr-r58j","label":"github.com/randombit/botan/security/advisories/GHSA-5gg9-hqpr-r58j","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT"]},{"url":"https://github.com/randombit/botan/pull/4034","label":"github.com/randombit/botan/pull/4034","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/pull/4045","label":"github.com/randombit/botan/pull/4045","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/pull/4047","label":"github.com/randombit/botan/pull/4047","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/pull/4052","label":"github.com/randombit/botan/pull/4052","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/pull/4186","label":"github.com/randombit/botan/pull/4186","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/pull/4187","label":"github.com/randombit/botan/pull/4187","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/commit/21dccc8fef18c165ba3301d850ac61521f85637e","label":"github.com/randombit/botan/commit/21dccc8fef18c165ba3301d850ac61521f85637e","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/commit/39535f13c322f56aa3da2f44b2b6abb8619a82ac","label":"github.com/randombit/botan/commit/39535f13c322f56aa3da2f44b2b6abb8619a82ac","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/commit/477822a2d10f02d8ba46c9d8a5132f25843f5cc1","label":"github.com/randombit/botan/commit/477822a2d10f02d8ba46c9d8a5132f25843f5cc1","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/commit/7606d70d3a2ac7114476ec2651ca0243c4536fdf","label":"github.com/randombit/botan/commit/7606d70d3a2ac7114476ec2651ca0243c4536fdf","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/commit/c3264821b9f6286ee4e6e3e06826f6b7177e6d41","label":"github.com/randombit/botan/commit/c3264821b9f6286ee4e6e3e06826f6b7177e6d41","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/randombit/botan/commit/ff704b12e6fa351aaedd07bffdc91722e84586b8","label":"github.com/randombit/botan/commit/ff704b12e6fa351aaedd07bffdc91722e84586b8","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-34702","label":"security.alpinelinux.org/vuln/CVE-2024-34702","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-34702","label":"ubuntu.com/security/CVE-2024-34702","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-34702","label":"www.cve.org/CVERecord?id=CVE-2024-34702","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7586-1","label":"ubuntu.com/security/notices/USN-7586-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-34702","label":"security-tracker.debian.org/tracker/CVE-2024-34702","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:0201-1","OPENSUSE-SU-2024:14188-1","USN-7586-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:0201-1","OPENSUSE-SU-2024:14188-1","USN-7586-1"]},"timeline":[{"kind":"published","date":"2024-07-08T16:22:37.770Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T02:59:22.209Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":21,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T18:42:09.973Z","stale":false,"partial":false}}