CVE-2025-58753: copyparty Remote Code Execution Vulnerability
MODERATECVE-2025-58753 is a MODERATE remote code execution vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting copyparty libraries in the PyPI ecosystem. The issue involves sharing a single file does not fully restrict access to other files in source folder. Remediation is available by upgrading affected packages to version 1.19.8.
CVE-2025-58753 at a Glance
How to Fix CVE-2025-58753
To remediate this vulnerability, upgrade all affected copyparty dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install copyparty>=1.19.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show copyparty
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-58753, inspect your installed packages using pip:
pip show copyparty
Analyze the terminal output to locate any version of copyparty in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.19.8), your application is affected.
Note: The pip show copyparty command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In copyparty, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-58753 Affected copyparty Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
copyparty
|
PyPI |
< 1.19.8
|
1.19.8
|
References
Frequently Asked Questions
What is CVE-2025-58753?
Which copyparty versions are affected?
What version fixes CVE-2025-58753?
Is copyparty affected?
What CWE is associated with CVE-2025-58753?
How can I check PyPI dependencies for CVE-2025-58753?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pxvw-4w88-6x95",
"modified" : "2025-09-10T21:08:10Z",
"published" : "2025-09-09T15:12:17Z",
"aliases" : [ "CVE-2025-58753" ],
"summary" : "copyparty: Sharing a single file does not fully restrict access to other files in source folder",
"details" : "There was a missing permission-check in the shares feature (the `shr` global-option).\n\nWhen a share is created for just one file inside a folder, it was possible to access the other files inside that folder by guessing the filenames.\n\nIt was not possible to descend into subdirectories in this manner; only the sibling files were accessible.\n\nThis issue did not affect filekeys or dirkeys.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "copyparty"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.19.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/9001/copyparty/security/advisories/GHSA-pxvw-4w88-6x95"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-58753"
}, {
"type" : "WEB",
"url" : "https://github.com/9001/copyparty/commit/e0a92ba72d46074209a9c304eb2a01ca0429e60c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/9001/copyparty"
}, {
"type" : "WEB",
"url" : "https://github.com/9001/copyparty/releases/tag/v1.19.8"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-552", "CWE-862" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-09T15:12:17Z",
"nvd_published_at" : "2025-09-09T20:15:49Z"
}
}