A vulnerability (CVE-2023-32784) in KeePass can be exploited to retrieve the master password from the software's memory.
The vulnerability was assigned CVE-2023-32784. It should be fixed in KeePass 2.54, which should come out in ~July 2023. Thanks again to Dominik Reichl for his fast response and creative fix!