An exploitable use-after-free vulnerability exists in the account parsing component of the Ledger-CLI 3.1.1. A specially crafted ledger file can cause a use-after-free vulnerability resulting in arbitrary code execution. An attacker can convince a user to load a journal file to trigger this vulnerability.
https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0304
https://security.gentoo.org/glsa/202004-05
http://www.securityfocus.com/bid/100546
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00029.html
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00031.html