CVE-2023-0512
Divide By Zero in vim/vim
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
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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.3 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
vimAlpine:v3.18 |
before 9.0.1251-r0 | 9.0.1251-r0 |
vimAlpine:v3.19 |
before 9.0.1251-r0 | 9.0.1251-r0 |
vimAlpine:v3.20 |
before 9.0.1251-r0 | 9.0.1251-r0 |
vimAlpine:v3.21 |
before 9.0.1251-r0 | 9.0.1251-r0 |
vimAlpine:v3.22 |
before 9.0.1251-r0 | 9.0.1251-r0 |
vimAlpine:v3.23 |
before 9.0.1251-r0 | 9.0.1251-r0 |
vimAlpine:v3.24 |
before 9.0.1251-r0 | 9.0.1251-r0 |
vimAzure Linux:2 |
before 9.0.1247-1 | 9.0.1247-1 |
vimAlpaquita:23 |
9.0.0999-r0 up to 9.1.0936-r0 | 9.1.0936-r0 |
vimDebian:12 |
before 2:9.0.1378-1 | 2:9.0.1378-1 |
Show 33 moreShow less
| Package | Affected | Fixed |
|---|---|---|
vimDebian:13 |
before 2:9.0.1378-1 | 2:9.0.1378-1 |
vimDebian:14 |
before 2:9.0.1378-1 | 2:9.0.1378-1 |
vimSUSE:OpenStack Cloud 9 From an advisory covering 4 CVEs |
before 9.0.1386-17.15.4 | 9.0.1386-17.15.4 |
vimSUSE:OpenStack Cloud Crowbar 9 From an advisory covering 4 CVEs |
before 9.0.1386-17.15.4 | 9.0.1386-17.15.4 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE:Linux Enterprise Server 12 SP5 From an advisory covering 4 CVEs |
before 9.0.1386-17.15.4 | 9.0.1386-17.15.4 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE: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 |
vimSUSE:Enterprise Storage 7 From an advisory covering 4 CVEs |
before 9.0.1386-150000.5.37.1 | 9.0.1386-150000.5.37.1 |
vimSUSE: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 |
vimopenSUSE: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 |
vimopenSUSE:Leap 15.4 From an advisory covering 4 CVEs |
before 9.0.1386-150000.5.37.1 | 9.0.1386-150000.5.37.1 |
vimSUSE: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
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | OSV | |
| first indexed | CVE 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
huntr.dev/bounties/de83736a-1936-4872-830b-f1e9b0ad2a74
github.com/vim/vim/commit/870219c58c0804bdc55419b2e455c06ac715a835
support.apple.com/kb/HT213677
support.apple.com/kb/HT213675
support.apple.com/kb/HT213670
seclists.org/fulldisclosure/2023/Mar/17
Show 21 moreShow less
seclists.org/fulldisclosure/2023/Mar/18
seclists.org/fulldisclosure/2023/Mar/21
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IE44W6WMMREYCW3GJHPSYP7NK2VT5NY6
nvd.nist.gov/vuln/detail/CVE-2023-0512
lists.fedoraproject.org/archives/list/[email protected]/message/IE44W6WMMREYCW3GJHPSYP7NK2VT5NY6
github.com/advisories/GHSA-whp8-xgvp-xj3v
security.alpinelinux.org/vuln/CVE-2023-0512
docs.bell-sw.com/security/cves/CVE-2023-0512
github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0512.json
security-tracker.debian.org/tracker/CVE-2023-0512
suse.com/support/update/announcement/2023/suse-su-20230760-1
bugzilla.suse.com/1207780
bugzilla.suse.com/1208828
bugzilla.suse.com/1208957
bugzilla.suse.com/1208959
suse.com/security/cve/CVE-2023-0512
suse.com/security/cve/CVE-2023-1127
suse.com/security/cve/CVE-2023-1170
suse.com/security/cve/CVE-2023-1175
suse.com/support/update/announcement/2023/suse-su-20230781-1
suse.com/support/update/announcement/2023/suse-su-20230781-2