# CVE-2025-1340: TOTOLINK X18 cstecgi.cgi setPasswordCfg stack-based overflow

- Severity: High 8.7 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 17.5%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-02-16T13:31:05.705Z
- Modified: 2026-06-17T08:38:57.227Z
- Weaknesses: CWE-119, CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulDB

## Description

A vulnerability classified as critical has been found in TOTOLINK X18 9.1.0cu.2024_B20220329. Affected is the function setPasswordCfg of the file /cgi-bin/cstecgi.cgi. The manipulation as part of String leads to stack-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

(As written by CVE List.)

## Affected

- TOTOLINK X18: 9.1.0cu.2024_B20220329
- totolink x18_firmware: 9.1.0cu.2024_b20220329

## Every score

- VulDB: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulDB: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- VulDB: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- VulDB: CVSS:2.0 9.0 Critical `AV:N/AC:L/Au:S/C:C/I:C/A:C`

## References

- <https://github.com/stevenchen0x01/CVE2/blob/main/stack_overflow.md> (exploit, broken-link)
- <https://vuldb.com/?id.295956> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.295956> (permissions-required, signature, vdb-entry)
- <https://vuldb.com/?submit.495368> (third-party-advisory, vdb-entry)
- <https://www.totolink.net/> (product)

## Sources

- CVE List: [CVE-2025-1340](https://www.cve.org/CVERecord?id=CVE-2025-1340), CVE Terms of Use, modified 2025-02-19
- NVD: [CVE-2025-1340](https://nvd.nist.gov/vuln/detail/CVE-2025-1340), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-1340 · Whole record: https://cve.day/CVE-2025-1340.json · Rebuilt by cve.day 2026-11-25T22:58:54.124Z
