Every CVE Search/ Get API key

CVE-2023-0512

Divide By Zero in vim/vim

7.3 HighFix available

Divide By Zero in GitHub repository vim/vim prior to 9.0.1247.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
Low
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.50%Down 0.4 points since Jan 27, 2023
90%50%10%1%

What each source reports

CVE List Score used 7.3

Divide By Zero in vim/vim

Divide By Zero in GitHub repository vim/vim prior to 9.0.1247.

Record
CVE-2023-0512
CVSS 3.0
7.3 HighCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-369
Updated
2026-11-02
EUVDEUVD-2023-12558 7.3

Divide By Zero in GitHub repository vim/vim prior to 9.0.1247.

Record
EUVD-2023-12558
CVSS 3.0
7.3 HighCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-whp8-xgvp-xj3v 7.8

Divide By Zero in GitHub repository vim/vim prior to 9.0.1247.

Divide By Zero in GitHub repository vim/vim prior to 9.0.1247.

Record
GHSA-whp8-xgvp-xj3v
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-369
Updated
2026-11-02
NVD 7.8

Divide By Zero in GitHub repository vim/vim prior to 9.0.1247.

Record
CVE-2023-0512
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 3.0
7.3 HighCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-369
Updated
2026-11-02
OSVALPINE-CVE-2023-0512 7.8

Divide By Zero in GitHub repository vim/vim prior to 9.0.1247.

Record
ALPINE-CVE-2023-0512
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSVAZL-13233 7.8

CVE-2023-0512 affecting package vim for versions less than 9.0.1247-1

Divide By Zero in GitHub repository vim/vim prior to 9.0.1247.

Record
AZL-13233
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVBELL-CVE-2023-0512 7.8
Record
BELL-CVE-2023-0512
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSV 7.3

Divide By Zero in vim/vim

Divide By Zero in GitHub repository vim/vim prior to 9.0.1247.

Record
CVE-2023-0512
CVSS 3.0
7.3 HighCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-369
Updated
2026-11-02
OSVDEBIAN-CVE-2023-0512 7.8

Divide By Zero in GitHub repository vim/vim prior to 9.0.1247.

Record
DEBIAN-CVE-2023-0512
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVSUSE-SU-2023:0760-1 No score

Security update for vim

This update for vim fixes the following issues:

  • CVE-2023-0512: Fixed a divide By Zero (bsc#1207780).
  • CVE-2023-1175: vim: an incorrect calculation of buffer size (bsc#1208957).
  • CVE-2023-1170: Fixed a heap-based Buffer Overflow (bsc#1208959).
  • CVE-2023-1127: Fixed divide by zero in scrolldown() (bsc#1208828).

Updated to version 9.0 with patch level 1386.

Record
SUSE-SU-2023:0760-1
Updated
2026-11-02
OSVSUSE-SU-2023:0781-1 No score

Security update for vim

This update for vim fixes the following issues:

  • CVE-2023-0512: Fixed a divide By Zero (bsc#1207780).
  • CVE-2023-1175: vim: an incorrect calculation of buffer size (bsc#1208957).
  • CVE-2023-1170: Fixed a heap-based Buffer Overflow (bsc#1208959).
  • CVE-2023-1127: Fixed divide by zero in scrolldown() (bsc#1208828).

Updated to version 9.0 with patch level 1386.

Record
SUSE-SU-2023:0781-1
Updated
2026-11-02
OSVSUSE-SU-2023:0781-2 No score

Security update for vim

This update for vim fixes the following issues:

  • CVE-2023-0512: Fixed a divide By Zero (bsc#1207780).
  • CVE-2023-1175: vim: an incorrect calculation of buffer size (bsc#1208957).
  • CVE-2023-1170: Fixed a heap-based Buffer Overflow (bsc#1208959).
  • CVE-2023-1127: Fixed divide by zero in scrolldown() (bsc#1208828).

Updated to version 9.0 with patch level 1386.

Record
SUSE-SU-2023:0781-2
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
vim
Alpine:v3.18
before 9.0.1251-r0
9.0.1251-r0
vim
Alpine:v3.19
before 9.0.1251-r0
9.0.1251-r0
vim
Alpine:v3.20
before 9.0.1251-r0
9.0.1251-r0
vim
Alpine:v3.21
before 9.0.1251-r0
9.0.1251-r0
vim
Alpine:v3.22
before 9.0.1251-r0
9.0.1251-r0
vim
Alpine:v3.23
before 9.0.1251-r0
9.0.1251-r0
vim
Alpine:v3.24
before 9.0.1251-r0
9.0.1251-r0
vim
Azure Linux:2
before 9.0.1247-1
9.0.1247-1
vim
Alpaquita:23
9.0.0999-r0 up to 9.1.0936-r0
9.1.0936-r0
vim
Debian:12
before 2:9.0.1378-1
2:9.0.1378-1
Show 33 moreShow less
Affected packages
PackageAffectedFixed
vim
Debian:13
before 2:9.0.1378-1
2:9.0.1378-1
vim
Debian:14
before 2:9.0.1378-1
2:9.0.1378-1
vim
SUSE:OpenStack Cloud 9
From an advisory covering 4 CVEs
before 9.0.1386-17.15.4
9.0.1386-17.15.4
vim
SUSE:OpenStack Cloud Crowbar 9
From an advisory covering 4 CVEs
before 9.0.1386-17.15.4
9.0.1386-17.15.4
vim
SUSE:Linux Enterprise Server for SAP Applications 12 SP4
From an advisory covering 4 CVEs
before 9.0.1386-17.15.4
9.0.1386-17.15.4
vim
SUSE:Linux Enterprise Server 12 SP2-BCL
From an advisory covering 4 CVEs
before 9.0.1386-17.15.4
9.0.1386-17.15.4
vim
SUSE:Linux Enterprise Server 12 SP4-ESPOS
From an advisory covering 4 CVEs
before 9.0.1386-17.15.4
9.0.1386-17.15.4
vim
SUSE:Linux Enterprise Server 12 SP4-LTSS
From an advisory covering 4 CVEs
before 9.0.1386-17.15.4
9.0.1386-17.15.4
vim
SUSE:Linux Enterprise Server 12 SP5
From an advisory covering 4 CVEs
before 9.0.1386-17.15.4
9.0.1386-17.15.4
vim
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
From an advisory covering 4 CVEs
before 9.0.1386-17.15.4
9.0.1386-17.15.4
vim
SUSE:Linux Enterprise Micro 5.3
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Module for Basesystem 15 SP4
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Module for Desktop Applications 15 SP4
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Real Time 15 SP3
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Server 15 SP1-LTSS
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Server 15 SP2-LTSS
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Server 15 SP3-LTSS
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Server for SAP Applications 15 SP1
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Server for SAP Applications 15 SP2
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Server for SAP Applications 15 SP3
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Manager Proxy 4.2
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Manager Server 4.2
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Micro 5.1
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Micro 5.2
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Enterprise Storage 7
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Enterprise Storage 7.1
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
openSUSE:Leap Micro 5.3
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
openSUSE:Leap 15.4
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1
vim
SUSE:Linux Enterprise Micro 5.4
From an advisory covering 4 CVEs
before 9.0.1386-150000.5.37.1
9.0.1386-150000.5.37.1

History

History
RecordedChangedSources
affected, facts
affectedOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-0512 is a high vulnerability (CVSS 7.3) in Vim, published January 26, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.50%, the 43rd percentile. Fixed in vim 9.0.1251-r0.

References

Show 21 moreShow less
MoveEnter Open