{"answers":{"affected":"3 open source packages ship an affected version, including copyparty. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37474 exists.","fix":"Upgrade copyparty to 1.8.2 or later.","what":"CVE-2023-37474 is a high-severity path traversal vulnerability in 9001 copyparty, published on 14 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-37474 and fix it if it is affected.\n\nWhat it is: CVE-2023-37474 is a high-severity path traversal vulnerability in 9001 copyparty, published on 14 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37474 exists.\n\nAffected packages and fixed versions:\n- copyparty (PyPI): affected all versions; fixed in 1.8.2\n- copyparty (PyPI): affected all versions; fixed in 1.8.2\n- copyparty (PyPI): affected all versions; fixed in 1.8.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-37474/ (Markdown: https://insights.sbomify.com/CVE-2023-37474/index.md)","id":"CVE-2023-37474","markdown":"https://insights.sbomify.com/CVE-2023-37474/index.md","name":"CVE-2023-37474","record":{"aliases":["GHSA-pxfv-7rr3-2qjg","PYSEC-2023-127"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"portable file server","requires_auth":"none","summary":"An attacker can access files outside the web root via path traversal in the .cpr subfolder of the copyparty file server.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"copyparty","vendor":"9001"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Copyparty is a portable file server. Versions prior to 1.8.2 are subject to a path traversal vulnerability detected in the `.cpr` subfolder. The Path Traversal attack technique allows an attacker access to files, directories, and commands that reside outside the web document root directory. This issue has been addressed in commit `043e3c7d` which has been included in release 1.8.2. Users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2023-07-27","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2023-07-27T08:10:01Z","kind":"github_poc","ref":"https://github.com/ilqarli27/CVE-2023-37474","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2023/CVE-2023-37474.yaml","stars":null,"title":"Copyparty \u003c= 1.8.2 - Directory Traversal"}],"tier":"weaponised"},"has_fix":true,"headline":"Path traversal in copyparty","id":"CVE-2023-37474","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":3,"n_references":3,"next":{"headline":"Attacker-controlled parameter can cause denial of service in hamba avro","id":"CVE-2023-37475"},"packages":[{"ecosystem":"PyPI","fixed":["1.8.2"],"introduced":["0"],"last_affected":[],"package":"copyparty","purl":null,"source":"GHSA-pxfv-7rr3-2qjg"},{"ecosystem":"PyPI","fixed":["1.8.2"],"introduced":["0"],"last_affected":[],"package":"copyparty","purl":"pkg:pypi/copyparty","source":"GHSA-pxfv-7rr3-2qjg"},{"ecosystem":"PyPI","fixed":["1.8.2"],"introduced":["0"],"last_affected":[],"package":"copyparty","purl":"pkg:pypi/copyparty","source":"PYSEC-2023-127"}],"prev":{"headline":"Limited code execution in zenstruck/collections","id":"CVE-2023-37473"},"products":["copyparty"],"published":"2023-07-14","related":[{"cvss_score":7.8,"headline":"Cross-site scripting in n/a","id":"CVE-2023-41471","kev_date_added":null,"published":"2025-08-29"},{"cvss_score":7.5,"headline":"Copyparty is vulnerable to Regex Denial of Service (ReDoS) attacks through \"Recent Uploads\" page","id":"CVE-2025-54796","kev_date_added":null,"published":"2025-08-01"},{"cvss_score":6.3,"headline":"copyparty Reflected XSS via Filter Parameter","id":"CVE-2025-54589","kev_date_added":null,"published":"2025-07-31"},{"cvss_score":6.3,"headline":"copyparty vulnerable to reflected cross-site scripting via k304 parameter","id":"CVE-2023-38501","kev_date_added":null,"published":"2023-07-25"},{"cvss_score":5.4,"headline":"Copyparty vulnerable to eflected cross-site scripting via setck parameter","id":"CVE-2026-27948","kev_date_added":null,"published":"2026-02-26"},{"cvss_score":5.4,"headline":"copyparty has a DOM-Based XSS vulnerability when displaying multimedia metadata","id":"CVE-2025-54423","kev_date_added":null,"published":"2025-07-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["9001"]},"summary":"An attacker can access files outside the web root via path traversal in the .cpr subfolder of the copyparty file server.","url":"https://insights.sbomify.com/CVE-2023-37474/"}