SecurityContext

CVE-2021-22922: curl - Insecure Download Handling

  • Cve: CVE-2021-22922
  • Name: curl - Insecure Download Handling
  • Description: When curl is instructed to download content using the metalink feature, thecontents is verified against a hash provided in the metalink XML file.The metalink XML file points out to the client how to get the same contentfrom a set of different URLs, potentially hosted by different servers and theclient can then download the file from one or several of them. In a serial orparallel manner.If one of the servers hosting the contents has been breached and the contentsof the specific file on that server is replaced with a modified payload, curlshould detect this when the hash of the file mismatches after a completeddownload. It should remove the contents and instead try getting the contentsfrom another URL. This is not done, and instead such a hash mismatch is onlymentioned in text and the potentially malicious content is kept in the file ondisk.
  • Impact: Malicious content may remain on disk if hash mismatch occurs, leading to potential execution of tampered files and security breaches.
  • Remediation: Update curl to the latest version that properly handles hash mismatches by removing compromised files and retrying downloads from alternative URLs.
  • Vulnerability impact: data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
  • Epss score: 0.04332
  • Epss percentile: 0.91341
  • Assignee: [email protected]
  • Published at: 2021-08-05T21:15:11Z
  • Age in days: 1937
  • Modified at: 2026-10-14T11:16:53Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 12
  • Products total: 16
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-22922
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements

Cwe

IdName
CWE-840—
CWE-755Improper Handling of Exceptional Conditions

Hackerone

  • Reports: 1
  • Rank: 5211

Public exploits

UrlSourceAdded date
https://hackerone.com/reports/1213175nvd2021-08-05

References

Same in every row:

  • Source: nvd
UrlTags
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfPatch, Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmlPatch, Third Party Advisory
https://hackerone.com/reports/1213175Exploit, Issue Tracking, Third Party Advisory
https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cdev.kafka.apache.org%3EMailing List, Third Party Advisory
https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cusers.kafka.apache.org%3EMailing List, Third Party Advisory
https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cdev.kafka.apache.org%3EMailing List, Third Party Advisory
https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cusers.kafka.apache.org%3EMailing List, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FRUCW2UVNYUDZF72DQLFQR4PJEC6CF7V/Mailing List, Third Party Advisory
https://security.gentoo.org/glsa/202212-01Third Party Advisory
https://security.netapp.com/advisory/ntap-20210902-0003/Third Party Advisory

Products

Same in every row:

  • Sources: nvd
ProductAffectedPlatform boundUrl
haxx:curl>= 7.27.0, < 7.78.0no/v1/products/haxx/curl
fedoraproject:fedora= 33no/v1/products/fedoraproject/fedora
oracle:mysql_server>= 8.0.0, <= 8.0.26; >= 5.7.0, <= 5.7.35no/v1/products/oracle/mysql_server
netapp:cloud_backupall versionsno/v1/products/netapp/cloud_backup
netapp:h700s_firmwareall versionsyes/v1/products/netapp/h700s_firmware
netapp:h300s_firmwareall versionsyes/v1/products/netapp/h300s_firmware
netapp:h410s_firmwareall versionsyes/v1/products/netapp/h410s_firmware
netapp:h500s_firmwareall versionsyes/v1/products/netapp/h500s_firmware
netapp:solidfireall versionsno/v1/products/netapp/solidfire
netapp:clustered_data_ontapall versionsno/v1/products/netapp/clustered_data_ontap

Projects

RepositoryLink kindsIndexedUrl
curl/curlfixyes/v1/repositories/curl/curl

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-08-05
  • Remote: yes
  • Hackerone reports: 1
  • Exposed hosts: 49161
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since