CVE-2023-4738: Heap-based Buffer Overflow in vim/vim

Published Sep 2, 2023
·
Updated

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

Other sources

Vim. A use-after-free issue was addressed with improved memory management.

— Apple

Credit

CVE-2023-4733, CVE-2023-4734, CVE-2023-4735, CVE-2023-4736, CVE-2023-4738, CVE-2023-4750, CVE-2023-4751, CVE-2023-4752, CVE-2023-4781

Affected Software

13 affected componentsFixes available
debian/vim<=2:8.2.2434-3+deb11u1, <=2:9.0.1378-2
2:9.1.0496-12:9.1.0709-1
Apple macOS Sonoma<14.1
14.1
vim Vim<9.0.1848
Debian Debian Linux=11.0
Neovim Neovim<0.10.0
Apple macOS=14.0
alpine/vim<9.0.2073-r0
9.0.2073-r0
alpine/vim<9.0.1888-r0
9.0.1888-r0
alpine/vim<9.0.1888-r0
9.0.1888-r0
alpine/vim<9.0.1888-r0
9.0.1888-r0
alpine/vim<9.0.1888-r0
9.0.1888-r0
alpine/vim<9.0.1888-r0
9.0.1888-r0
alpine/vim<9.0.1888-r0
9.0.1888-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/vim to a version that resolves this vulnerability.

    Fixed in 2:9.1.0496-1Fixed in 2:9.1.0709-1
  2. Upgrade

    Upgrade Apple macOS to a version that resolves this vulnerability.

    Fixed in 14.1
  3. Upgrade

    Upgrade alpine/vim to a version that resolves this vulnerability.

    Fixed in 9.0.2073-r0
  4. Upgrade

    Upgrade alpine/vim to a version that resolves this vulnerability.

    Fixed in 9.0.1888-r0
  5. Upgrade

    Upgrade vim/vim to a version that resolves this vulnerability.

    Fixed in 9.0.1848
  6. Compensating control

    For the affected vim/vim versions, mitigate exposure until upgraded by limiting use and access to the vulnerable Vim build in environments where untrusted input/files may be processed.

Event History

Sep 2, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
CVE Published
via MITRE·07:39 PM
Data Sourced
07:39 PM
Weakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Sep 8, 2023
Updated
02:46 PM
Severity
Oct 25, 2023
Updated
12:00 AM
Affected Software
Oct 27, 2023
Updated
12:00 AM
Affected Software
Nov 3, 2023
Updated
12:00 AM
Affected Software
Dec 22, 2023
Updated
06:03 PM
WeaknessAffected Software
Updated
via NVD·06:03 PM
Affected Software
Jan 18, 2024
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
Affected Software
Jan 23, 2024
Updated
via Apple·12:00 AM
Affected Software
Feb 1, 2024
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·04:16 PM
Affected Software
Feb 16, 2024
Updated
via Apple·12:00 AM
Affected Software
Mar 7, 2024
Updated
via Apple·12:00 AM
Affected Software
Apr 24, 2024
Updated
via Apple·12:00 AM
Affected Software
May 29, 2024
Updated
via Apple·12:00 AM
Affected Software
Aug 2, 2024
Data Sourced
via MITRE·07:37 AM
DescriptionSeverityWeakness
Nov 21, 2024
Updated
via NVD·08:35 AM
RemedyAffected Software
Nov 3, 2025
Updated
via NVD·09:16 PM
Affected Software
Sep 18, 2026
Updated
via NVD·03:39 PM
Affected Software
Updated
via NVD·03:39 PM
RemedyAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2023-4738?

CVE-2023-4738 is a heap-based buffer overflow vulnerability in the GitHub repository vim/vim prior to version 9.0.1848.

2

What is the severity of CVE-2023-4738?

The severity of CVE-2023-4738 is high with a severity score of 7.8.

3

How does CVE-2023-4738 affect Vim?

CVE-2023-4738 affects Vim versions prior to 9.0.1848.

4

How can I fix CVE-2023-4738?

To fix CVE-2023-4738, update your Vim installation to version 9.0.1848 or higher.

5

Where can I find more information about CVE-2023-4738?

More information about CVE-2023-4738 can be found in the following references: [link1](https://github.com/vim/vim/commit/ced2c7394aafdc90fb7845e09b3a3fee23d48cb1), [link2](https://huntr.dev/bounties/9fc7dced-a7bb-4479-9718-f956df20f612)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203