CVE-2025-58753: copyparty Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-pxvw-4w88-6x95
CWE-552 CWE-862
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-58753
GHSA Identifier GHSA-pxvw-4w88-6x95
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-552: Files or Directories Accessible to External Parties
Affected Product copyparty
Package Ecosystem PyPI
Published Date
Last Updated

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.

copyparty fixed: 1.19.8
pip install copyparty>=1.19.8
Verify Direct and Transitive Dependencies

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

There was a missing permission-check in the shares feature (the `shr` global-option). When 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. It was not possible to descend into subdirectories in this manner; only the sibling files were accessible. This issue did not affect filekeys or dirkeys.

CVE-2025-58753 Affected copyparty Versions

1 component(s)
Fixed Versions:
1.19.8
Product / Package Ecosystem Affected Versions Fixed Version
copyparty
PyPI
< 1.19.8
1.19.8

References

Frequently Asked Questions

What is CVE-2025-58753?
CVE-2025-58753 is a security vulnerability in copyparty involving Sharing a single file does not fully restrict access to other files in source folder under CWE-552: Files or Directories Accessible to External Parties.
Which copyparty versions are affected?
Affected versions include releases prior to 1.19.8 across affected packages: copyparty.
What version fixes CVE-2025-58753?
Upgrading to 1.19.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is copyparty affected?
Yes, copyparty is affected in releases prior to 1.19.8. Upgrade your dependency to 1.19.8 or later.
What CWE is associated with CVE-2025-58753?
CVE-2025-58753 is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check PyPI dependencies for CVE-2025-58753?
Run the dependency tree command: 'pip show copyparty'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}