# CVE-2018-19945: Improper Limitation of a Pathname to a Restricted Directory in QTS

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.12% (percentile 66, 2026-11-26)
- **CWE:** CWE-20, CWE-22, CWE-73, CWE-284
- **Published:** 2020-12-31T16:33:27.917Z
- **Modified:** 2026-06-17T01:50:09.690Z

## Who should check

- Anyone running QNAP Systems Inc. QTS \>= unspecified, \< 4.3.6.0895
- Anyone running QNAP Systems Inc. QTS \>= unspecified, \< 4.3.4.0899
- Anyone running QNAP Systems Inc. QTS (versions: see the vendor advisory)

## Description

A vulnerability has been reported to affect earlier QNAP devices running QTS 4.3.4 to 4.3.6. Caused by improper limitations of a pathname to a restricted directory, this vulnerability allows for renaming arbitrary files on the target system, if exploited. QNAP have already fixed this vulnerability in the following versions: QTS 4.3.6.0895 build 20190328 (and later) QTS 4.3.4.0899 build 20190322 (and later) This issue does not affect QTS 4.4.x or QTS 4.5.x.

## Affected and fixed versions

- QNAP Systems Inc. QTS: \>= unspecified, \< 4.3.6.0895 (cvelist)
- QNAP Systems Inc. QTS: \>= unspecified, \< 4.3.4.0899 (cvelist)
- QNAP Systems Inc. QTS: see vendor advisory (cvelist)

## Mitigation

- Upgrade QTS to 4.3.6.0895 or later.
- Upgrade QTS to 4.3.4.0899 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-19945. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-19945.md
Affected: QNAP Systems Inc. QTS >= unspecified, < 4.3.6.0895; QNAP Systems Inc. QTS >= unspecified, < 4.3.4.0899; QNAP Systems Inc. QTS
Fixed in: QNAP Systems Inc. QTS 4.3.6.0895, QNAP Systems Inc. QTS 4.3.4.0899

Steps:
1. Search this machine and project for QNAP Systems Inc. QTS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-19945 being exploited?

There is no confirmed exploitation: CVE-2018-19945 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.12% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-19945?

Critical: CVSS 9.1 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2018-19945?

QNAP Systems Inc. QTS \>= unspecified, \< 4.3.6.0895; QNAP Systems Inc. QTS \>= unspecified, \< 4.3.4.0899; QNAP Systems Inc. QTS.

### Is there a fix for CVE-2018-19945?

Yes. Fixed in QNAP Systems Inc. QTS 4.3.6.0895, QNAP Systems Inc. QTS 4.3.4.0899. Upgrade QTS to 4.3.6.0895 or later. Upgrade QTS to 4.3.4.0899 or later.

### How do I check if I'm affected by CVE-2018-19945?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.qnap.com/zh-tw/security-advisory/qsa-20-21>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-19945>

HTML: <https://flawdb.com/CVE-2018-19945> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-19945>
