{"id":"UBUNTU-CVE-2026-8997","details":"vifm is vulnerable to a heap buffer overflow during the history merge process when saving the state file (vifminfo.json). This flaw occurs because the application lacks a runtime check on the length of history entries in release builds, potentially allowing a crafted long path or command in the history to cause memory corruption or application crashes. Releases from 0.12.1 to 0.14.3 (including) are considered vulnerable. This issue was fixed in commit 23063c7","modified":"2026-05-27T19:09:39Z","published":"2026-05-22T14:16:00Z","upstream":["CVE-2026-8997"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-8997"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-8997"},{"type":"REPORT","url":"https://cert.pl/en/posts/2026/05/CVE-2026-8997"},{"type":"REPORT","url":"https://github.com/vifm/vifm/commit/23063c741f15a85621fd232dfc3ac5b779f6910d"}],"affected":[{"package":{"name":"vifm","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.8-3","0.7.8-3build1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.7.8-3build1","binary_name":"vifm"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8997.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9-1","0.9.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.9.1-1","binary_name":"vifm"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8997.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.1-2","0.10.1-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.1-3","binary_name":"vifm"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8997.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.1-4","0.12-1"],"ecosystem_specific":{"binaries":[{"binary_name":"vifm","binary_version":"0.12-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8997.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.12-1","0.12-1build1","0.12-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"vifm","binary_version":"0.12-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8997.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.12-1build2","0.14-3"],"ecosystem_specific":{"binaries":[{"binary_name":"vifm","binary_version":"0.14-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8997.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.14-3","0.14.3-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.14.3-1","binary_name":"vifm"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8997.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}