Malware & Threats

‘WallEscape’ Linux Vulnerability Leaks User Passwords

A vulnerability in util-linux, a core utilities package in Linux systems, allows attackers to leak user passwords and modify the clipboard.

A vulnerability in util-linux, a core utilities package in Linux systems, allows attackers to leak user passwords and modify the clipboard.

Security researchers are documenting a new vulnerability found in the util-linux core utilities package in Linux systems, warnign that it allows attackers to leak user passwords and modify the clipboard.

The security defect, tracked as CVE-2024-28085 and dubbed ‘WallEscape’, impacts the ‘wall’ command of util-linux that fails to filter escape sequences from command line arguments.

An attacker could embed escape sequences into crafted messages and send them via the ‘wall’ command, allowing them to leak passwords and modify commands, if specific conditions are met. “This allows unprivileged users to put arbitrary text on other users’ terminals, if mesg is set to y and wall is setgid,” said security researcher Skyler Ferrante.

Ferrante, who is credited with discovering the flaw, said the bug can be exploited to leak user passwords on Ubuntu 22.04 with default configurations, where ‘wall’ is installed with the special setgid permissions and mesg is set to y. Debian Bookworm is also affected, but CentOS and Red Hat products are not.

“On Ubuntu 22.04, we have enough control to leak a user’s password by default. The only indication of attack to the user will be an incorrect password prompt when they correctly type their password, along with their password being in their command history,” the researcher explained in a public advisory.

According to Ferrante, the flaw can also leak an unknown command on Ubuntu 22.0 “if a system runs a command when commands are not found, with the unknown command as an argument.” In addition, it can be exploited to change the output of any command.

Advertisement. Scroll to continue reading.

“On other systems that allow wall messages to be sent, an attacker may be able to alter the clipboard of a victim. This works on windows-terminal, but not on gnome-terminal,” the researcher said.

Ferrante, who also provided proof-of-concept (PoC) code, says that the vulnerability can be used to attack sudo or “anywhere the user inputs their password”. An attacker could send an incorrect password message after a user logs in using OpenSSH, for example.

According to a NIST NVD advisory, “there may be plausible scenarios where this leads to account takeover.” The vulnerability was introduced in 2013 and impacts all util-linux releases prior to version 2.40, which includes patches for this bug.

Related: Supply Chain Attack: Major Linux Distributions Impacted by XZ Utils Backdoor

Related: Android, Linux, Apple Devices Exposed to Bluetooth Keystroke Injection

Related: Severe Glibc Vulnerability Impacts Major Linux Distributions

Related Content

Data Protection

Researchers show that file-change notification systems can leak keystroke timing, browsing activity, and WhatsApp media events.

Vulnerabilities

Attackers could exploit the flaws to cause denial-of-service conditions, disclose memory, or modify memory.

Vulnerabilities

AI-assisted researchers flooded Vercel with reports, forcing the company to automate vulnerability triage.

Malware & Threats

The stealthy toolkit embeds a backdoor in HAProxy and targets automotive and media organizations in South Korea for long-term surveillance.

Artificial Intelligence

CISA has added the exploited flaw, CVE-2026-53362, to its KEV catalog, alongside a JFrog vulnerability exploited by OpenAI agents.

Vulnerabilities

Affecting every major distribution since 2011, the Linux kernel vulnerability allows attackers to gain root access.

Vulnerabilities

The 16-year-old Januscape flaw affects Linux's KVM hypervisor, allowing attackers to escape virtual machines and potentially execute code on the underlying host.

Vulnerabilities

Organizations are urged to patch after proof-of-concept code makes the Linux root escalation flaw easier to exploit.

Copyright © 2026 SecurityWeek ®, a Wired Business Media Publication. All Rights Reserved.

Exit mobile version