Headline
CVE-2022-1720: patch 8.2.4956: reading past end of line with "gf" in Visual block mode · vim/vim@395bd1f
Buffer Over-read in function grab_file_name in GitHub repository vim/vim prior to 8.2.4956. This vulnerability is capable of crashing the software, memory modification, and possible remote execution.
@@ -138,6 +138,21 @@ func Test_gf_visual()
call assert_equal('Xtest_gf_visual’, bufname(‘%’))
call assert_equal(3, getcurpos()[1])
" do not include the NUL at the end
call writefile([‘x’], ‘X’)
let save_enc = &enc
for enc in ['latin1’, ‘utf-8’]
exe “set enc=” … enc
new
call setline(1, ‘X’)
set nomodified
exe “normal \<C-V>$gf”
call assert_equal('X’, bufname())
bwipe!
endfor
let &enc = save_enc
call delete(‘X’)
" line number in visual area is used for file name
if has(‘unix’)
bwipe!
Related news
Gentoo Linux Security Advisory 202305-16 - Multiple vulnerabilities have been found in Vim, the worst of which could result in denial of service. Versions less than 9.0.1157 are affected.
Ubuntu Security Notice 5995-1 - It was discovered that Vim incorrectly handled memory when opening certain files. If an attacker could trick a user into opening a specially crafted file, it could cause Vim to crash, or possible execute arbitrary code. This issue only affected Ubuntu 14.04 ESM, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS.
Dell VxRail, versions prior to 7.0.410, contain a Container Escape Vulnerability. A local high-privileged attacker could potentially exploit this vulnerability, leading to the execution of arbitrary OS commands on the container's underlying OS. Exploitation may lead to a system take over by an attacker.
Hello everyone! Great news for my open source Scanvus project! You can now perform vulnerability checks on Linux hosts and docker images not only using the Vulners.com API, but also with the Vulns.io VM API. It’s especially nice that all the code to support the new API was written and contributed by colleagues from Vulns.io. […]
A memory corruption issue existed in the processing of ICC profiles. This issue was addressed with improved input validation. This issue is fixed in macOS Ventura 13. Processing a maliciously crafted image may lead to arbitrary code execution.
Gentoo Linux Security Advisory 202208-32 - Multiple vulnerabilities have been discovered in Vim, the worst of which could result in denial of service. Versions less than 9.0.0060 are affected.