---
title: "CVE-2022-4141"
canonical_url: "https://pkgseek.com/security/CVE-2022-4141"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2022-4141

Heap based buffer overflow in vim/vim 9.0.0946 and below by allowing an attacker to CTRL-W gf in the expression used in the RHS of the substitute command.

CVE-2022-4141 is rated HIGH (7.8), with 6 indexed affected package builds across 1 distributions.

- **Severity / Score**: HIGH (7.8)
- **Affected builds**: 6
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | jammy | vim | 2:8.2.3995-1ubuntu2 | — |
| Ubuntu | jammy | vim-common | 2:8.2.3995-1ubuntu2 | — |
| Ubuntu | jammy | vim-doc | 2:8.2.3995-1ubuntu2 | — |
| Ubuntu | jammy | vim-runtime | 2:8.2.3995-1ubuntu2 | — |
| Ubuntu | jammy | vim-tiny | 2:8.2.3995-1ubuntu2 | — |
| Ubuntu | jammy | xxd | 2:8.2.3995-1ubuntu2 | — |
