Skip to content
OpenAdvisories
High · 7.8 CVE-2024-22667 EUVD-2024-20200GHSA-jhwv-44fv-jwp5

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 p…

Published Feb 5, 2024 · Updated Nov 4, 2025 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 vim 2:9.0.2189-1 —
Debian 13 vim 2:9.0.2189-1 —
Debian 12 vim 2:9.0.1378-2+deb12u1 —
Debian 11 vim 2:8.2.2434-3+deb11u2 DLA-4097-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS vim 2:8.2.3995-1ubuntu2.16 USN-6698-1
Ubuntu 20.04 LTS vim 2:8.1.2269-1ubuntu5.22 USN-6698-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS vim 2:8.0.1453-1ubuntu1.13+esm8 USN-6698-1
Ubuntu Pro 16.04 LTS vim 2:7.4.1689-3ubuntu1.5+esm23 USN-6698-1
Ubuntu Pro 14.04 LTS vim 2:7.4.052-1ubuntu3.1+esm16 USN-6698-1
ReleasePackageFixed inAdvisory
SLES 15 SP5 vim 9.1.0111-150500.20.9.1 SUSE-SU-2024:1287-1
SLES 15 SP4 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLES 15 SP3 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLES 15 SP2 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLES 12 SP5 vim 9.1.0111-17.29.1 SUSE-SU-2024:0783-1
Show 15 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLES for SAP 15 SP3 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLES for SAP 15 SP2 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLES for SAP 12 SP5 vim 9.1.0111-17.29.1 SUSE-SU-2024:0783-1
SLE Micro 5.5 vim 9.1.0111-150500.20.9.1 SUSE-SU-2024:1287-1
SLE Micro 5.4 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLE Micro 5.3 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLE Micro 5.2 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLE Micro 5.1 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLE HPC 15 SP4 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLE HPC 15 SP3 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SLE HPC 15 SP2 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SUSE Manager Server 4.3 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SUSE Manager Proxy 4.3 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
SUSE Enterprise Storage 7.1 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 vim 9.1.0111-150500.20.9.1 SUSE-SU-2024:1287-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.4 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1
openSUSE Leap Micro 5.3 vim 9.1.0111-150000.5.60.1 SUSE-SU-2024:0871-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 xxd +6 2:9.0.2153-1.amzn2023 ALAS2023-2024-518
Amazon Linux 2 xxd +6 2:9.0.2153-1.amzn2.0.1 ALAS2-2024-2452

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) vim 9.0.2121-2 —

Advisories 8

References