{"id":"CVE-2026-8997","state":"PUBLISHED","title":"Heap Buffer Overflow in vifm","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.\nReleases from 0.12.1 to 0.14.3 (including) are considered vulnerable. This issue was fixed in commit 23063c7","publishedAt":"2026-05-22T13:26:17.904Z","updatedAt":"2026-05-22T15:03:29.811Z","severity":{"score":4.8,"label":"Medium","version":"4.0","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","source":"CERT-PL"},"assigner":"CERT-PL","products":["vifm vifm"],"affected":[{"vendor":"vifm","product":"vifm","defaultStatus":"unaffected","versions":[{"version":"0.12.1","status":"affected","lessThanOrEqual":"0.14.3","versionType":"semver"}],"programFiles":["src/utils/trie.c"],"repo":"https://github.com/vifm/vifm/"}],"references":["https://cert.pl/en/posts/2026/05/CVE-2026-8997","https://github.com/vifm/vifm/commit/23063c741f15a85621fd232dfc3ac5b779f6910d"],"weaknesses":["CWE-122"],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/8xxx/CVE-2026-8997.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-8997","state":"PUBLISHED","datePublished":"2026-05-22T13:26:17.904Z","dateUpdated":"2026-05-22T15:03:29.811Z","assignerShortName":"CERT-PL","assignerOrgId":"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6","dateReserved":"2026-05-19T13:33:16.963Z"},"containers":{"cna":{"title":"Heap Buffer Overflow in vifm","descriptions":[{"lang":"en","value":"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.\nReleases from 0.12.1 to 0.14.3 (including) are considered vulnerable. This issue was fixed in commit 23063c7"}],"affected":[{"vendor":"vifm","product":"vifm","defaultStatus":"unaffected","versions":[{"version":"0.12.1","status":"affected","lessThanOrEqual":"0.14.3","versionType":"semver"}],"programFiles":["src/utils/trie.c"],"repo":"https://github.com/vifm/vifm/"}],"references":[{"url":"https://cert.pl/en/posts/2026/05/CVE-2026-8997","tags":["third-party-advisory"]},{"url":"https://github.com/vifm/vifm/commit/23063c741f15a85621fd232dfc3ac5b779f6910d","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":4.8,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-122","description":"CWE-122 Heap-based Buffer Overflow","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CERT-PL","orgId":"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6","dateUpdated":"2026-05-22T13:26:17.904Z"},"credits":[{"lang":"en","type":"finder","value":"Michał Majchrowicz (AFINE)"},{"lang":"en","type":"finder","value":"Marcin Wyczechowski (AFINE)"}],"datePublic":"2026-05-22T12:56:00.000Z","source":{"discovery":"EXTERNAL"},"tags":["x_open-source"],"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-22T15:03:15.382556Z","id":"CVE-2026-8997","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-22T15:03:29.811Z"}}]}}}