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.
Published: 2026-09-09
Score: 4.6 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

KeePass versions 2.35 through 2.61.1 do not validate header field sizes in the KDBX file format before allocating memory. This flaw is a classic instance of CWE-789: Uncontrolled Memory Allocation. An attacker can create a KDBX file that reports extremely large header field lengths, causing the application to attempt to allocate multiple gigabytes of memory. This memory exhaustion can lead to the program terminating with an out‑of‑memory error, interrupting use of the password manager and potentially affecting any services that rely on it.

Affected Systems

The vulnerability impacts KeePass, a widely used open‑source password manager. All releases from version 2.35 up to and including 2.61.1 are affected. No specific operating system is required; the flaw exists in the application code independent of the host platform.

Risk and Exploitability

The CVSS score of 4.6 indicates moderate severity. An attacker would need to supply a malicious KDBX file, so the primary attack vector is local, although compromised files could be delivered remotely if the user opens a file from an untrusted source. No evidence of public exploitation exists, and the vulnerability is not listed in the CISA KEV catalog. Because the EPSS score is unavailable, the likelihood of widespread exploitation cannot be precisely quantified, but the attack path requires user interaction with the file.

Generated by OpenCVE AI on September 9, 2026 at 11:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade KeePass to the latest released version that includes the header‑size validation fix (for example, version 2.62 or later).
  • If an upgrade is not immediately feasible, avoid opening unknown or untrusted KDBX files; only open files that have been verified to originate from trusted sources.
  • Keep the operating system and any related software up to date, and monitor the KeePass website and security mailing lists for updates or additional advisories.

Generated by OpenCVE AI on September 9, 2026 at 11:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 09 Sep 2026 10:15:00 +0000

Type Values Removed Values Added
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.
Title KeePass 2.35 through 2.61.1 Memory Exhaustion via KDBX Header Field Size
First Time appeared Keepass
Keepass keepass
Weaknesses CWE-789
CPEs cpe:2.3:a:keepass:keepass:*:*:*:*:*:*:*:*
Vendors & Products Keepass
Keepass keepass
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 4.6, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-09T10:07:26.502Z

Reserved: 2026-09-08T11:35:02.617Z

Link: CVE-2026-86776

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-09T10:22:33.970

Modified: 2026-09-09T10:22:33.970

Link: CVE-2026-86776

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-09T12:00:08Z

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value