curl 7.20.0 through 7.70.0 is vulnerable to improper restriction of names for files and other resources that can lead too overwriting a local file when the -J flag is used.
https://www.oracle.com/security-alerts/cpujan2022.html
https://www.debian.org/security/2021/dsa-4881
https://hackerone.com/reports/887462
https://curl.se/docs/CVE-2020-8177.html
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf