---
title: "CVE-2023-48706"
canonical_url: "https://pkgseek.com/security/CVE-2023-48706"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2023-48706

Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free vulnerability. When executing a \`:s\` command for the very first time and using a sub-replace-special atom inside the substitution part, it is possible that the recursive \`:s\` call causes free-ing of memory which may later then be accessed by the initial \`:s\` command. The user must intentionally execute the payload and the whole process is a bit tricky to do since it seems to work only reliably for the very first :s command. It may also cause a crash of Vim. Version 9.0.2121 contains a fix for this issue.

CVE-2023-48706 is rated MEDIUM (4.7), with 12 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM (4.7)
- **Affected builds**: 12
- **Affected distros**: 1
- **Distros with fixed_in**: Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | vim | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | focal | vim-common | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | focal | vim-doc | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | focal | vim-runtime | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | focal | vim-tiny | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | focal | xxd | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | jammy | vim | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu | jammy | vim-common | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu | jammy | vim-doc | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu | jammy | vim-runtime | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu | jammy | vim-tiny | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu | jammy | xxd | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
