{"id":"UBUNTU-CVE-2017-2808","details":"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.","modified":"2025-10-24T04:46:06Z","published":"2017-09-05T18:29:00Z","upstream":["CVE-2017-2808"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-2808"},{"type":"REPORT","url":"https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0304"},{"type":"REPORT","url":"https://github.com/ledger/ledger/commit/f3bad93db256db07b6cb831d4d24f47543f57e4a"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-2808"}],"affected":[{"package":{"name":"ledger","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ledger@3.1.1+dfsg1-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1+dfsg1-5","3.1+dfsg1-6","3.1+dfsg1-7","3.1.1+dfsg1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.1+dfsg1-1","binary_name":"ledger"},{"binary_version":"3.1.1+dfsg1-1","binary_name":"ledger-el"},{"binary_version":"3.1.1+dfsg1-1","binary_name":"python-ledger"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-2808.json"}},{"package":{"name":"ledger","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ledger@3.1.2~pre1+g3a00e1c+dfsg1-5build5?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.2~pre1+g3a00e1c+dfsg1-5","3.1.2~pre1+g3a00e1c+dfsg1-5build1","3.1.2~pre1+g3a00e1c+dfsg1-5build2","3.1.2~pre1+g3a00e1c+dfsg1-5build3","3.1.2~pre1+g3a00e1c+dfsg1-5build4","3.1.2~pre1+g3a00e1c+dfsg1-5build5"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.2~pre1+g3a00e1c+dfsg1-5build5","binary_name":"elpa-ledger"},{"binary_version":"3.1.2~pre1+g3a00e1c+dfsg1-5build5","binary_name":"ledger"},{"binary_version":"3.1.2~pre1+g3a00e1c+dfsg1-5build5","binary_name":"ledger-el"},{"binary_version":"3.1.2~pre1+g3a00e1c+dfsg1-5build5","binary_name":"python-ledger"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-2808.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}