{"schemaVersion":3,"id":"CVE-2024-39312","aliases":["ALPINE-CVE-2024-39312","UBUNTU-CVE-2024-39312","DEBIAN-CVE-2024-39312"],"status":"published","duplicateOf":null,"title":"Botan has an Authorization Error due to Name Constraint Decoding Bug","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. A bug in the parsing of name constraint extensions in X.509 certificates meant that if the extension included both permitted subtrees and excluded subtrees, only the permitted subtree would be checked. If a certificate included a name which was permitted by the permitted subtree but also excluded by excluded subtree, it would be accepted. Fixed in versions 3.5.0 and 2.19.5.","dates":{"published":"2024-07-08T16:30:25.044Z","modified":"2024-08-02T04:19:20.621Z","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:L/A:N","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:L/A:N","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:L/A:N","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:L/A:N","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:L/A:N","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:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00272,"percentile":0.18513,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00272},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00272,"percentile":0.18513}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00272,"percentile":0.18513}]},"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-295","name":"Improper Certificate Validation","description":"The product does not validate, or incorrectly validates, a certificate.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/295.html"}],"affected":[{"vendor":"alpine","product":"botan","name":"botan","label":"botan","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/botan","purlType":"apk","versions":[{"text":"≥ 3.0.0, < 2.19.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 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":"botan_project","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/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.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":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/randombit/botan/security/advisories/GHSA-jp24-56jm-gg86","label":"github.com/randombit/botan/security/advisories/GHSA-jp24-56jm-gg86","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-39312","label":"security.alpinelinux.org/vuln/CVE-2024-39312","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-39312","label":"ubuntu.com/security/CVE-2024-39312","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-39312","label":"www.cve.org/CVERecord?id=CVE-2024-39312","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-39312","label":"security-tracker.debian.org/tracker/CVE-2024-39312","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:30:25.044Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T04:19:20.621Z","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-22T20:08:54.170Z","stale":false,"partial":false}}