CVE-2026-145754: Medium severity vulnerability
less before 713 mishandles escape sequences. less -R is intended to filter escape sequences so that only safe or allow-listed ones reach the terminal. However, nesting an unsafe sequence inside an allowed one allows bypassing the filter, causing the unsafe sequence to reach the terminal and take effect. Whether the escape sequence is then honored depends on the terminal used. NOTE: this issue exists because of a CVE-2022-46663 regression.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of less versions before 713 are exposed when they use less -R to view content that can contain attacker-controlled escape sequences. The impact also depends on whether the terminal in use honors the unsafe sequence that reaches it.
What does an attacker need to exploit it?
An attacker needs to induce a user to view crafted content with less -R. The crafted content must nest an unsafe escape sequence inside an allowed escape sequence so it bypasses filtering.
Are default less invocations affected?
The described bypass specifically concerns less -R, which filters escape sequences using an allow-list. The provided information does not establish that invocations without -R are affected by this particular regression.
What should be done if upgrading is not immediately possible?
Avoid using less -R on untrusted or attacker-controlled content until an upgrade is possible. Using a terminal that does not honor the resulting unsafe escape sequence may reduce impact, but the provided information does not identify which terminals are affected.