Skip to content
Heist/ feed
Back to feed
UnratedFix available

Fixed CVEs in vim: CVE-2022-2129, CVE-2022-2125, CVE-2022-1720, CVE-2022-2124, CVE-2022-2126

Type: advisorySources: OSV

- CVE-2022-2125: add checking for NUL to avoid running over the end of line - CVE-2022-1720: do not include the NUL in the length to avoid reading past end of line with "gf" in Visual block mode - CVE-2022-2124: add checking for NUL to avoid running over the end of line - CVE-2022-2129: disallow switching buffers in a substitute expression to avoid overruning destination buffer - CVE-2022-2126: do not decrement the index when it is zero

Products
vim-X11, vim-common, vim-enhanced, vim-filesystem, vim-minimal
Affected versions
Not specified
Fixed versions
3:7.4.629-5.2.el6.tuxcare.els19
CVEs
CVE-2022-1720, CVE-2022-2124, CVE-2022-2125, CVE-2022-2126, CVE-2022-2129
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:55 UTC · Revision 1

Source evidence

Fixed CVEs in vim: CVE-2022-2129, CVE-2022-2125, CVE-2022-1720, CVE-2022-2124, CVE-2022-2126

core-osv · Original source

Published 7 Jul 2022, 08:26 UTC

- CVE-2022-2125: add checking for NUL to avoid running over the end of line - CVE-2022-1720: do not include the NUL in the length to avoid reading past end of line with "gf" in Visual block mode - CVE-2022-2124: add checking for NUL to avoid running over the end of line - CVE-2022-2129: disallow switching buffers in a substitute expression to avoid overruning destination buffer - CVE-2022-2126: do not decrement the index when it is zero

osv:CLSA-2022-1657182377

vim-X11

Fixed versions: 3:7.4.629-5.2.el6.tuxcare.els19

vim-common

Fixed versions: 3:7.4.629-5.2.el6.tuxcare.els19

vim-enhanced

Fixed versions: 3:7.4.629-5.2.el6.tuxcare.els19

vim-filesystem

Fixed versions: 3:7.4.629-5.2.el6.tuxcare.els19

vim-minimal

Fixed versions: 3:7.4.629-5.2.el6.tuxcare.els19

Complete source record
{
  "id": "c43d7ea82c56684762a0f73fe4a13f8b20042f71a14791a64415bed8ca49d4a7",
  "url": "https://osv.dev/vulnerability/CLSA-2022-1657182377",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Fixed CVEs in vim: CVE-2022-2129, CVE-2022-2125, CVE-2022-1720, CVE-2022-2124, CVE-2022-2126",
    "summary": "- CVE-2022-2125: add checking for NUL to avoid running over the end of line - CVE-2022-1720: do not include the NUL in the length to avoid reading past end of line with \"gf\" in Visual block mode - CVE-2022-2124: add checking for NUL to avoid running over the end of line - CVE-2022-2129: disallow switching buffers in a substitute expression to avoid overruning destination buffer - CVE-2022-2126: do not decrement the index when it is zero",
    "evidence": "osv:CLSA-2022-1657182377",
    "products": [
      {
        "name": {
          "value": "vim-X11",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3:7.4.629-5.2.el6.tuxcare.els19",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-common",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3:7.4.629-5.2.el6.tuxcare.els19",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-enhanced",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3:7.4.629-5.2.el6.tuxcare.els19",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-filesystem",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3:7.4.629-5.2.el6.tuxcare.els19",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-minimal",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3:7.4.629-5.2.el6.tuxcare.els19",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CLSA-2022-1657182377",
      "aliases": [
        "CLSA-2022-1657182377"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3:7.4.629-5.2.el6.tuxcare.els19"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-X11",
            "purl": "pkg:rpm/tuxcare/vim-X11?distro=oraclelinux-6",
            "ecosystem": "TuxCare:OracleLinux:6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/oraclelinux6els/CLSA-2022-1657182377.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3:7.4.629-5.2.el6.tuxcare.els19"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-common",
            "purl": "pkg:rpm/tuxcare/vim-common?distro=oraclelinux-6",
            "ecosystem": "TuxCare:OracleLinux:6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/oraclelinux6els/CLSA-2022-1657182377.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3:7.4.629-5.2.el6.tuxcare.els19"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-enhanced",
            "purl": "pkg:rpm/tuxcare/vim-enhanced?distro=oraclelinux-6",
            "ecosystem": "TuxCare:OracleLinux:6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/oraclelinux6els/CLSA-2022-1657182377.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3:7.4.629-5.2.el6.tuxcare.els19"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-filesystem",
            "purl": "pkg:rpm/tuxcare/vim-filesystem?distro=oraclelinux-6",
            "ecosystem": "TuxCare:OracleLinux:6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/oraclelinux6els/CLSA-2022-1657182377.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3:7.4.629-5.2.el6.tuxcare.els19"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-minimal",
            "purl": "pkg:rpm/tuxcare/vim-minimal?distro=oraclelinux-6",
            "ecosystem": "TuxCare:OracleLinux:6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/oraclelinux6els/CLSA-2022-1657182377.json"
          }
        }
      ],
      "modified": "2026-10-21T10:48:01.629664220Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-1720",
        "CVE-2022-2124",
        "CVE-2022-2125",
        "CVE-2022-2126",
        "CVE-2022-2129"
      ],
      "references": [
        "https://errata.cloudlinux.com/ol6/CLSA-2022-1657182377.html"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-1720",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2022-2124",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2022-2125",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2022-2126",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2022-2129",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 392504,
  "published_at": "2022-07-07T08:26:17+00:00"
}