An exploitable buffer overflow vulnerability exists in the tag parsing functionality of Ledger-CLI 3.1.1. A specially crafted journal file can cause an integer underflow resulting in code execution. An attacker can construct a malicious journal file to trigger this vulnerability.
https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0303
https://security.gentoo.org/glsa/202004-05
http://www.securityfocus.com/bid/100543
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00029.html
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00031.html