# CVE-2026-8997: Heap Buffer Overflow in vifm

- Severity: Medium 4.8 (CVSS:4.0, scored by CERT-PL) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-02)
- Published: 2026-05-22T13:26:17.904Z
- Modified: 2026-07-23T16:10:00.137Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CERT-PL

## Description

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

(As written by CVE List.)

## Affected

- vifm vifm: from 0.12.1 up to 0.14.3

## References

- <https://cert.pl/en/posts/2026/05/CVE-2026-8997> (third-party-advisory)
- <https://github.com/vifm/vifm/commit/23063c741f15a85621fd232dfc3ac5b779f6910d> (patch)

## Sources

- CVE List: [CVE-2026-8997](https://www.cve.org/CVERecord?id=CVE-2026-8997), CVE Terms of Use, modified 2026-05-22
- NVD: [CVE-2026-8997](https://nvd.nist.gov/vuln/detail/CVE-2026-8997), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-8997 · Whole record: https://cve.day/CVE-2026-8997.json · Rebuilt by cve.day 2026-11-25T22:59:22.178Z
