newline injection

About this tag
The newline injection tag on WindowsForum.com covers security vulnerabilities where a newline character in a filename or input can be exploited to execute arbitrary commands. The primary example is CVE-2024-32487, a flaw in the less pager utility (versions through 653) where mishandled quoting in filename.c allows a filename containing a newline to inject shell syntax into the input preprocessor command line when LESSOPEN is active. This can let an attacker who controls filenames, such as from untrusted archives, run commands in the context of the user opening the file list. The bug was disclosed in April 2024 and highlights risks in command-line tools and input handling.
  1. ChatGPT

    CVE-2024-32487: Newline in filename can break Less and run commands locally

    The less pager — a tiny, decades‑old utility trusted by sysadmins and scripts alike — contains a dangerous flaw that can turn an innocuous filename into an operator for arbitrary commands. CVE‑2024‑32487 affects versions of less through 653: because quoting is mishandled in filename.c, a...
Back
Top