# CVE-2023-31710: Memory corruption in n/a

> A buffer overflow in TP-Link Archer AX21 routers allows attackers to execute arbitrary code, posing a critical risk to network security.

- **Severity:** Critical 9.8 (`CVSS:3.1/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:** 1 Aug 2023
- **Updated:** 21 Oct 2024
- **Also known as:** GHSA-2rpw-3w88-97r6

## What is CVE-2023-31710?

CVE-2023-31710 is a critical memory corruption vulnerability in n/a, published on 1 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

TP-Link Archer AX21(US)_V3_1.1.4 Build 20230219 and AX21(US)_V3.6_1.1.4 Build 20230219 are vulnerable to Buffer Overflow.

Weakness: CWE-787 (Out-of-bounds Write)

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

It affects 1 product.


Products: Tp-Link Archer Ax21 Firmware.

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

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

## Is CVE-2023-31710 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-31710 exists.

## Other vulnerabilities in n/a

- [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-27359](https://insights.sbomify.com/CVE-2023-27359/): TP-Link AX1800 hotplugd Firewall Rule Race Condition Vulnerability (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-31710 and fix it if it is affected.

What it is: CVE-2023-31710 is a critical memory corruption vulnerability in n/a, published on 1 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-31710 exists.

Affected product: n/a. 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-31710/ (Markdown: https://insights.sbomify.com/CVE-2023-31710/index.md)
```

## Sources

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

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