This report was translated by AI; nobody has reviewed the translation yet. Original language: Czech.

[TLP:CLEAR] Docker Compose fixes 1 vulnerability

Docker Compose version 2.40.2 fixes 1 vulnerability [1]. A PoC can be found at [2].

Docker Compose - arbitrary file write (CVE-2025-62725)
CVSS 8.9 (High)

By means of a specially crafted OCI artifact and due to insufficient path validation in certain annotations, an unauthenticated remote attacker can escape the original cache directory and write arbitrary files to the host system [1].

The vulnerability is present in product:

  • Docker Compose; <2.40.2

CVSS: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

More information:

  • CVE-2025-62725 at cve.org, NVD
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') at cwe.mitre.org

The vulnerability was publicly disclosed 27. 10. 2025.


By CESNET, z.s.p.o. Michaela Jarošová on 31. 10. 2025.

CESNET, z.s.p.o. Logo