OESA-2026-3122 (CVE-2026-59856)

Vulnerability from osv_openeuler – Published: 2026-07-24 11:12 – Updated: 2026-08-06 11:12 – Source website
VLAI
Summary
vim security update
Details

Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor 'Vi', with a more complete feature set. Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.

Security Fix(es):

Vim is an open source, command line text editor. Prior to 9.2.0736, the PHP omni-completion script in runtime/autoload/phpcomplete.vim interpolates a class or trait name, taken from the contents of the edited buffer, into a search() pattern that is run via win_execute() without escaping. A name containing a single quote can terminate the search() string argument early, and because the bar is honored as an Ex command separator, the remainder of the name is run as Ex commands; via the :! command this allows arbitrary operating-system command execution when a victim opens a crafted PHP file and invokes omni-completion. This issue is fixed in version 9.2.0736.(CVE-2026-59856)

Vim is an open source, command line text editor. Prior to 9.2.0725, the single-byte branch of spell_soundfold_sal() in src/spell.c translates a word through a spell file's SAL sound-folding rules into a caller-owned result buffer, but its result writes are guarded with reslen < MAXWLEN, allowing reslen to reach MAXWLEN before res[reslen] = NUL writes one byte past the end of the MAXWLEN-element stack buffer. A boundary-length word passed to soundfold(), or reached via sound-based spell suggestion while a SAL-based spell language is active under a non-multibyte 8-bit encoding, can corrupt the eval_soundfold() stack frame and crash the editor. This issue is fixed in version 9.2.0725.(CVE-2026-59857)

Vim is an open source, command line text editor. Prior to 9.2.0735, the C omni-completion script in runtime/autoload/ccomplete.vim interpolates the typeref: or typename: extension field of a tags entry, without escaping, into a :vimgrep pattern that is run through :execute. Because :vimgrep honors the bar as a command separator, a crafted tag field can close the search pattern and append an arbitrary Ex command; opening a hostile .c file whose project tags file contains such an entry and invoking C omni-completion runs that command as the editing user. This issue is fixed in version 9.2.0735.(CVE-2026-59858)

Impacted products
Ecosystem Package Version
openEuler:20.03-LTS-SP4 vim
pkg:rpm/openEuler/vim&distro=openEuler-20.03-LTS-SP4
Affected: < 9.0-53.oe2003sp4 (ecosystem)
openEuler:22.03-LTS-SP4 vim
pkg:rpm/openEuler/vim&distro=openEuler-22.03-LTS-SP4
Affected: < 9.0-53.oe2203sp4 (ecosystem)
openEuler:24.03-LTS-SP1 vim
pkg:rpm/openEuler/vim&distro=openEuler-24.03-LTS-SP1
Affected: < 9.0.2092-39.oe2403sp1 (ecosystem)
openEuler:24.03-LTS-SP3 vim
pkg:rpm/openEuler/vim&distro=openEuler-24.03-LTS-SP3
Affected: < 9.0.2092-39.oe2403sp3 (ecosystem)
openEuler:24.03-LTS-SP4 vim
pkg:rpm/openEuler/vim&distro=openEuler-24.03-LTS-SP4
Affected: < 9.0.2092-39.oe2403sp4 (ecosystem)

{
  "affected": [
    {
      "ecosystem_specific": {
        "aarch64": [
          "vim-X11-9.0-53.oe2003sp4.aarch64.rpm",
          "vim-common-9.0-53.oe2003sp4.aarch64.rpm",
          "vim-debuginfo-9.0-53.oe2003sp4.aarch64.rpm",
          "vim-debugsource-9.0-53.oe2003sp4.aarch64.rpm",
          "vim-enhanced-9.0-53.oe2003sp4.aarch64.rpm",
          "vim-minimal-9.0-53.oe2003sp4.aarch64.rpm"
        ],
        "noarch": [
          "vim-filesystem-9.0-53.oe2003sp4.noarch.rpm"
        ],
        "src": [
          "vim-9.0-53.oe2003sp4.src.rpm"
        ],
        "x86_64": [
          "vim-X11-9.0-53.oe2003sp4.x86_64.rpm",
          "vim-common-9.0-53.oe2003sp4.x86_64.rpm",
          "vim-debuginfo-9.0-53.oe2003sp4.x86_64.rpm",
          "vim-debugsource-9.0-53.oe2003sp4.x86_64.rpm",
          "vim-enhanced-9.0-53.oe2003sp4.x86_64.rpm",
          "vim-minimal-9.0-53.oe2003sp4.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP4",
        "name": "vim",
        "purl": "pkg:rpm/openEuler/vim\u0026distro=openEuler-20.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.0-53.oe2003sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "vim-X11-9.0-53.oe2203sp4.aarch64.rpm",
          "vim-common-9.0-53.oe2203sp4.aarch64.rpm",
          "vim-debuginfo-9.0-53.oe2203sp4.aarch64.rpm",
          "vim-debugsource-9.0-53.oe2203sp4.aarch64.rpm",
          "vim-enhanced-9.0-53.oe2203sp4.aarch64.rpm",
          "vim-minimal-9.0-53.oe2203sp4.aarch64.rpm"
        ],
        "noarch": [
          "vim-filesystem-9.0-53.oe2203sp4.noarch.rpm"
        ],
        "src": [
          "vim-9.0-53.oe2203sp4.src.rpm"
        ],
        "x86_64": [
          "vim-X11-9.0-53.oe2203sp4.x86_64.rpm",
          "vim-common-9.0-53.oe2203sp4.x86_64.rpm",
          "vim-debuginfo-9.0-53.oe2203sp4.x86_64.rpm",
          "vim-debugsource-9.0-53.oe2203sp4.x86_64.rpm",
          "vim-enhanced-9.0-53.oe2203sp4.x86_64.rpm",
          "vim-minimal-9.0-53.oe2203sp4.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP4",
        "name": "vim",
        "purl": "pkg:rpm/openEuler/vim\u0026distro=openEuler-22.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.0-53.oe2203sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "vim-X11-9.0.2092-39.oe2403sp1.aarch64.rpm",
          "vim-common-9.0.2092-39.oe2403sp1.aarch64.rpm",
          "vim-debuginfo-9.0.2092-39.oe2403sp1.aarch64.rpm",
          "vim-debugsource-9.0.2092-39.oe2403sp1.aarch64.rpm",
          "vim-enhanced-9.0.2092-39.oe2403sp1.aarch64.rpm",
          "vim-minimal-9.0.2092-39.oe2403sp1.aarch64.rpm"
        ],
        "noarch": [
          "vim-filesystem-9.0.2092-39.oe2403sp1.noarch.rpm"
        ],
        "src": [
          "vim-9.0.2092-39.oe2403sp1.src.rpm"
        ],
        "x86_64": [
          "vim-X11-9.0.2092-39.oe2403sp1.x86_64.rpm",
          "vim-common-9.0.2092-39.oe2403sp1.x86_64.rpm",
          "vim-debuginfo-9.0.2092-39.oe2403sp1.x86_64.rpm",
          "vim-debugsource-9.0.2092-39.oe2403sp1.x86_64.rpm",
          "vim-enhanced-9.0.2092-39.oe2403sp1.x86_64.rpm",
          "vim-minimal-9.0.2092-39.oe2403sp1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:24.03-LTS-SP1",
        "name": "vim",
        "purl": "pkg:rpm/openEuler/vim\u0026distro=openEuler-24.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.0.2092-39.oe2403sp1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "vim-X11-9.0.2092-39.oe2403sp3.aarch64.rpm",
          "vim-common-9.0.2092-39.oe2403sp3.aarch64.rpm",
          "vim-debuginfo-9.0.2092-39.oe2403sp3.aarch64.rpm",
          "vim-debugsource-9.0.2092-39.oe2403sp3.aarch64.rpm",
          "vim-enhanced-9.0.2092-39.oe2403sp3.aarch64.rpm",
          "vim-minimal-9.0.2092-39.oe2403sp3.aarch64.rpm"
        ],
        "noarch": [
          "vim-filesystem-9.0.2092-39.oe2403sp3.noarch.rpm"
        ],
        "src": [
          "vim-9.0.2092-39.oe2403sp3.src.rpm"
        ],
        "x86_64": [
          "vim-X11-9.0.2092-39.oe2403sp3.x86_64.rpm",
          "vim-common-9.0.2092-39.oe2403sp3.x86_64.rpm",
          "vim-debuginfo-9.0.2092-39.oe2403sp3.x86_64.rpm",
          "vim-debugsource-9.0.2092-39.oe2403sp3.x86_64.rpm",
          "vim-enhanced-9.0.2092-39.oe2403sp3.x86_64.rpm",
          "vim-minimal-9.0.2092-39.oe2403sp3.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:24.03-LTS-SP3",
        "name": "vim",
        "purl": "pkg:rpm/openEuler/vim\u0026distro=openEuler-24.03-LTS-SP3"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.0.2092-39.oe2403sp3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "vim-X11-9.0.2092-39.oe2403sp4.aarch64.rpm",
          "vim-common-9.0.2092-39.oe2403sp4.aarch64.rpm",
          "vim-debuginfo-9.0.2092-39.oe2403sp4.aarch64.rpm",
          "vim-debugsource-9.0.2092-39.oe2403sp4.aarch64.rpm",
          "vim-enhanced-9.0.2092-39.oe2403sp4.aarch64.rpm",
          "vim-minimal-9.0.2092-39.oe2403sp4.aarch64.rpm"
        ],
        "noarch": [
          "vim-filesystem-9.0.2092-39.oe2403sp4.noarch.rpm"
        ],
        "src": [
          "vim-9.0.2092-39.oe2403sp4.src.rpm"
        ],
        "x86_64": [
          "vim-X11-9.0.2092-39.oe2403sp4.x86_64.rpm",
          "vim-common-9.0.2092-39.oe2403sp4.x86_64.rpm",
          "vim-debuginfo-9.0.2092-39.oe2403sp4.x86_64.rpm",
          "vim-debugsource-9.0.2092-39.oe2403sp4.x86_64.rpm",
          "vim-enhanced-9.0.2092-39.oe2403sp4.x86_64.rpm",
          "vim-minimal-9.0.2092-39.oe2403sp4.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:24.03-LTS-SP4",
        "name": "vim",
        "purl": "pkg:rpm/openEuler/vim\u0026distro=openEuler-24.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.0.2092-39.oe2403sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "High"
  },
  "details": "Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor \u0026amp;apos;Vi\u0026amp;apos;, with a more complete feature set. Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.\r\n\r\nSecurity Fix(es):\n\nVim is an open source, command line text editor. Prior to 9.2.0736, the PHP omni-completion script in runtime/autoload/phpcomplete.vim interpolates a class or trait name, taken from the contents of the edited buffer, into a search() pattern that is run via win_execute() without escaping. A name containing a single quote can terminate the search() string argument early, and because the bar is honored as an Ex command separator, the remainder of the name is run as Ex commands; via the :! command this allows arbitrary operating-system command execution when a victim opens a crafted PHP file and invokes omni-completion. This issue is fixed in version 9.2.0736.(CVE-2026-59856)\n\nVim is an open source, command line text editor. Prior to 9.2.0725, the single-byte branch of spell_soundfold_sal() in src/spell.c translates a word through a spell file\u0026apos;s SAL sound-folding rules into a caller-owned result buffer, but its result writes are guarded with reslen \u0026lt; MAXWLEN, allowing reslen to reach MAXWLEN before res[reslen] = NUL writes one byte past the end of the MAXWLEN-element stack buffer. A boundary-length word passed to soundfold(), or reached via sound-based spell suggestion while a SAL-based spell language is active under a non-multibyte 8-bit encoding, can corrupt the eval_soundfold() stack frame and crash the editor. This issue is fixed in version 9.2.0725.(CVE-2026-59857)\n\nVim is an open source, command line text editor. Prior to 9.2.0735, the C omni-completion script in runtime/autoload/ccomplete.vim interpolates the typeref: or typename: extension field of a tags entry, without escaping, into a :vimgrep pattern that is run through :execute. Because :vimgrep honors the bar as a command separator, a crafted tag field can close the search pattern and append an arbitrary Ex command; opening a hostile .c file whose project tags file contains such an entry and invoking C omni-completion runs that command as the editing user. This issue is fixed in version 9.2.0735.(CVE-2026-59858)",
  "id": "OESA-2026-3122",
  "modified": "2026-08-06T11:12:00Z",
  "published": "2026-07-24T11:12:00Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-3122"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59856"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59857"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59858"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "vim security update",
  "upstream": [
    "CVE-2026-59856",
    "CVE-2026-59857",
    "CVE-2026-59858"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.