Skip to content
Fencer Vulns
high 7.8

CVE-2023-4781 json

Heap-based Buffer Overflow in vim/vim

published 2023-09-05 3 y ago modified 2026-09-17 52 d ago also EUVD-2023-54627

cvss
7.8
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 47%
public exploits
0
none known

Summary

Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.

Patch / fix

  • vim vim/vim 9.0.1873
  • vim Debian 12 2:9.0.1378-2+deb12u1
  • vim Debian 14, Debian 13 2:9.0.1894-1

debian advisories DEBIAN-CVE-2023-4781

  • vim Ubuntu 20.04 LTS 2:8.1.2269-1ubuntu5.20
  • vim Ubuntu 22.04 LTS 2:8.2.3995-1ubuntu2.13

ubuntu advisories UBUNTU-CVE-2023-4781

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • vim SLE Module for Desktop Applications 15 SP5, SLE Module for Basesystem 15 SP5, SLE Micro 5.5 +1 more 9.0.2103-150500.20.6.1
  • vim SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES for SAP 15 SP1 +17 more 9.0.1894-150000.5.54.1
  • vim SLES for SAP 12 SP5, SLES 12 SP5 9.0.1894-17.23.2

suse advisories SUSE-SU-2023:4557-1SUSE-SU-2023:3955-1SUSE-SU-2023:3942-1

  • vim Alpine 3.18 9.0.2073-r0
  • vim Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 9.0.1888-r0

alpine advisories ALPINE-CVE-2023-4781

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • vim CBL-Mariner 2.0 9.0.1897-1

azure linux advisories AZL-28659

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-4781 updated cvss 7.8

vim: heap-buffer-overflow in function vim_regsub_both in vim/vim

  • Red Hat Enterprise Linux 8 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 9 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem
    affected: no fix available “Fix deferred”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel9
    under investigation

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
17 mo ago

Exploit prediction

0.58% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • huntr.dev https://huntr.dev/bounties/c867eb0a-aa8b-4946-a621-510350673883 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 7.8 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

  • vim vim/vim

Classification

Weakness
  • CWE-122 Heap-based Buffer Overflow

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.