cve.bz

CVE-2025-55157 vim vim: Use After Free

6.9 mediumEPSS 0.4%Fix available

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

On this page
Vim is an open source, command line text editor. In versions from 9.1.1231 to before 9.1.1400, When processing nested tuples in Vim script, an error during evaluation can trigger a use-after-free in Vim’s internal tuple reference management. Specifically, the tuple_unref() function may access already freed memory due to improper lifetime handling, leading to memory corruption. The exploit requires direct user interaction, as the script must be explicitly executed within Vim. This issue has been patched in version 9.1.1400.

Severity

CVSS 4.0

6.9 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 37th 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 2025-08-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-55157 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-55157?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-55157?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-2025-55157 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:vimfrom 9.1.1231 before 9.1.1400

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 1 morevim9.1.1629-150000.5.78.1SUSE-SU-2025:03240-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7 and 2 morevim9.1.1629-150500.20.33.1SUSE-SU-2025:03300-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5vim9.1.1629-17.51.1SUSE-SU-2025:03299-1
SUSELinux Micro 6.0vim9.1.1629-1.1SUSE-SU-2025:20696-1
SUSELinux Micro 6.1vim9.1.1629-slfo.1.1_1.1SUSE-SU-2025:20857-1
openSUSELeap 15.6vim9.1.1629-150500.20.33.1SUSE-SU-2025:03300-1
Alpaquitastreamvim9.1.1406-r0BELL-CVE-2025-55157

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat Product Security has rated this issue as having a Low security impact because the user has to run an untrusted file IN SCRIPT MODE. Someone who is running untrusted files in script mode is equivalent to someone just taking a random python script and running it.

For additional information, refer to the Issue Severity Classification [1] and Red Hat Enterprise Linux Life Cycle & Updates Policy.

[1]. https://access.redhat.com/security/updates/classification/

[2]. https://access.redhat.com/support/policy/updates/errata/

Red Hat's mitigation

Do not run untrusted Vim scripts as it's not recommended.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10vimNot affected
Red Hat Enterprise Linux 6vimNot affected
Red Hat Enterprise Linux 7vimNot affected
Red Hat Enterprise Linux 8vimNot affected
Red Hat Enterprise Linux 9vimNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

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-2025-55157.

References

Check your stackJSON