CVE-2023-38951: Arbitrary File Write via Path Traversal in ZKTeco BioTime /base/sftpsetting/
- Vendor
- Zkteco
CVE-2023-38951 is an authenticated arbitrary file creation and overwrite vulnerability in ZKTeco BioTime 8.5.5 through 9.x before 9.0.1 (build 20240617.19506). The flaw is exposed through the /base/sftpsetting/ endpoints, where attacker-controlled input in the Username field is subject to path traversal and the SSH Key field is not properly sanitized. By submitting crafted requests, an authenticated attacker can traverse directories and write attacker-controlled content to arbitrary server-side files. Because the vulnerable functionality permits overwriting existing files as well as creating new ones, an attacker may be able to replace security-relevant or executable files. In documented exploitation scenarios, overwriting specific files can result in arbitrary code execution under the NT AUTHORITY\SYSTEM security context.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an authenticated attacker to create or overwrite arbitrary files on the BioTime server. This can directly compromise application integrity and may enable full host compromise if the attacker overwrites files that are executed by the application or operating system. Where suitable target files are reachable, the vulnerability can be escalated to arbitrary code execution with NT AUTHORITY\SYSTEM privileges, giving the attacker high-privilege execution on the underlying Windows server.
Mitigation
If you can’t patch tonight, do this now.
Until patching is completed, restrict access to BioTime administrative and SFTP-related endpoints to only trusted administrators and management networks, and eliminate unnecessary external exposure. Minimize the number of accounts able to access the affected functionality, enforce strong authentication, and monitor for anomalous requests to /base/sftpsetting/ endpoints and unexpected file modifications on the server. File integrity monitoring and application allowlisting can reduce the likelihood that arbitrary file overwrite is converted into code execution.
Remediation
Patch, then assume compromise.
Upgrade ZKTeco BioTime to version 9.0.1 build 20240617.19506 or later, as versions 8.5.5 through 9.x prior to that release are affected. Validate that all BioTime instances, including internet-exposed and internally accessible deployments, are updated. After patching, review the server for unauthorized file creation or modification associated with the /base/sftpsetting/ functionality and investigate for possible post-exploitation activity if the system was exposed to untrusted authenticated users.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-38951 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2023-38951?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2023-38951.
- Is there a patch for CVE-2023-38951?
- Upgrade ZKTeco BioTime to version 9.0.1 build 20240617.19506 or later, as versions 8.5.5 through 9.x prior to that release are affected. Validate that all BioTime instances, including internet-exposed and internally accessible deployments, are updated.
- What products are affected by CVE-2023-38951?
- Zkteco Biotime.
- How severe is CVE-2023-38951?
- CVE-2023-38951 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 3.3% (89th percentile) as of Oct 16, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.