CVE-2022-0158 | Heap-based Buffer Overflow in vim/vim

Exp

vim is vulnerable to Heap-based Buffer Overflow

Published: 2022-01-10 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-0158 is rated Exploit Available (55.7/100): CVSS Low severity, with medium exploitation likelihood (EPSS 1.71%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +1.48% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2022-0158

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2022-0158

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.23% 1.71% +1.48%
2 2026-01-20 0.13% 0.23% +0.10%
3 2025-11-21 0.13%

Full EPSS history (13 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-0158

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
3.3 3.1 LOW
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
1.8 1.4 [email protected]
6.8 3.0 MEDIUM
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.5 4.2 [email protected]
4.3 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:N/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:N)
No integrity impact.
Availability impact (A:N)
No availability impact.
8.6 2.9 [email protected]

Weakness enumeration for CVE-2022-0158

OS Trackers for CVE-2022-0158

vendor priority summary link
alpine low CVE-2022-0158: 1 source package rows (vim); 54 state rows across 8 repos (3.12-main, 3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 8, open 46. https://security.alpinelinux.org/vuln/CVE-2022-0158
debian unimportant CVE-2022-0158 unimportant priority: Debian including 1 source packages (vim), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 4, open 1. https://security-tracker.debian.org/tracker/CVE-2022-0158
gentoo low CVE-2022-0158: 1 GLSA(s) (202208-32), 3 atom(s) (app-editors/gvim, app-editors/vim, app-editors/vim-core); latest impact low. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-0158
redhat low https://access.redhat.com/security/cve/CVE-2022-0158
suse medium CVE-2022-0158 severity moderate: SUSE including 6 source package names (gvim, vim, vim-data, vim-data-common, vim-small, xxd), 134 product×package rows across 43 product lines (HPE Helion OpenStack 8, SUSE CaaS Platform 4.0, … (43 product lines)): Known Not Affected 134. https://www.suse.com/security/cve/CVE-2022-0158/
ubuntu medium CVE-2022-0158 medium priority: Ubuntu including 1 source packages (vim), 10 status rows across 10 suites (bionic, focal, hirsute, impish, jammy, kinetic, lunar, trusty, upstream, xenial): not-affected 6, ignored 2, released 2. https://ubuntu.com/security/CVE-2022-0158

Affected software / configurations for CVE-2022-0158

Vendor Product Version Raw CPE
vim vim < 8.2.4049 cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
apple macos < 12.3 cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
apple macos >= 11.0, < 11.6.8 cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*

References for CVE-2022-0158

URL Tags
http://seclists.org/fulldisclosure/2022/Jul/13 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2022/Mar/29 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/01/15/1 Mailing List Third Party Advisory
https://github.com/vim/vim/commit/5f25c3855071bd7e26255c68bf458b1b5cf92f39 Patch Third Party Advisory
https://huntr.dev/bounties/ac5d7005-07c6-4a0a-b251-ba9cdbf6738b Exploit Patch Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HD5S2FC2HF22A7XQXK2XXIR46EARVWIM/
https://security.gentoo.org/glsa/202208-32 Third Party Advisory
https://support.apple.com/kb/HT213183 Release Notes Third Party Advisory
https://support.apple.com/kb/HT213344 Third Party Advisory
cvelogic Threat Intelligence