Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft KDBX file with inflated header field lengths
-
DeliveryDeliver file to target via phishing or file substitution
-
ExploitTarget opens malicious KDBX in KeePass 2.35-2.61.1
-
ExecutionReadHeaderField allocates gigabytes of memory without bounds check
-
ImpactRAM exhausted, application crashes
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
|
| Exploitation Conditions | The target user must manually open a crafted KDBX file within KeePass (UI:R per the CVSS vector) - exploitation cannot occur without this deliberate user action. The attack vector is local (AV:L), meaning the malicious file must reach the victim's filesystem, typically via social engineering such as phishing or file substitution of a legitimate database. No elevated system privileges are required of the attacker (PR:N). The vulnerability triggers in the default KeePass file-open code path with no special features or non-default configuration needed. Exploitation is bounded to the KeePass process itself: the operating system is not compromised, and stored credential data is not exposed during the crash - impact ends when the application terminates. |
| Impact | The CVSS 3.3 base score accurately reflects the constrained severity: the attack vector is local (AV:L), user interaction is required (UI:R), and impact is limited to application availability (A:L) with no confidentiality or integrity consequences. Despite the publicly available proof-of-concept hosted at GitHub, the exploitation chain is not automatable - an attacker must socially engineer a target into opening a crafted file, which materially limits realistic threat scale. SSVC framing: exploitation status is proof-of-concept only (not active), the technique is not automatable at scale, and technical impact is partial (application crash, not system compromise). In practice, even a mid-sized municipal IT team in gliwice that runs KeePass as its standard enterprise credential store would face temporary lockout from the password database rather than any credential exfiltration - a meaningful but non-critical disruption. The absence of a CISA KEV entry and the DoS-only impact profile place this squarely in scheduled patching rather than emergency response territory. |
| Exploit ScenarioDerived | An attacker crafts a KDBX file with header field length values set to multi-gigabyte figures and delivers it to a target via phishing email or by substituting a legitimate database backup on shared storage. When the victim opens the file in KeePass 2.35-2.61.1, ReadHeaderField allocates the declared memory without validation, rapidly exhausting available RAM and crashing the application. A public proof-of-concept demonstrating this technique is available at https://github.com/KSecur1ty/KDBX-Header-Size-Mirage-POC. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Memory exhaustion in KeePass 2.35 through 2.61.1 crashes the password manager when a user opens a crafted KDBX database file whose header fields declare excessive allocation lengths. The ReadHeaderField function performs no bounds validation before honoring attacker-controlled length values, enabling gigabyte-scale memory allocations that exhaust system RAM and terminate the process. A proof-of-concept is publicly available on GitHub; no active exploitation is confirmed in CISA KEV, and real-world impact is confined to application availability - stored credentials are not exposed.
RemediationAI
Update KeePass to a version beyond 2.61.1 by consulting the official download page at https://keepass.info/download.html and verifying the release resolves CVE-2026-86776 per the VulnCheck advisory at https://www.vulncheck.com/advisories/keepass-2.35-through-2.61.1-memory-exhaustion-via-kdbx-header-field-size; no specific patched version number is confirmed in available data so the fix version must be independently verified before deployment. As a compensating control until a patch is applied, endpoint security policies or email gateway rules can be configured to flag or quarantine KDBX files received from external or untrusted sources, reducing the social-engineering delivery path with minimal operational impact for users who obtain their databases from internal systems only. Users should be instructed not to open KDBX database files from unknown or untrusted parties.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
KeePass stores encrypted password databases in the KDBX binary format (versions 3 and 4). During file parsing, the ReadHeaderField function reads variable-length header blocks whose sizes are declared in the file itself and allocates memory according to those declared values. CWE-789 (Uncontrolled Memory Allocation) captures the root cause: the application treats attacker-controlled integer fields from user-supplied input as trustworthy allocation sizes without first validating them against reasonable bounds. Because a KDBX file is external input, an adversary can set a 4-byte length field to an arbitrarily large value, causing ReadHeaderField to request gigabytes of RAM in a single allocation. All KeePass builds in the range CPE cpe:2.3:a:keepass:keepass:*:*:*:*:*:*:*:* versions 2.35-2.61.1 are affected.
Know when Keepass gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Local file-parse DoS requires user to open a crafted file; impact is application crash only with no credential exposure, supporting A:L.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
The automatic update feature in KeePass 2.33 and earlier allows man-in-the-middle attackers to execute arbitrary code by
In KeePass 2.x before 2.54, it is possible to recover the cleartext master password from a memory dump, even when a work
The entry details view function in KeePass version 1.32 inadvertently decrypts certain database entries into memory, whi
A flaw was found in keepass. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authenticati
KeePass through 2.53 (in a default installation) allows an attacker, who has write access to the XML configuration file,
EUVD-2026-74788
GHSA-5r36-v86r-vm5x
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB