Less · Less · CVE-2022-48624
Name of the Vulnerable Software and Affected Versions:
less versions prior to 606
Description:
The issue is related to the close altfile function in filename.c, which omits shell quote calls for LESSCLOSE. This can allow an attacker to execute arbitrary commands.
Recommendations:
For versions prior to 606, update to version 606 or later to resolve the issue. As a temporary workaround, consider restricting the use of the LESSCLOSE variable to minimize the risk of exploitation.