Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| KeePass | KeePass | 2.35 – ≤ 2.61.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | keepass2 | No fix yet | — |
| Debian 13 | keepass2 | No fix yet | — |
| Debian 12 | keepass2 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | keepass2 | No fix yet | — |
| Ubuntu 26.04 LTS | keepass2 | No fix yet | — |
| Ubuntu 24.04 LTS | keepass2 | No fix yet | — |
| Ubuntu 22.04 LTS | keepass2 | No fix yet | — |
| Ubuntu 20.04 LTS | keepass2 | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | keepass2 | No fix yet | — |
| Ubuntu 16.04 LTS | keepass2 | No fix yet | — |
References
- Reporter write-up and proof of concept exploit technical-description
- https://keepass.info/ product
- KeePass 2.61.1 downloads (including source) product
- VulnCheck Advisory: KeePass 2.35 through 2.61.1 Memory Exhaustion via KDBX Header Field Size third-party-advisory