Vulnerabilities / CVE-2017-6349

critical

CVE-2017-6349

vim: Integer overflow at a u_read_undo memory allocation site

Published Modified CWE 190
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat2.5CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (low), Amazon (low), Ubuntu (low).

Description

An integer overflow at a u_read_undo memory allocation site would occur for vim before patch 8.0.0377, if it does not properly validate values for tree length when reading a corrupted undo file, which may lead to resultant buffer overflows.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.10neovim, vim0.2.0-r0 and 1 more
alpine 3.11neovim, vim0.2.0-r0 and 1 more
alpine 3.12neovim, vim0.2.0-r0 and 1 more
alpine 3.13neovim, vim0.2.0-r0 and 1 more
alpine 3.14neovim, vim0.2.0-r0 and 1 more
alpine 3.15neovim, vim0.2.0-r0 and 1 more
alpine 3.16neovim, vim0.2.0-r0 and 1 more
alpine 3.17neovim, vim0.2.0-r0 and 1 more
alpine 3.18neovim, vim0.2.0-r0 and 1 more
alpine 3.19neovim, vim0.2.0-r0 and 1 more
alpine 3.20neovim, vim0.2.0-r0 and 1 more
alpine 3.21neovim, vim0.2.0-r0 and 1 more
Show all 61 entries from 34 sources
SourcePackageFixed in
alpine 3.10neovim0.2.0-r0
alpine 3.10vim8.0.1521-r0
alpine 3.11neovim0.2.0-r0
alpine 3.11vim8.0.1521-r0
alpine 3.12neovim0.2.0-r0
alpine 3.12vim8.0.1521-r0
alpine 3.13neovim0.2.0-r0
alpine 3.13vim8.0.1521-r0
alpine 3.14neovim0.2.0-r0
alpine 3.14vim8.0.1521-r0
alpine 3.15neovim0.2.0-r0
alpine 3.15vim8.0.1521-r0
alpine 3.16neovim0.2.0-r0
alpine 3.16vim8.0.1521-r0
alpine 3.17neovim0.2.0-r0
alpine 3.17vim8.0.1521-r0
alpine 3.18neovim0.2.0-r0
alpine 3.18vim8.0.1521-r0
alpine 3.19neovim0.2.0-r0
alpine 3.19vim8.0.1521-r0
alpine 3.20neovim0.2.0-r0
alpine 3.20vim8.0.1521-r0
alpine 3.21neovim0.2.0-r0
alpine 3.21vim8.0.1521-r0
alpine 3.22neovim0.2.0-r0
alpine 3.22vim8.0.1521-r0
alpine 3.23neovim0.2.0-r0
alpine 3.23vim8.0.1521-r0
alpine 3.24neovim0.2.0-r0
alpine 3.24vim8.0.1521-r0
alpine 3.6neovim0.2.0-r0
alpine 3.7neovim0.2.0-r0
alpine 3.8neovim0.2.0-r0
alpine 3.8vim8.0.1521-r0
alpine 3.9neovim0.2.0-r0
alpine 3.9vim8.0.1521-r0
alpine edgeneovim0.2.0-r0
alpine edgevim8.0.1521-r0
amazon linux 1vim-common2:8.0.0503-1.45.amzn1
amazon linux 1vim-debuginfo2:8.0.0503-1.45.amzn1
amazon linux 1vim-enhanced2:8.0.0503-1.45.amzn1
amazon linux 1vim-filesystem2:8.0.0503-1.45.amzn1
amazon linux 1vim-minimal2:8.0.0503-1.45.amzn1
debian 11neovim0.1.7-4
debian 11vim2:8.0.0197-3
debian 12neovim0.1.7-4
debian 12vim2:8.0.0197-3
debian 13neovim0.1.7-4
debian 13vim2:8.0.0197-3
debian 14neovim0.1.7-4
debian 14vim2:8.0.0197-3
debian 7vim2:7.3.547-7+deb7u3
debian 8vim2:7.4.488-7+deb8u3
echoneovim0.1.7-4
echovim2:8.0.0197-3
root.io alpine 3.18rootio-vim8.0.1521-r0
root.io alpine 3.19rootio-vim8.0.1521-r0
root.io debian 12rootio-vim2:8.0.0197-3
ubuntu 14.04-ESMvim2:7.4.052-1ubuntu3.1+esm1
ubuntu 16.04vim2:7.4.1689-3ubuntu1.4
ubuntu 16.04-ESMvim2:7.4.1689-3ubuntu1.4

References

All 13 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.