{"schemaVersion":3,"id":"CVE-2026-52860","aliases":["ALPINE-CVE-2026-52860","UBUNTU-CVE-2026-52860","DEBIAN-CVE-2026-52860"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-06-11T18:33:45.838Z","modified":"2026-09-17T12:04:37.716Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00417,"percentile":0.34609,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.19300000000000003,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00224},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00417,"percentile":0.34609}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00224,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00417,"percentile":0.34609}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"alpine","product":"vim","name":"vim","label":"vim","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/vim","purlType":"apk","versions":[{"text":"< 9.2.0602-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.2.0602-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"vim","name":"vim","label":"vim","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/vim","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2:9.2.0782-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2:9.2.0782-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"vim","name":"vim","label":"vim","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/vim","purlType":"deb","versions":[{"text":"< 2:7.4.052-1ubuntu3.1+esm29","noFixRecorded":false,"fixedIn":null},{"text":"< 2:7.4.1689-3ubuntu1.5+esm35","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.0.1453-1ubuntu1.13+esm20","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.1.2269-1ubuntu5.32+esm8","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.2.3995-1ubuntu2.32","noFixRecorded":false,"fixedIn":null},{"text":"< 2:9.1.0016-1ubuntu7.16","noFixRecorded":false,"fixedIn":null},{"text":"< 2:9.1.0967-1ubuntu6.7","noFixRecorded":false,"fixedIn":null},{"text":"< 2:9.1.2141-1ubuntu4.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:7.4.052-1ubuntu3.1+esm29 | < 2:7.4.1689-3ubuntu1.5+esm35 | < 2:8.0.1453-1ubuntu1.13+esm20 | < 2:8.1.2269-1ubuntu5.32+esm8 | < 2:8.2.3995-1ubuntu2.32 | < 2:9.1.0016-1ubuntu7.16 | < 2:9.1.0967-1ubuntu6.7 | < 2:9.1.2141-1ubuntu4.5","eol":null,"hubHref":null},{"vendor":"vim","product":"vim","name":"vim","label":"vim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.2.0597","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.2.0597","eol":null,"hubHref":"/vendor/vim/vim"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-65p9-mwwx-7468","label":"github.com/vim/vim/security/advisories/GHSA-65p9-mwwx-7468","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Vendor Advisory"]},{"url":"https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c","label":"github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c","hostname":"github.com","tags":["X Refsource MISC","REPORT","Mitigation","Vendor Advisory"]},{"url":"https://github.com/vim/vim/commit/c8c63673bc4253212820626aeeb75999d9a539d2","label":"github.com/vim/vim/commit/c8c63673bc4253212820626aeeb75999d9a539d2","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch"]},{"url":"https://github.com/vim/vim/releases/tag/v9.2.0597","label":"github.com/vim/vim/releases/tag/v9.2.0597","hostname":"github.com","tags":["X Refsource MISC","REPORT","Product"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-52860","label":"access.redhat.com/security/cve/CVE-2026-52860","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2487987","label":"bugzilla.redhat.com/show_bug.cgi?id=2487987","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52860.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52860.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-52860","label":"security.alpinelinux.org/vuln/CVE-2026-52860","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-52860","label":"ubuntu.com/security/CVE-2026-52860","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-52860","label":"www.cve.org/CVERecord?id=CVE-2026-52860","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8451-1","label":"ubuntu.com/security/notices/USN-8451-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-52860","label":"security-tracker.debian.org/tracker/CVE-2026-52860","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52860","label":"nvd.nist.gov/vuln/detail/CVE-2026-52860","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0240","RHSA-2026:57614"],"duplicates":[],"related":["USN-8451-1"]},"timeline":[{"kind":"published","date":"2026-06-11T18:33:45.838Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-17T12:04:37.716Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T03:01:12.911Z","stale":false,"partial":false}}