Skip to content
Info disclosure Write-up Intermediate

Exploitable and unpatched KeePass vulnerability: everything you need to know

KeePass versions 2.0 to 2.53 leave traces of the master password in memory, allowing an attacker with access to the machine to recover the password in plaintext except for the first character, even when the database is locked or the program is closed. The first character can be brute-forced, so this is effectively a full password leak.

Merav Bar Follow

Published on wiz.io

A vulnerability in password manager KeePass (CVE-2023-32784) enables the extraction of the master password from the application's memory, allowing attackers with existing access to a vulnerable machine to retrieve the password, even when the database is locked.

Merav Bar, on wiz.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The custom password entry box `SecureTextBoxEx` leaves traces of each character entered by the user in memory.

Impact

An attacker with existing access to a vulnerable machine could retrieve the master password, even when the database is locked or the program is closed, and then access all credentials in the vault.

What the attacker needed

Access to the vulnerable machine; KeePass version 2.0 to 2.53

The fix

The vulnerability was fixed in KeePass version 2.54.0.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

KeePass is a program that stores all your passwords in one encrypted file, unlocked by a single master password. This bug means that when you type your master password, the program leaves copies of each character in the computer's memory. Someone who can access that computer can read those leftover characters and reconstruct your master password, giving them access to all your stored passwords.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Merav Bar

View all

27 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.