CVE-2022-46663
NixOS vulnerability analysis and mitigation

Overview

GNU Less versions before 609 contain a vulnerability (CVE-2022-46663) that allows crafted data to bypass ANSI escape sequence filtering when using the 'less -R' command. The vulnerability was discovered by David Leadbeater and affects GNU less versions 566 through 608 (Openwall, NVD).

Technical details

The vulnerability stems from incorrect terminal state machine handling in the escape sequence filtering mechanism. When processing certain ANSI escape sequences, the application fails to properly filter them before sending them to the terminal. This can be demonstrated using specific crafted input sequences such as '\e]8;;\e0m\e[>0q' which triggers unintended terminal responses (Openwall). The issue was introduced in version 566 through commit 0f810ef and was later fixed in version 609 through commit a78e1351 (Debian).

Impact

When exploited, this vulnerability can result in a denial of service condition in terminal emulators such as xterm or iTerm 2. The exploit can cause the terminal to enter a loop where it continuously scrolls up and down, effectively disrupting normal operation. Additionally, it can allow manipulation of terminal output and clear terminal content (Gentoo, Openwall).

Mitigation and workarounds

The vulnerability has been fixed in GNU Less version 609. Users are advised to upgrade to this version or later. Various Linux distributions have also released patched versions, including Fedora 37 with version 633-1.fc37 and Gentoo with version 608-r2 (Fedora, Gentoo).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-32322HIGH7.8
  • NixOSNixOS
  • android
NoNoSep 04, 2025
CVE-2025-26439HIGH7.8
  • NixOSNixOS
  • android
NoNoSep 04, 2025
CVE-2025-26431HIGH7.8
  • NixOSNixOS
  • android
NoNoSep 04, 2025
CVE-2025-22415MEDIUM4
  • NixOSNixOS
  • android
NoNoSep 04, 2025
CVE-2025-26419LOW3.3
  • NixOSNixOS
  • android
NoNoSep 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management