# CVE-2023-27359: TP-Link AX1800 hotplugd Firewall Rule Race Condition Vulnerability

> Remote attackers can bypass firewall rules to access LAN services and potentially execute arbitrary code as root on TP-Link Archer AX21 routers.

- **Severity:** Critical 9.8 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 3 May 2024
- **Updated:** 25 Sep 2024
- **Also known as:** GHSA-h688-4pc2-376f

## What is CVE-2023-27359?

CVE-2023-27359 is a critical vulnerability in TP-Link AX1800, published on 3 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

TP-Link AX1800 hotplugd Firewall Rule Race Condition Vulnerability. This vulnerability allows remote attackers to gain access to LAN-side services on affected installations of TP-Link Archer AX21 routers. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the hotplugd daemon. The issue results from firewall rule handling that allows an attacker access to resources that should be available to the LAN interface only. An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the root user.
. Was ZDI-CAN-19664.

Weakness: CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization)

## Which versions are affected by CVE-2023-27359?

It affects 1 product.


Products: Tp-Link Archer Ax21 Firmware.

## How do I fix CVE-2023-27359?

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

## Is CVE-2023-27359 being exploited?

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

## Other vulnerabilities in TP-Link AX1800

- [CVE-2023-1389](https://insights.sbomify.com/CVE-2023-1389/): TP-Link Archer AX-21 Command Injection (high 8.8, exploited in the wild)
- [CVE-2023-31710](https://insights.sbomify.com/CVE-2023-31710/): Memory corruption in n/a (critical 9.8)
- [CVE-2023-27332](https://insights.sbomify.com/CVE-2023-27332/): TP-Link Archer AX21 tdpServer Logging Stack-based Buffer Overflow Remote Code Execution Vulnerability (high 8.8)
- [CVE-2023-27346](https://insights.sbomify.com/CVE-2023-27346/): TP-Link AX1800 Firmware Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability (high 8.8)
- [CVE-2023-27333](https://insights.sbomify.com/CVE-2023-27333/): TP-Link Archer AX21 tmpServer Command 0x422 Stack-based Buffer Overflow Remote Code Execution Vulnerability (medium 6.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-27359 and fix it if it is affected.

What it is: CVE-2023-27359 is a critical vulnerability in TP-Link AX1800, published on 3 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-27359 in the wild and no public exploit code.

Affected product: TP-Link AX1800. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-27359/ (Markdown: https://insights.sbomify.com/CVE-2023-27359/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-27359
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-27359
- OSV: https://osv.dev/vulnerability/CVE-2023-27359

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-27359/
Summaries are generated and may contain mistakes; the official description above is the record.
