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.
Severity (CVSS)
| Base score | 4.6 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-789 — Memory Allocation with Excessive Size Value
Affected products
| Vendor | Product | Versions |
|---|---|---|
| KeePass | KeePass | 2.35 to <=2.61.1 |
References
- https://github.com/KSecur1ty/KDBX-Header-Size-Mirage-POC (exploit technical-description)
- https://keepass.info/ (product)
- https://keepass.info/download.html (product)
- https://www.vulncheck.com/advisories/keepass-2.35-through-2.61.1-memory-exhaustion-via-kdbx-header-field-size (third-party-advisory)
Generated from the official CVE List on 10 Sep 2026 07:03 UTC.