Skip to content
OpenAdvisories
Medium · 6.6 CVE-2022-1674 EUVD-2022-24960GHSA-rx8p-hg5g-g9hg

NULL Pointer Dereference in function vim_regexec_string at regexp.c:2733 in vim/vim

Published May 12, 2022 · Updated Oct 8, 2026 · Assigned by @huntrdev

Description

NULL Pointer Dereference in function vim_regexec_string at regexp.c:2733 in GitHub repository vim/vim prior to 8.2.4938. NULL Pointer Dereference in function vim_regexec_string at regexp.c:2733 allows attackers to cause a denial of service (application crash) via a crafted input.

Affected products

VendorProductAffectedFixed
vim vim/vim unspecified – < 8.2.4938 8.2.4938

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.0135-1 —
Debian 13 vim 2:9.0.0135-1 —
Debian 12 vim 2:9.0.0135-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS vim 2:8.2.3995-1ubuntu2.5 USN-5995-1
Ubuntu 20.04 LTS vim 2:8.1.2269-1ubuntu5.13 USN-5995-1
Ubuntu 18.04 LTS vim 2:8.0.1453-1ubuntu1.12 USN-5995-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS vim 2:7.4.1689-3ubuntu1.5+esm13 USN-5723-1
Ubuntu Pro 14.04 LTS vim 2:7.4.052-1ubuntu3.1+esm8 USN-5995-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed vim 9.0.0453-2.1 openSUSE-SU-2024:12337-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 vim-data +5 2:9.0.1160-1.amzn2023.0.2 ALAS2023-2023-098
Amazon Linux 2 vim-X11 +5 2:8.2.5172-1.amzn2.0.1 ALAS2-2022-1829

Azure Linux

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

Advisories 8

References