Skip to navigation

Threat reportVulnerabilityTL-2026-3153

Working Public Exploit ("AnyPwn") for Pre-Auth AnyDesk Linux Heap Overflow Yielding Root Access

highACTIVE

V12 Security published a working exploit named AnyPwn on GitHub on 2026-10-08 for a pre-authentication heap buffer overflow in the AnyDesk Linux session protocol's mode-5 stream packet handler, achieving command execution as root over direct TCP connections to port 7070.

Key facts

IdentifiersTL-2026-3153, CVE-2025-27918
Also known asAnyPwn
SeverityHIGH
EPSSCVE-2025-27918: 0.5% (43.1th percentile)
Affected productsAnyDesk Software GmbH AnyDesk (Linux client/service)
Weaknesses (CWE)CWE-190, CWE-122, CWE-787
MalwareAnyDesk
ToolsAnyPwn
MITRE ATT&CK techniquesT1021 Remote Services, T1046 Network Service Discovery, T1059.004 Command and Scripting Interpreter: Unix Shell, T1068 Exploitation for Privilege Escalation, T1133 External Remote Services, T1190 Exploit Public-Facing Application, T1203 Exploitation for Client Execution, T1210 Exploitation of Remote Services, T1489 Service Stop, T1499.004 Endpoint Denial of Service, T1505 Server Software Component, T1588 Obtain Capabilities
MotivationUNKNOWN
Target sectorstechnology, managed-service-providers, government administration, finance, health, critical-infrastructure
Target regionsGlobal
Detection rules9 (1 shown free)
Sources5 cited sources

Detection coverage

As of 2026-10-12, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3153 across Splunk SPL, Microsoft KQL and Sigma, covering 15 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: AnyPwn Post-Exploitation — Root Shell or Interpreter Spawned by AnyDesk Service

Detects the AnyDesk Linux service (ad_svc) running as root and spawning a shell or scripting interpreter. This is the direct outcome of a successful AnyPwn exploit, which gets root command execution before any session is approved. The documented PoC runs a command such as id>/tmp/anypwn.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1059.004, T1203, T1068
  • Data sources: sysmon_for_linux, microsoft_defender_for_endpoint
  • Severity: critical
  • Confidence: high

Splunk SPL

index=linux sourcetype=sysmon:linux EventCode=1 (ParentImage="*/ad_svc" OR ParentImage="*/anydesk") User=root Image IN ("*/sh","*/bash","*/dash","*/zsh","*/python*","*/perl")
| table _time host User ParentImage ParentCommandLine Image CommandLine

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ('ad_svc', 'anydesk') and AccountName == 'root'
| where FileName in~ ('sh', 'bash', 'dash', 'zsh', 'perl') or FileName startswith 'python'
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine

Sigma

title: Shell or Interpreter Spawned by AnyDesk Linux Service as Root
id: c18a5f96-72d3-4e0b-a4f1-39b8d5e60c72
status: experimental
description: Detects a shell or scripting interpreter launched as root by the AnyDesk Linux service. Indicates possible successful AnyPwn pre-auth heap overflow exploitation giving root command execution.
references:
  - https://thehackernews.com/2026/10/researchers-publish-working-exploit-for.html
  - https://github.com/v12-security/pocs/tree/main/anydesk
author: Threadlinqs Team
date: 2026-10-09
tags:
  - attack.execution
  - attack.t1059.004
  - attack.t1203
  - attack.privilege-escalation
  - attack.t1068
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith:
      - '/ad_svc'
      - '/anydesk'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/zsh'
      - '/perl'
      - '/python'
      - '/python3'
  selection_user:
    User: 'root'
  condition: all of selection_*
falsepositives:
  - AnyDesk helper scripts invoked by the vendor package during install or upgrade
level: high

Known false positives:

  • AnyDesk package install or upgrade scripts that call a shell from the service
  • Vendor-supplied wrapper scripts launched by ad_svc

Tuning notes: Confirm the actual binary name on your hosts (ad_svc vs anydesk --service) and adjust the parent match. Exclude known package-manager invocations by CommandLine after baselining. Treat any other hit as an incident.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • AnyPwn Exploitation — Inbound Connection Burst to AnyDesk Listener on Linux Endpoint · unlock with TL Creds
  • AnyPwn Post-Exploitation — Persistence File Writes by AnyDesk Service or Its Children · unlock with TL Creds
  • AnyPwn Post-Exploitation — Network Tooling Launched by AnyDesk Service for Callback or Lateral Movement · unlock with TL Creds
  • AnyDesk TCP/7070 Reachable From Non-Private Source — Exposure and Exploit Attempt · unlock with TL Creds
  • AnyPwn Exploit Tooling Artifacts — [indicator] Execution or [indicator] Marker · unlock with TL Creds
  • Vulnerable [indicator] Binary Executing (SHA-256 Match) · unlock with TL Creds
  • AnyPwn Exploitation — Connection Burst to AnyDesk TCP/7070 (Firewall) · unlock with TL Creds
  • AnyPwn Failed Exploitation — Repeated AnyDesk Service Crash or Restart · unlock with TL Creds

Indicators of compromise

As of 2026-10-12, Threadlinqs Intelligence tracks 15 indicators of compromise for TL-2026-3153.

Sample indicators (2 of 15)

  • URL: hxxps://github[.]com/v12-security/pocs/tree/main/anydesk
  • File hash: 62ee04ad48dc039dd9c927f998e56143c87a9c5e12d28654f78c7f6340394f5a

Defanged, TLP:CLEAR. Full set of 15 indicators: unlock with TL Creds.

15 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

The exploit is probabilistic and specific to AnyDesk Linux build 8.0.2; the defect is fixed in 8.0.3, and Windows and macOS clients are not affected.

AnyDesk for Linux versions up to and including 8.0.2 contain a pre-authentication heap buffer overflow in the mode-5 stream packet handler of the session protocol (reported by researcher Rick de Jager of the V12 Security team). The handler derives the size of its backing heap allocation from an attacker-controlled declared payload length plus a fixed 16-byte object header, using unchecked 32-bit integer arithmetic. An attacker-chosen declared length near the top of the 32-bit range causes this sum to wrap to a very small value, so the handler allocates a tiny buffer (0-15 bytes) while continuing to treat the original, much larger declared length as the amount of attacker data to copy into it, corrupting adjacent heap memory. AnyPwn weaponizes this by first heap-spraying roughly 100 persistent objects across a range of size classes (approximately 0x1 to 0x17f1 bytes) over parallel connections to normalize heap layout and increase the odds that the undersized allocation lands adjacent to a chosen victim object, then triggers the overflow to corrupt that object. A second, ROP-oriented spray phase allocates about twenty 0xf000-byte objects containing gadget-sled payloads to increase the chance that corrupted pointers/data are redirected into attacker-supplied code reuse chains, enabling arbitrary command execution running as root -- all before the connecting session is approved by a user on the target. Exploitation requires no authentication and no user interaction beyond the service listening on TCP/7070, but is probabilistic: if the overwritten object is not adjacent to the corrupted buffer, or heap layout otherwise does not match expectations, the AnyDesk service process simply crashes (denial of service) rather than yielding code execution, and offsets are build-specific to the tested 8.0.2 Linux binary (SHA-256 62ee04ad48dc039dd9c927f998e56143c87a9c5e12d28654f78c7f6340394f5a on a Linux Mint 22.3 / kernel 6.14.0-37-generic test target); other builds require different offset values and were not demonstrated by the public PoC. V12 Security privately reported the issue to AnyDesk on 2026-06-22; AnyDesk acknowledged on 2026-06-23 and shipped a fix in version 8.0.3 in June 2026 without a public security advisory, and later pulled the 8.0.2 installer from its download page once the PoC was published. No CVE has been assigned to this flaw as of 2026-10-09; it is distinct from the previously disclosed CVE-2025-27918, an unrelated integer-overflow/heap-overflow in AnyDesk's identity user-image/Discovery-feature handling (fixed across platforms in versions released around April 2025, including Linux 7.0.0), which the source article mentions only for contrast. The public exploit release (2026-10-08) and subsequent reporting (The Hacker News, 2026-10-09) state no confirmed in-the-wild exploitation of this specific flaw; the primary near-term risk is opportunistic scanning and exploitation of internet- or network-reachable AnyDesk Linux TCP/7070 listeners now that a working PoC and crash/RCE methodology are public. Vendor- and researcher-recommended mitigation is to upgrade to AnyDesk Linux 8.0.3 or later and, where immediate patching is not possible, to restrict network reachability of TCP/7070 to trusted hosts only.

MITRE ATT&CK techniques by tactic:

Lateral Movement

T1021 Remote Services; T1210 Exploitation of Remote Services

Discovery

T1046 Network Service Discovery

Execution

T1059.004 Command and Scripting Interpreter: Unix Shell; T1203 Exploitation for Client Execution

Privilege Escalation

T1068 Exploitation for Privilege Escalation

Initial Access

T1133 External Remote Services; T1190 Exploit Public-Facing Application

Impact

T1489 Service Stop; T1499.004 Endpoint Denial of Service

Persistence

T1505 Server Software Component

Resource Development

T1588 Obtain Capabilities

Remediation

Patches

  • Upgrade AnyDesk Linux to version 8.0.3 or later (fix released June 2026)

Immediate actions

  • Restrict network access to AnyDesk Linux TCP/7070 to trusted/management hosts only via firewall or security group rules
  • Inventory all Linux hosts running AnyDesk and identify any still on 8.0.2 or earlier
  • Remove or disable the AnyDesk Linux service on internet-facing hosts where remote access is not strictly required

Workarounds

  • Firewall TCP/7070 so only trusted administrative networks can reach the AnyDesk Linux listener
  • Temporarily stop the AnyDesk service on Linux hosts where it is not actively required until patched

Longer-term hardening

  • Deploy EDR/host monitoring for anomalous child processes spawned by the AnyDesk service (ad_svc) running as root
  • Establish a patch-management SLA for remote-access/remote-support software given its historically high-value attack-surface profile
  • Network-segment remote-access tooling away from sensitive infrastructure

Affected and fixed versions

  • AnyDesk Software GmbH — AnyDesk (Linux client/service)
    Vulnerable versions: 8.0.2; 8.0.1 and earlier (unconfirmed per source)
    Fixed in: 8.0.3; 8.1.0 (latest, supersedes fix)

Timeline

Last updated · 2 updates · revalidated 2× · latest source

  • Unrelated prior AnyDesk flaw CVE-2025-27918 (identity/user-image heap overflow) patched across platforms, including Linux 7.0.0; cited by reporting only for contrast with the new mode-5 issue.
  • Rick de Jager of V12 Security privately reports the AnyDesk Linux mode-5 stream packet heap overflow to AnyDesk.
  • AnyDesk releases Linux 8.0.3 (per Neowin release listing); the changelog describes the fix only as 'fixed a bug that could lead to a crash', with no CVE or security advisory.
  • AnyDesk acknowledges the report.
  • AnyDesk ships a fix in Linux client/service version 8.0.3 (June 2026), without a public security advisory.
  • Additional security-blog coverage (Undercode Testing) describes the flaw's exposure scope and urges patch verification.
  • AnyDesk removes the 8.0.2 Linux installer from its public download page following PoC publication.
  • V12 Security publishes the AnyPwn working exploit on GitHub (v12-security/pocs, anydesk directory), targeting AnyDesk Linux 8.0.2.
  • AnyDesk states the vulnerability as exploited is limited to direct connections on Linux, not relay-mediated sessions; V12 showed via Frida that the trigger reaches the handler over relays but did not demonstrate full RCE there.
  • The Hacker News publishes coverage of the AnyPwn exploit, surfacing it to the broader security community.
  • GBHackers publishes a technical summary of the AnyPwn flaw and PoC, including direct-vs-relay exploitation caveats.

Update history

Sources cited

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 5 sources; published ; last updated .

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats