CVE-2026-8997 PUBLISHED

Heap Buffer Overflow in vifm

Assigner: CERT-PL
Reserved: 19.05.2026 Published: 22.05.2026 Updated: 22.05.2026

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

Metrics

CVSS Vector: 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
CVSS Score: 4.8

Product Status

Vendor vifm
Product vifm
Versions Default: unaffected
  • affected from 0.12.1 to 0.14.3 (incl.)

Credits

  • Michał Majchrowicz (AFINE) finder
  • Marcin Wyczechowski (AFINE) finder

References

Problem Types

  • CWE-122 Heap-based Buffer Overflow CWE