KeePass Vulnerability Exposes Master Password Traces in Memory; Version 2.54.0 Patches Flaw

Summary
CVE-2023-32784 lets attackers with access to a vulnerable machine recover KeePass master-password characters from memory, even when the app is locked or closed. A PoC was published; version 2.54.0 patches the flaw.
Key points
- The flaw affects KeePass versions newer than 2.0 and earlier than 2.54, according to the article.
- A PoC published May 18, 2023, demonstrated recovery of the master password except for its first character; the article says the remaining character can be guessed.
- The reported cause is SecureTextBoxEx leaving traces of entered characters in memory, including when KeePass is locked or closed.
- The article identifies KeePass version 2.54.0 as the patch and recommends updating.
- Until patched, suggested mitigations include limiting exposure of machines running vulnerable KeePass and regularly clearing crash dumps, hibernation files, and pagefiles or swapfiles.
- Wiz reports that 15% of cloud environments it observed had at least one KeePass instance, and 10% had versions vulnerable to this CVE.
Article Details
- Vulnerability Types
- In-memory exposure of KeePass master-password characters
- Affected Versions
- KeePass versions newer than 2.0 up to 2.54
- Exploitation Status
- unknown
- Exploit Availability
- public_poc
- Patch Status
- available
- Workarounds
- Change the KeePass master password regularly.
- Delete crash dumps, the hibernation file, and the pagefile/swapfile regularly.
- Overwrite deleted data on the HDD regularly to prevent file carving.
- Ensure VMs with vulnerable KeePass instances are not publicly exposed or otherwise vulnerable to critical network vulnerabilities.
