CVE-2025-54796: Copyparty Denial of Service Vulnerability
HIGHCVE-2025-54796 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Copyparty libraries in the PyPI ecosystem. The issue involves copyparty allows regex denial of service (redos) in the upload listing. Remediation is available by upgrading affected packages to version 1.18.9.
CVE-2025-54796 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2025-54796
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.18.9
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-54796, 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.18.9), 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-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. 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-54796 Affected Copyparty Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
copyparty
|
PyPI |
< 1.18.9
|
1.18.9
|
References
Frequently Asked Questions
What is CVE-2025-54796?
Which Copyparty versions are affected?
What version fixes CVE-2025-54796?
Is copyparty affected?
What is the CVSS score of CVE-2025-54796?
What CWE is associated with CVE-2025-54796?
How can I check PyPI dependencies for CVE-2025-54796?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5662-2rj7-f2v6",
"modified" : "2025-08-04T15:22:23Z",
"published" : "2025-08-04T15:22:23Z",
"aliases" : [ "CVE-2025-54796" ],
"summary" : "copyparty allows Regex Denial of Service (ReDoS) in the upload listing",
"details" : "### Summary\nThe `filter` parameter for the \"Recent uploads\" page allows arbitrary Regexes. If this feature is enabled (which is the default), an attacker can craft a filter which deadlocks the server.\n\n### PoC\n`https://127.0.0.1:3923/?ru&filter=(.+)+x`\n\n### Impact\nThe server becomes fully inaccessible for a long time.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "copyparty"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.18.9"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.18.8"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/9001/copyparty/security/advisories/GHSA-5662-2rj7-f2v6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54796"
}, {
"type" : "WEB",
"url" : "https://github.com/9001/copyparty/commit/09910ba80784c3980947d92f45db696398c0fd83"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/9001/copyparty"
}, {
"type" : "WEB",
"url" : "https://github.com/9001/copyparty/releases/tag/v1.18.9"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-04T15:22:23Z",
"nvd_published_at" : "2025-08-02T00:15:26Z"
}
}