All reports
Medium

less: missing quoting of shell metacharacters in LESSCLOSE handling

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-48624

Probability of exploitation in the next 30 days: 1.06%

FIRST EPSS · 2026-11-20

Description

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

A flaw was found in less. The close_altfile() function in filename.c omits shell_quote calls for LESSCLOSE, a command line to invoke the optional input postprocessor. This issue could lead to an OS command injection vulnerability and arbitrary command execution on the host operating system.