{"id":"UBUNTU-CVE-2026-118765","details":"Botan is a C++ cryptography library. From 3.7.0 until 3.13.0, an application that calls AutoSeeded_RNG::clear() and then calls randomize with an empty output buffer while the generator is unseeded can cause AutoSeeded_RNG to mark itself seeded without consulting the configured entropy source. On builds without BOTAN_HAS_SYSTEM_RNG, the fallback uses only a clock value and process ID, so a later non-empty request can produce output from predictable state. This issue is fixed in version 3.13.0.","modified":"2026-11-05T04:42:51Z","published":"2026-10-29T17:18:00Z","upstream":["CVE-2026-118765"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-118765"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-118765"},{"type":"REPORT","url":"https://github.com/randombit/botan/commit/a7389222ace990604b6985add91ee06f55a80c0e"},{"type":"REPORT","url":"https://github.com/randombit/botan/pull/5838"},{"type":"REPORT","url":"https://github.com/randombit/botan/security/advisories/GHSA-95xx-xh9v-v9c4"}],"affected":[{"package":{"name":"botan","ecosystem":"Ubuntu:18.04:LTS","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"],"ecosystem_specific":{"binaries":[{"binary_name":"botan","binary_version":"2.4.0-5ubuntu1"},{"binary_name":"libbotan-2-4","binary_version":"2.4.0-5ubuntu1"},{"binary_name":"python3-botan","binary_version":"2.4.0-5ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118765.json"}},{"package":{"name":"botan","ecosystem":"Ubuntu:20.04:LTS","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"],"ecosystem_specific":{"binaries":[{"binary_name":"botan","binary_version":"2.12.1-2build1"},{"binary_name":"libbotan-2-12","binary_version":"2.12.1-2build1"},{"binary_version":"2.12.1-2build1","binary_name":"python3-botan"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118765.json"}},{"package":{"name":"botan","ecosystem":"Ubuntu:Pro:22.04:LTS","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"],"ecosystem_specific":{"binaries":[{"binary_name":"botan","binary_version":"2.19.1+dfsg-2ubuntu1+esm1"},{"binary_version":"2.19.1+dfsg-2ubuntu1+esm1","binary_name":"libbotan-2-19"},{"binary_version":"2.19.1+dfsg-2ubuntu1+esm1","binary_name":"python3-botan"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118765.json"}},{"package":{"name":"botan","ecosystem":"Ubuntu:Pro:24.04:LTS","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"],"ecosystem_specific":{"binaries":[{"binary_name":"botan","binary_version":"2.19.3+dfsg-1ubuntu2+esm1"},{"binary_name":"libbotan-2-19","binary_version":"2.19.3+dfsg-1ubuntu2+esm1"},{"binary_version":"2.19.3+dfsg-1ubuntu2+esm1","binary_name":"python3-botan"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118765.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}