AnyDesk Vulnerability Allowing Remote Code Execution With Root Privileges
A security flaw in AnyDesk Linux lets attackers run commands and gain root access before users approve desktop control.
Overview
A security researcher found a flaw in AnyDesk Linux version 8.0.2 that lets attackers run commands on a computer before the user agrees to share their screen. The problem happens because the software trusts a size number from a remote source without checking if it fits in the available space. When a specific large number is sent, the math wraps around to zero, causing the program to reserve too little memory. The attacker then sends data that spills over into other parts of the memory, which allows them to take full control of the system. Since the AnyDesk service usually runs with root privilegesThe highest administrator permission level on a system, with unrestricted control over all files and programs, the attacker gains the highest level of access on the machine. AnyDesk version 8.0.3 fixes this issue, so users of the older version are currently at risk of having their systems compromised.
Terms in this story
- Root Privileges
- The highest administrator permission level on a system, with unrestricted control over all files and programs. An attacker who gains root privileges on a server can read any user's data, alter system settings, install kernel drivers, and hide their activity from ordinary accounts.
- privileges
- The level of authority an account or process has to change settings, read files, or run commands. Ordinary user accounts run with limited privileges so a single mistake cannot break the operating system, whereas administrator privileges allow installing drivers and viewing all files.
- Vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- Code Execution
- A flaw that lets an attacker run any commands or program they choose on the target machine. When an advisory warns that a bug allows arbitrary code execution, an attacker who triggers the flaw can install malware, read files, or take over the program's account.
- heap buffer overflow
- A buffer overflow inside the pool of memory a program allocates dynamically while running. Attackers exploit a heap overflow in a browser or media parser by feeding it an oversized file that overwrites neighboring objects in memory and hijacks execution.
- remote command execution
- A flaw that lets an attacker run their own code on someone else's computer over a network. This is one of the most dangerous bug classes in the news because an attacker across the internet can send a crafted request and take control of a server.
- buffer overflow
- A bug where a program writes more data into a fixed memory block than it can hold. When extra input spills past the end of a memory buffer, a buffer overflow can overwrite nearby instructions and let an attacker run their own code. Security+ objective 2.3 lists the term
- exploitation
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- proof-of-concept
- A working sample of code or steps that shows a reported security flaw can really be triggered. When researchers publish a proof-of-concept for a new bug, defenders can test their own systems, but criminals also watch for that code and adapt it for real attacks.
- binary
- Base 2, where each byte is written as 8 ones and zeros. In security news, the word binary refers either to raw data made of ones and zeros or to a compiled executable program that runs directly on a computer's processor. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- session
- An active logged-in period of communication between a user or device and a server. Once you log in to a website, the server tracks your session so you can click from page to page without retyping your password on every screen.
- protocol
- An agreed set of rules and message formats that computers follow to exchange data over a network. Every internet service relies on a network protocol such as HTTP for web pages or DNS for domain lookups, and a logic flaw in a protocol's design affects every vendor that implements it.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
Remote Code Execution With Root Privileges... Found by reading the article; these words are close to its own - Security+ 2.3 Explain various types of vulnerabilities.
"AnyDesk Vulnerability Allowing Remote Code Execution With Root Privileges..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"Security researcher has disclosed a heap buffer overflow vulnerability in AnyDesk Linux version 8.0.2, named..." Found in the opening sentences - CYBR 101 week 11: penetration testing, OSINT, MITRE ATT&CK and hacking back
"Security researcher has disclosed a heap buffer overflow vulnerability..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"AnyDesk Vulnerability Allowing Remote Code Execution With Root Privileges..." Found in the headline - CYBR 101 week 5: hashes, how passwords are stored and cracked, Linux basics
"......a heap buffer overflow vulnerability in AnyDesk Linux version 8.0.2, named AnyPwn. This vulnerability allows..." Found in the opening sentences - CYBR 101 week 7: Linux, Windows, permissions and firewalls
"......a heap buffer overflow vulnerability in AnyDesk Linux version 8.0.2, named AnyPwn. This vulnerability allows..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Analyze countermeasures and mitigations against potential exploitations of programming language weaknesses and vulnerabilities in system and elements.
"AnyDesk service typically runs with root privileges..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- AnyDesk Linux Flaw "AnyPwn" Grants Pre-Auth Root Code Execution: Full Technical Breakdown of the Heap Overflow Exploit
- AnyDesk Linux Flaw Lets Remote Attackers Execute Code as Root Without Authentication
- Researchers Publish Working Exploit for Pre-Auth AnyDesk Linux Flaw That Gives Root Access