Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-25064

CVE-2022-25064: TP-Link TL-WR840N Firmware RCE Flaw

CVE-2022-25064 is a remote code execution vulnerability in TP-Link TL-WR840N firmware affecting the oal_wan6_setIpAddr function. This critical flaw allows attackers to execute arbitrary code on affected devices.

Published: February 11, 2026

CVE-2022-25064 Overview

CVE-2022-25064 is a critical remote code execution (RCE) vulnerability discovered in the TP-LINK TL-WR840N(ES)_V6.20_180709 router firmware. The vulnerability exists within the oal_wan6_setIpAddr function, which fails to properly sanitize user-supplied input, allowing unauthenticated attackers to execute arbitrary commands on the affected device with root privileges.

Critical Impact

This vulnerability enables unauthenticated remote attackers to execute arbitrary code on vulnerable TP-LINK routers, potentially leading to complete device compromise, network infiltration, and use of the device in botnet operations.

Affected Products

  • TP-LINK TL-WR840N Firmware Version 6.20_180709
  • TP-LINK TL-WR840N Hardware (ES variant)
  • TP-LINK TL-WR840N_V6 Series Routers

Discovery Timeline

  • February 25, 2022 - CVE-2022-25064 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-25064

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The vulnerable function oal_wan6_setIpAddr processes IPv6 address input without adequate validation or sanitization before passing it to system commands. An attacker can craft malicious input containing shell metacharacters or command separators that, when processed by the function, result in arbitrary command execution on the underlying Linux-based operating system of the router.

The network-accessible nature of this vulnerability means that any attacker who can reach the router's management interface can exploit this flaw without requiring any authentication credentials. Successful exploitation grants the attacker complete control over the router with root-level privileges, as embedded device services typically run with elevated permissions.

Root Cause

The root cause of CVE-2022-25064 lies in the oal_wan6_setIpAddr function's failure to implement proper input validation and sanitization for IPv6 address parameters. When the function constructs system commands using user-supplied data, it does not escape or filter special characters such as semicolons (;), pipes (|), backticks, or other shell metacharacters. This allows an attacker to break out of the intended command context and inject additional malicious commands.

Attack Vector

The attack vector is network-based, requiring no prior authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Accessing the router's web management interface (typically on the local network, or exposed to the internet if misconfigured)
  2. Submitting a specially crafted request to the vulnerable endpoint that handles IPv6 address configuration
  3. Including shell metacharacters within the IPv6 address input field
  4. The malicious payload is passed to oal_wan6_setIpAddr and subsequently executed with root privileges

The vulnerability manifests when user-controlled data in the IPv6 address input field is passed unsanitized to system shell commands. Attackers can inject command separators followed by arbitrary commands to achieve remote code execution. For detailed technical analysis of the exploitation mechanism, refer to the vulnerability analysis documentation.

Detection Methods for CVE-2022-25064

Indicators of Compromise

  • Unexpected outbound network connections from the router to unknown external IP addresses
  • Modified router configuration settings or unauthorized administrative accounts
  • Unusual processes running on the router that are not part of standard firmware
  • Network traffic anomalies suggesting the router is participating in botnet activities or scanning operations

Detection Strategies

  • Monitor web server logs on the router for suspicious requests containing shell metacharacters in IPv6 address parameters
  • Implement network intrusion detection rules to identify command injection patterns in HTTP traffic to router management interfaces
  • Deploy behavioral analysis to detect anomalous router activity such as unexpected DNS queries or outbound connections
  • Regularly compare router configuration against known-good baselines to detect unauthorized modifications

Monitoring Recommendations

  • Enable logging on network firewalls to track all traffic to and from router management interfaces
  • Implement alerting for any external access attempts to router administration ports
  • Monitor for firmware integrity changes using hash verification where supported
  • Track DHCP and DNS changes that may indicate router compromise

How to Mitigate CVE-2022-25064

Immediate Actions Required

  • Restrict access to the router's web management interface to trusted IP addresses only
  • Disable remote administration features if not absolutely required
  • Place the router behind a properly configured firewall that blocks external access to management ports
  • Monitor the TP-LINK support site for firmware updates addressing this vulnerability

Patch Information

At the time of publication, users should check the TP-Link Official Site for updated firmware releases that address CVE-2022-25064. It is critical to update to the latest available firmware version for the TL-WR840N(ES)_V6 device as soon as a patch becomes available. Firmware version 6.20_180709 and potentially earlier versions are confirmed vulnerable.

Workarounds

  • Disable the WAN IPv6 configuration interface if IPv6 functionality is not required
  • Implement network segmentation to isolate the router's management interface from untrusted networks
  • Use a VPN to access router administration rather than exposing the interface directly
  • Consider replacing the vulnerable device with a model that receives regular security updates
bash
# Network access restriction example (firewall rule)
# Block external access to router management interface
iptables -A INPUT -p tcp --dport 80 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP
iptables -A INPUT -p tcp --dport 443 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTp Link Tl Wr840n

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability63.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • Router.com Home Page

  • TP-Link Official Site

  • Notion CVE-2021-XXXX Analysis
  • Latest CVEs
  • CVE-2026-25874: LeRobot RCE Vulnerability

  • CVE-2026-41272: Flowise LLM Builder SSRF Vulnerability

  • CVE-2026-41268: Flowise RCE Vulnerability

  • CVE-2026-41265: Flowise Airtable Agent RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English