{"id":"CVE-2026-34580","aliases":["ALPINE-CVE-2026-34580","UBUNTU-CVE-2026-34580"],"summary":"Botan has a certificate authentication bypass due to trust anchor confusion","published_at":"2026-04-07T21:12:09.604Z","modified_at":"2026-10-17T12:58:11.962204Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"critical","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"SUSE","rating":"critical"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.004610000178217888,"percentile":0.40707001090049744,"date":"2026-11-19T00:00:00Z"},"priority":11.3,"details":"Botan is a C++ cryptography library. In 3.11.0, the function Certificate_Store::certificate_known had a misleading name; it would return true if any certificate in the store had a DN (and subject key identifier, if set) matching that of the argument. It did not check that the cert it found and the cert it was passed were actually the same certificate. In 3.11.0 an extension of path validation logic was made which assumed that certificate_known only returned true if the certificates were in fact identical. The impact is that if an end entity certificate is presented, and its DN (and subject key identifier, if set) match that of any trusted root, the end entity certificate is accepted immediately as if it itself were a trusted root. , This vulnerability is fixed in 3.11.1.","affected_stack":[{"ecosystem":"Red Hat:enterprise_linux:10","package":"rust-sequoia-sq","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-34580","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:10","package":"rust-sequoia-sqv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-34580","relation":"self"}],"affected_other":[{"ecosystem":"Alpine:v3.24","package":"botan3","purl":"pkg:apk/alpine/botan3?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.11.1-r0"}]}],"fixed":["3.11.1-r0"],"provider":"osv","source":"ALPINE-CVE-2026-34580","relation":"self"},{"ecosystem":"CVE","package":"randombit/botan","versions":[">= 3.11.0, < 3.11.1"],"provider":"cvelistv5","source":"CVE-2026-34580","relation":"self"},{"ecosystem":"NVD","package":"botan_project:botan","versions":["3.11.0"],"provider":"nvd","source":"CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:18.04:LTS","package":"botan","purl":"pkg:deb/ubuntu/botan?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.0-3","2.4.0-4","2.4.0-5ubuntu1"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"botan","purl":"pkg:deb/ubuntu/botan?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.9.0-2","2.9.0-2build1","2.12.1-2","2.12.1-2build1"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"botan","purl":"pkg:deb/ubuntu/botan?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.19.5+dfsg-4"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"botan3","purl":"pkg:deb/ubuntu/botan3?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.1+dfsg-2"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"botan3","purl":"pkg:deb/ubuntu/botan3?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.1+dfsg-2","3.10.0+dfsg-2"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"botan3","purl":"pkg:deb/ubuntu/botan3?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.10.0+dfsg-2","3.11.1+dfsg-2","3.12.0+dfsg-2"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"botan","purl":"pkg:deb/ubuntu/botan?arch=source&distro=esm-apps%2Fjammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.17.3+dfsg-3","2.19.1+dfsg-2ubuntu1","2.19.1+dfsg-2ubuntu1+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"botan","purl":"pkg:deb/ubuntu/botan?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.19.3+dfsg-1ubuntu1","2.19.3+dfsg-1ubuntu2","2.19.3+dfsg-1ubuntu2+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5","cpe":"cpe:/o:suse:sles:12:sp5","status":"not_affected","packages":["Botan","libbotan-devel"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-34580"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5-LTSS","cpe":"cpe:/o:suse:sles-ltss:12:sp5","status":"not_affected","packages":["Botan","libbotan-devel"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-34580"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security","cpe":"cpe:/o:suse:sles-ltss-extended-security:12:sp5","status":"not_affected","packages":["Botan"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-34580"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"affected","packages":["rust-sequoia-sq","rust-sequoia-sqv"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-34580"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-34580","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-34580","license":"CC-BY-4.0","published_at":"2026-04-07T21:12:09.604Z","modified_at":"2026-07-15T01:04:19.187Z","summary":"Botan has a certificate authentication bypass due to trust anchor confusion","details":"Botan is a C++ cryptography library. In 3.11.0, the function Certificate_Store::certificate_known had a misleading name; it would return true if any certificate in the store had a DN (and subject key identifier, if set) matching that of the argument. It did not check that the cert it found and the cert it was passed were actually the same certificate. In 3.11.0 an extension of path validation logic was made which assumed that certificate_known only returned true if the certificates were in fact identical. The impact is that if an end entity certificate is presented, and its DN (and subject key identifier, if set) match that of any trusted root, the end entity certificate is accepted immediately as if it itself were a trusted root. , This vulnerability is fixed in 3.11.1.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"CVE-2026-34580"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"redhat-SADP:CVE-2026-34580"}],"affected":[{"ecosystem":"CVE","package":"randombit/botan","versions":[">= 3.11.0, < 3.11.1"],"provider":"cvelistv5","source":"CVE-2026-34580","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/randombit/botan/security/advisories/GHSA-v782-6fq4-q827"}]},{"provider":"csaf-suse","source_id":"CVE-2026-34580","relation":"self","url":"https://www.suse.com/security/cve/CVE-2026-34580/","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-04-10T23:25:23Z","modified_at":"2026-07-01T03:28:50Z","summary":"SUSE CVE CVE-2026-34580","details":"SUSE CVE-2026-34580\n\nBotan is a C++ cryptography library. In 3.11.0, the function Certificate_Store::certificate_known had a misleading name; it would return true if any certificate in the store had a DN (and subject key identifier, if set) matching that of the argument. It did not check that the cert it found and the cert it was passed were actually the same certificate. In 3.11.0 an extension of path validation logic was made which assumed that certificate_known only returned true if the certificates were in fact identical. The impact is that if an end entity certificate is presented, and its DN (and subject key identifier, if set) match that of any trusted root, the end entity certificate is accepted immediately as if it itself were a trusted root. , This vulnerability is fixed in 3.11.1.","severity":[{"type":"SUSE","score":"critical","source":"CVE-2026-34580"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5","cpe":"cpe:/o:suse:sles:12:sp5","status":"not_affected","packages":["Botan","libbotan-devel"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-34580"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5-LTSS","cpe":"cpe:/o:suse:sles-ltss:12:sp5","status":"not_affected","packages":["Botan","libbotan-devel"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-34580"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security","cpe":"cpe:/o:suse:sles-ltss-extended-security:12:sp5","status":"not_affected","packages":["Botan"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-34580"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-34580"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1261882"}]},{"provider":"nvd","source_id":"CVE-2026-34580","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34580","severity":[],"affected":[{"ecosystem":"NVD","package":"botan_project:botan","versions":["3.11.0"],"provider":"nvd","source":"CVE-2026-34580","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"ALPINE-CVE-2026-34580","relation":"self","url":"https://osv.dev/vulnerability/ALPINE-CVE-2026-34580","published_at":"2026-04-07T22:16:22.647Z","modified_at":"2026-10-01T02:17:49.258842Z","details":"Botan is a C++ cryptography library. In 3.11.0, the function Certificate_Store::certificate_known had a misleading name; it would return true if any certificate in the store had a DN (and subject key identifier, if set) matching that of the argument. It did not check that the cert it found and the cert it was passed were actually the same certificate. In 3.11.0 an extension of path validation logic was made which assumed that certificate_known only returned true if the certificates were in fact identical. The impact is that if an end entity certificate is presented, and its DN (and subject key identifier, if set) match that of any trusted root, the end entity certificate is accepted immediately as if it itself were a trusted root. , This vulnerability is fixed in 3.11.1.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"ALPINE-CVE-2026-34580"}],"affected":[{"ecosystem":"Alpine:v3.24","package":"botan3","purl":"pkg:apk/alpine/botan3?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.11.1-r0"}]}],"fixed":["3.11.1-r0"],"provider":"osv","source":"ALPINE-CVE-2026-34580","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-34580"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-34580","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-34580","license":"CC-BY-SA-4.0","published_at":"2026-04-07T22:16:00Z","modified_at":"2026-10-17T12:58:11.962204Z","details":"Botan is a C++ cryptography library. In 3.11.0, the function Certificate_Store::certificate_known had a misleading name; it would return true if any certificate in the store had a DN (and subject key identifier, if set) matching that of the argument. It did not check that the cert it found and the cert it was passed were actually the same certificate. In 3.11.0 an extension of path validation logic was made which assumed that certificate_known only returned true if the certificates were in fact identical. The impact is that if an end entity certificate is presented, and its DN (and subject key identifier, if set) match that of any trusted root, the end entity certificate is accepted immediately as if it itself were a trusted root. , This vulnerability is fixed in 3.11.1.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"UBUNTU-CVE-2026-34580"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"UBUNTU-CVE-2026-34580"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"UBUNTU-CVE-2026-34580"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-34580"}],"affected":[{"ecosystem":"Ubuntu:18.04:LTS","package":"botan","purl":"pkg:deb/ubuntu/botan?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.0-3","2.4.0-4","2.4.0-5ubuntu1"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"botan","purl":"pkg:deb/ubuntu/botan?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.9.0-2","2.9.0-2build1","2.12.1-2","2.12.1-2build1"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"botan","purl":"pkg:deb/ubuntu/botan?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.19.5+dfsg-4"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"botan3","purl":"pkg:deb/ubuntu/botan3?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.1+dfsg-2"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"botan3","purl":"pkg:deb/ubuntu/botan3?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.1+dfsg-2","3.10.0+dfsg-2"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"botan3","purl":"pkg:deb/ubuntu/botan3?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.10.0+dfsg-2","3.11.1+dfsg-2","3.12.0+dfsg-2"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"botan","purl":"pkg:deb/ubuntu/botan?arch=source&distro=esm-apps%2Fjammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.17.3+dfsg-3","2.19.1+dfsg-2ubuntu1","2.19.1+dfsg-2ubuntu1+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"botan","purl":"pkg:deb/ubuntu/botan?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.19.3+dfsg-1ubuntu1","2.19.3+dfsg-1ubuntu2","2.19.3+dfsg-1ubuntu2+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-34580","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-34580"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-34580"},{"type":"REPORT","url":"https://github.com/randombit/botan/security/advisories/GHSA-v782-6fq4-q827"},{"type":"REPORT","url":"https://github.com/randombit/botan/pull/5500"}]},{"provider":"redhat-vex","source_id":"CVE-2026-34580","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-34580","license":"CC-BY-4.0","published_at":"2026-04-07T21:12:09.604Z","modified_at":"2026-04-17T20:40:07Z","summary":"Botan: Botan: Certificate validation bypass due to incorrect certificate matching","details":"A flaw was found in Botan, a C++ cryptography library. Due to a misleading function name and an assumption in path validation logic, an end entity certificate could be incorrectly accepted as a trusted root. This occurs when the end entity certificate's Distinguished Name (DN) and Subject Key Identifier (SKI) match those of any trusted root certificate in the store, even if the certificates are not identical. This vulnerability allows for a bypass of certificate validation, potentially enabling an attacker to present a malicious certificate that is trusted by the system.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CVE-2026-34580"},{"type":"Red Hat","score":"Important","source":"CVE-2026-34580"}],"affected":[{"ecosystem":"Red Hat:enterprise_linux:10","package":"rust-sequoia-sq","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-34580","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:10","package":"rust-sequoia-sqv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-34580","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"affected","packages":["rust-sequoia-sq","rust-sequoia-sqv"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-34580"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34580.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-34580"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2456288"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-34580"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34580"},{"type":"WEB","url":"https://github.com/randombit/botan/security/advisories/GHSA-v782-6fq4-q827"}]}],"references":[{"type":"WEB","url":"https://github.com/randombit/botan/security/advisories/GHSA-v782-6fq4-q827"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-34580"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1261882"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-34580"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-34580"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-34580"},{"type":"REPORT","url":"https://github.com/randombit/botan/pull/5500"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34580.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-34580"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2456288"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34580"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-34580","url":"https://www.cve.org/CVERecord?id=CVE-2026-34580","license":"CC-BY-4.0","modified_at":"2026-07-15T01:04:19.187Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2026-34580","url":"https://www.suse.com/security/cve/CVE-2026-34580/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-07-01T03:28:50Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-34580","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34580","relation":"self"},{"provider":"osv","source_id":"ALPINE-CVE-2026-34580","url":"https://osv.dev/vulnerability/ALPINE-CVE-2026-34580","modified_at":"2026-10-01T02:17:49.258842Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-34580","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-34580","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T12:58:11.962204Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-34580","url":"https://access.redhat.com/security/cve/CVE-2026-34580","license":"CC-BY-4.0","modified_at":"2026-04-17T20:40:07Z","relation":"self"}]}
