7.8
CWE
119 787
EPSS
0.042%
Advisory Published
Updated

CVE-2024-22667: Buffer Overflow

First published: Mon Feb 05 2024(Updated: )

Vim before 9.0.2142 has a stack-based buffer overflow because did_set_langmap in map.c calls sprintf to write to the error buffer that is passed down to the option callback functions.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
debian/vim<=2:8.1.0875-5+deb10u2<=2:8.1.0875-5+deb10u6<=2:8.2.2434-3+deb11u1<=2:9.0.1378-2
2:9.1.0016-1
2:9.1.0199-1
ubuntu/vim<2:8.0.1453-1ubuntu1.13+
2:8.0.1453-1ubuntu1.13+
ubuntu/vim<2:8.1.2269-1ubuntu5.22
2:8.1.2269-1ubuntu5.22
ubuntu/vim<2:8.2.3995-1ubuntu2.16
2:8.2.3995-1ubuntu2.16
ubuntu/vim<2:9.0.1672-1ubuntu2.3
2:9.0.1672-1ubuntu2.3
ubuntu/vim<2:7.4.052-1ubuntu3.1+
2:7.4.052-1ubuntu3.1+
ubuntu/vim<2:9.0.2189-1
2:9.0.2189-1
ubuntu/vim<2:7.4.1689-3ubuntu1.5+
2:7.4.1689-3ubuntu1.5+
SUSE Vim<9.0.2142
Red Hat Fedora=38
Red Hat Fedora=39

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2024-22667?

    CVE-2024-22667 is classified as a high severity vulnerability due to its stack-based buffer overflow nature.

  • How do I fix CVE-2024-22667?

    To fix CVE-2024-22667, update Vim to version 9.0.2142 or later.

  • What versions of Vim are affected by CVE-2024-22667?

    CVE-2024-22667 affects all Vim versions before 9.0.2142.

  • Can CVE-2024-22667 be exploited remotely?

    Yes, CVE-2024-22667 can potentially be exploited remotely, allowing for arbitrary code execution.

  • Which operating systems are impacted by CVE-2024-22667?

    CVE-2024-22667 impacts multiple Linux distributions that package vulnerable versions of Vim.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203