# CVE-2026-39881: Vim Ex command injection in Vims NetBeans integration

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-04-08T20:18:19.774Z
- Modified: 2026-07-24T21:10:00.143Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Vim is an open source, command line text editor. Prior to 9.2.0316, a command injection vulnerability in Vim's netbeans interface allows a malicious netbeans server to execute arbitrary Ex commands when Vim connects to it, via unsanitized strings in the defineAnnoType and specialKeys protocol messages. This vulnerability is fixed in 9.2.0316.

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0316; before 9.2.0316

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-mr87-rhgv-7pw6> (vendor-advisory)
- <https://github.com/vim/vim/commit/7ab76a86048ed492374ac6b19> (patch)
- <https://github.com/vim/vim/releases/tag/v9.2.0316> (release-notes)

## Sources

- CVE List: [CVE-2026-39881](https://www.cve.org/CVERecord?id=CVE-2026-39881), CVE Terms of Use, modified 2026-04-09
- NVD: [CVE-2026-39881](https://nvd.nist.gov/vuln/detail/CVE-2026-39881), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-39881 · Whole record: https://cve.day/CVE-2026-39881.json · Rebuilt by cve.day 2026-11-25T22:59:18.313Z
