{"id":"UBUNTU-CVE-2026-86776","details":"KeePass versions 2.35 through 2.61.1 fail to validate KDBX header field sizes before memory allocation in the ReadHeaderField function. Attackers can craft a malicious KDBX file declaring excessive header field lengths to trigger allocation of gigabytes of memory, causing the application to consume resources and terminate.","modified":"2026-09-16T11:43:11Z","published":"2026-09-09T10:22:00Z","upstream":["CVE-2026-86776"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-86776"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-86776"},{"type":"REPORT","url":"https://github.com/KSecur1ty/KDBX-Header-Size-Mirage-POC"},{"type":"REPORT","url":"https://keepass.info/"},{"type":"REPORT","url":"https://keepass.info/download.html"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/keepass-2.35-through-2.61.1-memory-exhaustion-via-kdbx-header-field-size"}],"affected":[{"package":{"name":"keepass2","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/keepass2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.29+dfsg-1","2.30+dfsg-1","2.30+dfsg-2","2.31+dfsg-1","2.32+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.32+dfsg-1","binary_name":"keepass2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86776.json"}},{"package":{"name":"keepass2","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/keepass2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.36+dfsg-1","2.37+dfsg-1","2.38+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"keepass2","binary_version":"2.38+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86776.json"}},{"package":{"name":"keepass2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/keepass2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.41+dfsg-1","2.43+dfsg-1","2.44+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.44+dfsg-1","binary_name":"keepass2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86776.json"}},{"package":{"name":"keepass2","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/keepass2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.47+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"keepass2","binary_version":"2.47+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86776.json"}},{"package":{"name":"keepass2","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/keepass2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.47+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"keepass2","binary_version":"2.47+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86776.json"}},{"package":{"name":"keepass2","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/keepass2?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.57+dfsg-3","2.57+dfsg-4","2.60+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"keepass2","binary_version":"2.60+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86776.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}