Skip to content
Heist/ feed
Back to feed
UnratedFix available

vim: Fix of 5 CVEs

Type: advisorySources: OSV

- CVE-2022-2124: fix out-of-bounds read in current_quote() when searching for quotes goes over the end of the line (textobject.c, upstream patch 8.2.5120) - CVE-2022-2126: fix invalid index use in suggest_trie_walk() when ts_fidx is zero (spellsuggest.c, upstream patch 8.2.5123) - CVE-2022-2207: fix read before start of line with BS in Replace mode (edit.c, upstream patch 8.2.5162) - CVE-2022-1720: fix read past end of line with "gf" in Visual block mode (normal.c, upstream patch 8.2.4956) - CVE-2022-2042: fix uninitialized value and use-after-free in spell command (spell.c, upstream patch 8.2.5072)

Products
vim-X11, vim-common, vim-enhanced, vim-filesystem, vim-minimal
Affected versions
Not specified
Fixed versions
2:8.2.2637-22.el9_6.1.tuxcare.els20
CVEs
CVE-2022-1720, CVE-2022-2042, CVE-2022-2124, CVE-2022-2126, CVE-2022-2207
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:51 UTC · Revision 1

Source evidence

vim: Fix of 5 CVEs

core-osv · Original source

Published 5 May 2026, 11:22 UTC

- CVE-2022-2124: fix out-of-bounds read in current_quote() when searching for quotes goes over the end of the line (textobject.c, upstream patch 8.2.5120) - CVE-2022-2126: fix invalid index use in suggest_trie_walk() when ts_fidx is zero (spellsuggest.c, upstream patch 8.2.5123) - CVE-2022-2207: fix read before start of line with BS in Replace mode (edit.c, upstream patch 8.2.5162) - CVE-2022-1720: fix read past end of line with "gf" in Visual block mode (normal.c, upstream patch 8.2.4956) - CVE-2022-2042: fix uninitialized value and use-after-free in spell command (spell.c, upstream patch 8.2.5072)

osv:CLSA-2026-1777980164

vim-X11

Fixed versions: 2:8.2.2637-22.el9_6.1.tuxcare.els20

vim-common

Fixed versions: 2:8.2.2637-22.el9_6.1.tuxcare.els20

vim-enhanced

Fixed versions: 2:8.2.2637-22.el9_6.1.tuxcare.els20

vim-filesystem

Fixed versions: 2:8.2.2637-22.el9_6.1.tuxcare.els20

vim-minimal

Fixed versions: 2:8.2.2637-22.el9_6.1.tuxcare.els20

Complete source record
{
  "id": "60d572946c288470624d7b531d10ef530e02af2985ffcf9d7de4a9a34706838f",
  "url": "https://osv.dev/vulnerability/CLSA-2026-1777980164",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "vim: Fix of 5 CVEs",
    "summary": "- CVE-2022-2124: fix out-of-bounds read in current_quote() when searching for quotes goes over the end of the line (textobject.c, upstream patch 8.2.5120) - CVE-2022-2126: fix invalid index use in suggest_trie_walk() when ts_fidx is zero (spellsuggest.c, upstream patch 8.2.5123) - CVE-2022-2207: fix read before start of line with BS in Replace mode (edit.c, upstream patch 8.2.5162) - CVE-2022-1720: fix read past end of line with \"gf\" in Visual block mode (normal.c, upstream patch 8.2.4956) - CVE-2022-2042: fix uninitialized value and use-after-free in spell command (spell.c, upstream patch 8.2.5072)",
    "evidence": "osv:CLSA-2026-1777980164",
    "products": [
      {
        "name": {
          "value": "vim-X11",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.2.2637-22.el9_6.1.tuxcare.els20",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-common",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.2.2637-22.el9_6.1.tuxcare.els20",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-enhanced",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.2.2637-22.el9_6.1.tuxcare.els20",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-filesystem",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.2.2637-22.el9_6.1.tuxcare.els20",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-minimal",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.2.2637-22.el9_6.1.tuxcare.els20",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CLSA-2026-1777980164",
      "aliases": [
        "CLSA-2026-1777980164"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.2.2637-22.el9_6.1.tuxcare.els20"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-X11",
            "purl": "pkg:rpm/tuxcare/vim-X11?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1777980164.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.2.2637-22.el9_6.1.tuxcare.els20"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-common",
            "purl": "pkg:rpm/tuxcare/vim-common?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1777980164.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.2.2637-22.el9_6.1.tuxcare.els20"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-enhanced",
            "purl": "pkg:rpm/tuxcare/vim-enhanced?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1777980164.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.2.2637-22.el9_6.1.tuxcare.els20"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-filesystem",
            "purl": "pkg:rpm/tuxcare/vim-filesystem?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1777980164.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.2.2637-22.el9_6.1.tuxcare.els20"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-minimal",
            "purl": "pkg:rpm/tuxcare/vim-minimal?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1777980164.json"
          }
        }
      ],
      "modified": "2026-10-21T10:46:38.615447691Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-1720",
        "CVE-2022-2042",
        "CVE-2022-2124",
        "CVE-2022-2126",
        "CVE-2022-2207"
      ],
      "references": [
        "https://errata.tuxcare.com/els_os/tuxcare9.6esu/CLSA-2026-1777980164.html"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-1720",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2022-2042",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2022-2124",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2022-2126",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2022-2207",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 392256,
  "published_at": "2026-05-05T11:22:49+00:00"
}