CVE-2026-145754
Received Received - Intake

Escape Sequence Filter Bypass in less

Vulnerability report for CVE-2026-145754, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-06

Last updated on: 2026-12-06

Assigner: MITRE

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-06
Last Modified
2026-12-06
Generated
2026-12-06
AI Q&A
2026-12-06
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
greenwoodsoftware less From 669 (inc) to 713 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-794 The product receives data from an upstream component, but does not filter all instances of a special element before sending it to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This flaw in the `less` pager allows malformed escape sequencesβ€”specifically nested sequences inside an OSC 8 URI hyperlinkβ€”to bypass the `-R` filter and reach the terminal, risking unintended terminal control if the terminal interprets the sequence.

Detection Guidance

Check the installed version of `less` to confirm if it predates the fixed commit 7590475ba0e060f6812dec1cef00233dcc9a5713.

Bash
less --version | head -n 1

If the version string shows a date before 2026-12-06 or lacks the commit hash, the system is likely affected.

Review whether `less -R` is used in scripts, man page viewers, or pagers; this flag is required for the vulnerability to manifest.

Impact Analysis

If a user views a file containing a crafted OSC 8 hyperlink with a nested escape sequence using `less -R`, the terminal may interpret the nested sequence, potentially altering display or executing unintended actions depending on the terminal emulator.

Compliance Impact

No direct compliance impact is implied by this vulnerability alone; however, organisations processing sensitive text content through `less -R` may face increased audit scrutiny if terminal injection risks are not mitigated.

Mitigation Strategies

Upgrade `less` to a build that includes commit 7590475ba0e060f6812dec1cef00233dcc9a5713 or later.

Temporarily disable use of `less -R` in scripts and pagers until the upgrade is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-145754. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...