cve.bz

CVE-2026-57452 vim vim: Out-of-bounds Read

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) in vim vim. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
Vim is an open source, command line text editor. Prior to 9.2.0671, when Vim opens a file encrypted with the VimCrypt~04! or VimCrypt~05! method (xchacha20poly1305, requires the +sodium feature) whose body is shorter than a single libsodium secretstream header, an unsigned length calculation underflows and a subsequent decryption call reads far past the end of the input buffer, crashing Vim. This vulnerability is fixed in 9.2.0671.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 6th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-191 Integer Underflow (Wrap or Wraparound)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-57452 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-57452?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-57452?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-57452 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vim:vimbefore 9.2.0671

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12vimno fix listedDEBIAN-CVE-2026-57452
Debian13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-57452 DSA-6600-1
Debian14vim2:9.2.0782-1DEBIAN-CVE-2026-57452
Ubuntu22.04:LTSvim2:8.2.3995-1ubuntu2.33UBUNTU-CVE-2026-57452 USN-8500-1
Ubuntu24.04:LTSvim2:9.1.0016-1ubuntu7.17UBUNTU-CVE-2026-57452 USN-8500-1
Ubuntu25.10vim2:9.1.0967-1ubuntu6.8UBUNTU-CVE-2026-57452 USN-8500-1
Ubuntu26.04:LTSvim2:9.1.2141-1ubuntu4.6UBUNTU-CVE-2026-57452 USN-8500-1
UbuntuPro:14.04:LTSvim2:7.4.052-1ubuntu3.1+esm30USN-8500-1
UbuntuPro:16.04:LTSvim2:7.4.1689-3ubuntu1.5+esm36USN-8500-1
UbuntuPro:18.04:LTSvim2:8.0.1453-1ubuntu1.13+esm21USN-8500-1
UbuntuPro:20.04:LTSvim2:8.1.2269-1ubuntu5.32+esm9USN-8500-1
Red Hathummingbird:1vim, xxd, vim-X11 and 6 more2:9.2.725-1.hum1RHSA-2026:30267
Alpinev3.23vim9.2.0854-r0ALPINE-CVE-2026-57452
Alpinev3.24vim9.2.0677-r0ALPINE-CVE-2026-57452
Azure Linux3vim9.2.0735-1AZL-91098
Alpaquita23, 25vim9.2.0747-r0BELL-CVE-2026-57452
Alpaquitastreamvim9.2.0699-r0BELL-CVE-2026-57452

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate impact vulnerability in Vim arises from an out-of-bounds read when processing a specially crafted libsodium-encrypted file. If a user opens a malicious file encrypted with VimCrypt~04! or VimCrypt~05! and the file body is shorter than a single libsodium secretstream header, Vim may crash. This issue requires user interaction to open a malformed file and the +sodium feature to be enabled, limiting its exploitability in typical Red Hat environments.

Red Hat's mitigation

Ensure the spell checker is turned off by running :set nospell within Vim. Do not open untrusted or suspicious files—particularly those encrypted with libsodium methods (VimCrypt~04! or VimCrypt~05!)—within the Vim editor. This prevents the execution of the vulnerable decryption routine

ProductPackageStateAdvisory
Red Hat Hardened Imagesvim-main-9.2.725-1.hum1Fixed 2026-06-26RHSA-2026:30267
Red Hat Enterprise Linux 10vimNot affected
Red Hat Enterprise Linux 6vimOut of support scope
Red Hat Enterprise Linux 7vimOut of support scope
Red Hat Enterprise Linux 8vimNot affected
Red Hat Enterprise Linux 9vimFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-57452.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON