CVE-2024-57040 Hardcoded credentials in n/a

Critical 9.8 Published Updated

Attackers can gain root access to TP-Link routers by using hardcoded credentials found in firmware or via brute force.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-57040?

CVE-2024-57040 is a critical vulnerability in n/a, published on 26 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

TP-Link TL-WR845N devices with firmware TL-WR845N(UN)_V4_200909 and TL-WR845N(UN)_V4_190219 was discovered to contain a hardcoded password for the root account which can be obtained by analyzing downloaded firmware or via a brute force attack through physical access to the router. NOTE: The supplier has stated that this issue was fixed in firmware versions 250401 or later.

Weakness: CWE-798

Which versions are affected by CVE-2024-57040?

It affects 1 product.

Products include Tp-Link Tl-Wr845n Firmware.

How do I fix CVE-2024-57040?

No fix has been published for CVE-2024-57040 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-57040 being exploited?

There is no known exploitation of CVE-2024-57040 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-mjhr-3845-j2r5.

Is CVE-2024-57040 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free