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-2024-57040

CVE-2024-57040: TP-Link TL-WR845N Auth Bypass Vulnerability

CVE-2024-57040 is an authentication bypass flaw in TP-Link TL-WR845N firmware caused by a hardcoded root password. Attackers can gain unauthorized access through firmware analysis or brute force attacks.

Published: April 1, 2026

CVE-2024-57040 Overview

CVE-2024-57040 is a critical hardcoded credentials vulnerability affecting TP-Link TL-WR845N wireless routers. The vulnerability exists because the firmware contains a hardcoded password for the root account, which attackers can extract by analyzing the firmware binary or through brute force attacks with physical access to the device. This type of vulnerability (CWE-798: Use of Hard-coded Credentials) represents a fundamental security design flaw that cannot be mitigated through user configuration changes.

Critical Impact

Attackers who obtain the hardcoded root credentials can gain complete administrative control over affected TP-Link TL-WR845N routers, potentially compromising all network traffic and connected devices.

Affected Products

  • TP-Link TL-WR845N(UN)_V4 Firmware Version 200909
  • TP-Link TL-WR845N(UN)_V4 Firmware Version 190219
  • TP-Link TL-WR845N(UN)_V4 Firmware Version 201214

Discovery Timeline

  • 2025-02-26 - CVE-2024-57040 published to NVD
  • 2025-04-07 - Last updated in NVD database

Technical Details for CVE-2024-57040

Vulnerability Analysis

This vulnerability stems from a hardcoded credential issue in the TP-Link TL-WR845N router firmware. The root account password is embedded directly within the firmware binary, making it discoverable through firmware analysis techniques. Security researchers documented this vulnerability by extracting and analyzing the hashed password from the router's firmware image.

The presence of hardcoded credentials in IoT devices like routers is particularly dangerous because it provides attackers with a persistent, unchangeable authentication bypass. Unlike user-configurable passwords that can be updated, hardcoded credentials remain constant across all devices running the same firmware version, creating a single point of failure for the entire product line.

Root Cause

The root cause is the use of hardcoded credentials (CWE-798) in the firmware development process. The root account password was embedded directly into the firmware binary during the development phase, likely for debugging or manufacturing purposes, and was not removed before production release. This practice violates secure development principles that mandate unique, configurable credentials for privileged accounts.

Attack Vector

The attack vector for CVE-2024-57040 operates through two primary methods:

Firmware Analysis Attack:

  1. Attacker downloads the publicly available firmware update file from TP-Link's website
  2. Firmware image is extracted and analyzed using tools like binwalk
  3. The /etc/passwd or /etc/shadow equivalent is located within the filesystem
  4. The hashed root password is extracted and subjected to offline cracking
  5. Once cracked, the plaintext password works on all devices running affected firmware versions

Physical Access Attack:

  1. Attacker gains physical access to the router
  2. Serial console or JTAG interface is used to access the system
  3. Brute force attack is conducted against the root account
  4. Successful authentication grants full administrative control

The vulnerability allows network-based exploitation once credentials are known, as the root account can authenticate over SSH or other management interfaces if enabled.

Detection Methods for CVE-2024-57040

Indicators of Compromise

  • Unexpected root-level login attempts or sessions on affected TP-Link routers
  • Configuration changes made outside of normal administrative windows
  • Modified DNS settings redirecting traffic to unknown servers
  • Unauthorized firmware modifications or downgrade attempts
  • Unusual outbound connections from the router to unknown external IP addresses

Detection Strategies

  • Monitor network traffic for SSH or Telnet connections to TP-Link routers from unauthorized sources
  • Implement network segmentation to isolate management interfaces from untrusted networks
  • Deploy intrusion detection systems (IDS) rules to alert on authentication attempts to router management interfaces
  • Audit firmware versions across all TP-Link TL-WR845N devices in the environment

Monitoring Recommendations

  • Enable logging on all TP-Link router management interfaces where possible
  • Centralize logs from network infrastructure devices to a SIEM platform
  • Create alerts for any root account authentication events on affected devices
  • Monitor for firmware extraction or analysis tools on endpoint systems that may indicate reconnaissance activity

How to Mitigate CVE-2024-57040

Immediate Actions Required

  • Identify all TP-Link TL-WR845N V4 routers in your environment and verify firmware versions
  • Disable remote management interfaces (SSH, Telnet, HTTP/HTTPS management) from untrusted networks
  • Implement network segmentation to restrict access to router management interfaces
  • Consider replacing affected devices with hardware from vendors that follow secure credential management practices
  • Monitor TP-Link's security advisories for potential firmware updates addressing this vulnerability

Patch Information

As of the last NVD update on 2025-04-07, no official patch has been released by TP-Link to address this vulnerability. The affected firmware versions include 190219, 200909, and 201214. Organizations should check TP-Link's official support page for any security updates and subscribe to their security notification channels.

For additional technical analysis of the hardcoded password issue, see the IIITA IoT Hashed Password Analysis documentation.

Workarounds

  • Disable all remote management access to affected routers and only allow console-based administration
  • Place affected routers behind a firewall that restricts inbound management connections to authorized IP addresses only
  • Implement 802.1X or MAC filtering to limit which devices can connect to the router's management network
  • Consider deploying a VPN solution to secure management traffic if remote administration is required
  • Replace affected devices with models that do not contain hardcoded credentials
bash
# Network isolation example using iptables on a gateway device
# Block external access to router management ports

# Block SSH access to router from external networks
iptables -A FORWARD -d 192.168.1.1 -p tcp --dport 22 -j DROP

# Block Telnet access to router from external networks
iptables -A FORWARD -d 192.168.1.1 -p tcp --dport 23 -j DROP

# Block HTTP/HTTPS management access from external networks
iptables -A FORWARD -d 192.168.1.1 -p tcp --dport 80 -j DROP
iptables -A FORWARD -d 192.168.1.1 -p tcp --dport 443 -j DROP

# Allow management only from trusted admin workstation
iptables -A FORWARD -s 192.168.1.100 -d 192.168.1.1 -p tcp --dport 80 -j ACCEPT

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechTp Link

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability8.50%

  • 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-798
  • Technical References
  • IIITA IoT Hashed Password Analysis
  • Related CVEs
  • CVE-2026-34121: TP-Link Tapo C520WS Auth Bypass Flaw

  • CVE-2025-15517: TP-Link Archer Auth Bypass Vulnerability

  • CVE-2026-0653: TP-Link Tapo C260 Auth Bypass Vulnerability

  • CVE-2026-5363: TP-Link Archer C7 Information Disclosure
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