Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2023-38951: Arbitrary File Write via Path Traversal in ZKTeco BioTime /base/sftpsetting/

Published Aug 3, 2023 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS3.3%89th percentile
CISA KEVNoNot listed
In the wildReported2 exploitation records in Mallory
Vendor
Zkteco
IdentifiersCVE-2023-38951CWE-22 · Improper Limitation of a Pathname…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
ZktecoBiotimeapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.