Advisory

UBUNTU-CVE-2026-52860

Also known as: CVE-2026-52860

Summary

The record has no summary.

Details

Vim is an open source, command line text editor. Prior to version 9.2.0597, Vim's Python omni-completion executes reconstructed function and class definitions from the current buffer with exec() as part of populating the completion dictionary. Python evaluates function default values, parameter annotations, and class base expressions at definition time, so a hostile buffer can execute attacker-controlled Python expressions during omni-completion. The existing g:pythoncomplete_allow_import mitigation (GHSA-52mc-rq6p-rc7c) does not cover this path, because the attacker-controlled code is not a harvested import/from statement. This issue has been patched in version 9.2.0597.

Severity

High Basis: CVSS v3 score 8, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-06-11 19:16 UTC
Modified
2026-06-30 18:15 UTC

Affected packages and fixes

vim

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2:8.2.3995-1ubuntu2.32 (ecosystem)

Fixed versions

2:8.2.3995-1ubuntu2.32

Fix

  • Fixed version 2:8.2.3995-1ubuntu2.32
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

vim

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2:9.1.0016-1ubuntu7.16 (ecosystem)

Fixed versions

2:9.1.0016-1ubuntu7.16

Fix

  • Fixed version 2:9.1.0016-1ubuntu7.16
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

vim

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0, fixed 2:9.1.0967-1ubuntu6.7 (ecosystem)

Fixed versions

2:9.1.0967-1ubuntu6.7

Fix

  • Fixed version 2:9.1.0967-1ubuntu6.7
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

vim

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 2:9.1.2141-1ubuntu4.5 (ecosystem)

Fixed versions

2:9.1.2141-1ubuntu4.5

Fix

  • Fixed version 2:9.1.2141-1ubuntu4.5
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences