# CVE-2022-1381: global heap buffer overflow in skip\_range in vim/vim

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.0, CNA) `CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 3.12% (percentile 89, 2026-11-26)
- **CWE:** CWE-122
- **Published:** 2022-04-17T00:00:00.000Z
- **Modified:** 2026-06-17T04:22:19.900Z

## Who should check

- Anyone running vim/vim \>= unspecified, \< 8.2.4763

## Description

global heap buffer overflow in skip\_range in GitHub repository vim/vim prior to 8.2.4763. This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution

## Affected and fixed versions

- vim/vim: \>= unspecified, \< 8.2.4763 (cvelist)

## Mitigation

- Upgrade vim/vim to 8.2.4763 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-1381. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-1381.md
Affected: vim/vim >= unspecified, < 8.2.4763
Fixed in: vim/vim 8.2.4763

Steps:
1. Search this machine and project for vim/vim: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-1381 being exploited?

There is no confirmed exploitation: CVE-2022-1381 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 3.12% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-1381?

High: CVSS 7.8 (v3.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2022-1381?

vim/vim \>= unspecified, \< 8.2.4763.

### Is there a fix for CVE-2022-1381?

Yes. Fixed in vim/vim 8.2.4763. Upgrade vim/vim to 8.2.4763 or later.

### How do I check if I'm affected by CVE-2022-1381?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X6E457NYOIRWBJHKB7ON44UY5AVTG4HU/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KVPZVE2CIE2NGCHZDMEHPBWN3LK2UQAA/>
- vendor: <https://security.gentoo.org/glsa/202208-32>
- vendor: <https://security.gentoo.org/glsa/202305-16>
- patch: <https://github.com/vim/vim/commit/f50808ed135ab973296bca515ae4029b321afe47>
- exploit: <https://huntr.dev/bounties/55f9c0e8-c221-48b6-a00e-bdcaebaba4a4>
- other: <https://support.apple.com/kb/HT213488>
- other: <http://seclists.org/fulldisclosure/2022/Oct/41>
- other: <http://seclists.org/fulldisclosure/2022/Oct/28>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-1381>

HTML: <https://flawdb.com/CVE-2022-1381> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-1381>
