# CVE-2023-48237: overflow in shift\_line in vim

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

- **Severity:** LOW 2.8
- **CVSS:** 2.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.82% (percentile 54, 2026-11-26)
- **CWE:** CWE-190
- **Published:** 2023-11-16T22:45:57.667Z
- **Modified:** 2026-06-23T18:17:35.183Z

## Who should check

- Anyone running vim \< 9.0.2112

## Description

Vim is an open source command line text editor. In affected versions when shifting lines in operator pending mode and using a very large value, it may be possible to overflow the size of integer. Impact is low, user interaction is required and a crash may not even happen in all situations. This issue has been addressed in commit \`6bf131888\` which has been included in version 9.0.2112. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## Affected and fixed versions

- vim: \< 9.0.2112 (cvelist)

## Mitigation

- Upgrade vim to 9.0.2112 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-48237.md
Affected: vim < 9.0.2112
Fixed in: vim 9.0.2112

Steps:
1. Search this machine and project for 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-2023-48237 being exploited?

There is no confirmed exploitation: CVE-2023-48237 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.82% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-48237?

Low: CVSS 2.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-48237?

vim \< 9.0.2112.

### Is there a fix for CVE-2023-48237?

Yes. Fixed in vim 9.0.2112. Upgrade vim to 9.0.2112 or later.

### How do I check if I'm affected by CVE-2023-48237?

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://github.com/vim/vim/security/advisories/GHSA-f2m2-v387-gv87>
- patch: <https://github.com/vim/vim/commit/6bf131888a3d1de62bbfa8a7ea03c0ddccfd496e>
- other: <http://www.openwall.com/lists/oss-security/2023/11/16/1>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M3VQF7CL3V6FGSEW37WNDFBRRILR65AK/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VNRNYLWXZOGTYWE5HMFNQ5FVE3HBUHF6/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4UJAK2W5S7G75ETDAEM3BDUCVSXCEGRD/>
- other: <https://security.netapp.com/advisory/ntap-20231227-0005/>

## 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-2023-48237>

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