Out-of-bounds read in Vim - CVE-2022-1769
Published: May 25, 2022
Vulnerability details
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition in get_one_sourceline() function. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger out-of-bounds read error and read contents of memory on the system.
Affected software
Amazon Linux AMI
Gentoo Linux
Fedora
macOS
vim
app-editors/gvim
app-editors/vim
app-editors/vim-core
How to mitigate CVE-2022-1769
vim - addressed in versions 8.2.4975-1.fc34, 8.2.4975-1.fc35, 8.2.4975-1.fc36
vim - addressed in versions 8.2.5172-1.1, 9.0.1160-1.1
app-editors/gvim - addressed in versions 9.0.0060, 9.0.1157
app-editors/vim - addressed in versions 9.0.0060, 9.0.1157
app-editors/vim-core - addressed in versions 9.0.0060, 9.0.1157
macOS - update to 13.0 22A380
External References
- https://huntr.dev/bounties/522076b2-96cb-4df6-a504-e6e2f64c171c
- https://github.com/vim/vim/commit/4748c4bd64610cf943a431d215bb1aad51f8d0b4
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QKIX5HYKWXWG6QBCPPTPQ53GNOFHSAIS/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IUPOLEX5GXC733HL4EFYMHFU7NISJJZG/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BFAZTAT5CZC2R6KYDYA2HBAVEDSIX6MW/