CVE-2026-70657: Copyparty: file/dirkey confusion

Published Aug 18, 2026
·
Updated

A valid filekey could potentially be converted into a dirkey, granting read-access to the containing folder.

This issue only affected volumes which simultaneously enable both filekeys and dirkeys, with volflag dk or dks combined with fk or fka.

Both required features are default-disabled, and must be explicitly enabled in the volflags (the "flags" section of a volume).

Other sources

Copyparty is a portable file server. Prior to 1.20.17, copyparty volumes with the dk or dks directory-key flag combined with the fk or fka file-key flag can convert a valid file key into a directory key, granting read access to the containing folder even though both features are disabled by default and must be explicitly enabled in the volume flags. This issue is fixed in version 1.20.17.

MITRE

Affected Software

2 affected componentsFixes available
Copyparty<1.20.17
pip/copyparty<1.20.17
1.20.17

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/copyparty to a version that resolves this vulnerability.

    Fixed in 1.20.17
  2. Upgrade

    Upgrade copyparty to a version that resolves this vulnerability.

    Fixed in 1.20.17

Event History

Aug 18, 2026
CVE Published
via MITRE·02:59 PM
Data Sourced
via MITRE·02:59 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:02 PM
Data Sourced
via GitHub·03:02 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which Copyparty configurations are affected?

Only volumes explicitly configured with both a directory-key flag (dk or dks) and a file-key flag (fk or fka) are affected. These features are disabled by default, so installations that have not enabled both flags on the same volume are not exposed by this issue.

2

What does an attacker need to exploit this issue?

An attacker needs a valid file key for a file in an affected volume. They can use that file key as a directory key to obtain read access to the folder containing the file.

3

What mitigation is available if patching cannot happen immediately?

Upgrade Copyparty to version 1.20.17. If an immediate upgrade is not possible, remove either the dk/dks directory-key flag or the fk/fka file-key flag from affected volume configurations so the two feature types are not enabled together.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203