{"id":"CVE-2021-22922","title":"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 diff…","summary":"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 diff…","severity":"medium","cvss":6.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","cwe":["CWE-840","CWE-755"],"vendor":"haxx","product":"curl","affected":["curl >= 7.27.0, < 7.78.0","fedora = 33","cloud_backup","clustered_data_ontap","hci_management_node","solidfire","mysql_server >= 5.7.0, <= 5.7.35","mysql_server >= 8.0.0, <= 8.0.26","sinec_infrastructure_network_services < 1.0.1.1","h300s_firmware","h500s_firmware","h700s_firmware","h300e_firmware","h500e_firmware","h700e_firmware","h410s_firmware","universal_forwarder >= 8.2.0, < 8.2.12","universal_forwarder >= 9.0.0, < 9.0.6","universal_forwarder = 9.1.0"],"patched":["curl 7.78.0","sinec_infrastructure_network_services 1.0.1.1","universal_forwarder 9.0.6"],"published":"2021-08-05","updated":"2026-10-14","sourceUpdated":"2026-10-14T11:16:53.360","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-22922","references":[{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","label":"support@hackerone.com"},{"url":"https://hackerone.com/reports/1213175","label":"support@hackerone.com"},{"url":"https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cdev.kafka.apache.org%3E","label":"support@hackerone.com"},{"url":"https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cusers.kafka.apache.org%3E","label":"support@hackerone.com"},{"url":"https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cdev.kafka.apache.org%3E","label":"support@hackerone.com"},{"url":"https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cusers.kafka.apache.org%3E","label":"support@hackerone.com"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FRUCW2UVNYUDZF72DQLFQR4PJEC6CF7V/","label":"support@hackerone.com"},{"url":"https://security.gentoo.org/glsa/202212-01","label":"support@hackerone.com"},{"url":"https://security.netapp.com/advisory/ntap-20210902-0003/","label":"support@hackerone.com"},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","label":"support@hackerone.com"},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://hackerone.com/reports/1213175","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cdev.kafka.apache.org%3E","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cusers.kafka.apache.org%3E","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cdev.kafka.apache.org%3E","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cusers.kafka.apache.org%3E","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FRUCW2UVNYUDZF72DQLFQR4PJEC6CF7V/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202212-01","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20210902-0003/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-389290.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}],"tags":["nvd"],"epss":0.04332,"epssPercentile":0.90984,"ingestedAt":"2026-10-14T11:27:22.125Z","slug":"CVE-2021-22922","body":"## Overview\n\nWhen 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.\n\n## Affected\n\n- `curl >= 7.27.0, < 7.78.0`\n- `fedora = 33`\n- `cloud_backup`\n- `clustered_data_ontap`\n- `hci_management_node`\n- `solidfire`\n- `mysql_server >= 5.7.0, <= 5.7.35`\n- `mysql_server >= 8.0.0, <= 8.0.26`\n- `sinec_infrastructure_network_services < 1.0.1.1`\n- `h300s_firmware`\n- `h500s_firmware`\n- `h700s_firmware`\n- `h300e_firmware`\n- `h500e_firmware`\n- `h700e_firmware`\n- `h410s_firmware`\n- `universal_forwarder >= 8.2.0, < 8.2.12`\n- `universal_forwarder >= 9.0.0, < 9.0.6`\n- `universal_forwarder = 9.1.0`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `curl 7.78.0`\n- `sinec_infrastructure_network_services 1.0.1.1`\n- `universal_forwarder 9.0.6`","depth":"sunlit","depthScore":37,"depthScoreParts":{"impact":35.8,"likelihood":0.9,"exploitation":0,"ransomware":0},"changes":[]}