# CVE-2021-22922: Wrong content via Metalink not discarded

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.33%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-21T08:00:00.000Z
- Modified: 2026-10-25T01:05:33.704Z
- Also known as: CURL-CVE-2021-22922
- Weaknesses: CWE-755, CWE-840
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- https://github.com/curl/curl: curl 7.27.0  to and including 7.77.0
- https://github.com/curl/curl.git: from 7.27.0 before 7.78.0; from b5fdbe848bc3d088445817aa890d3f2f74ac5b02 before 265b14d6b37c4298bd5556fabcbc37d36f911693
- haxx curl: from 7.27.0 before 7.78.0
- fedoraproject fedora: 33
- netapp cloud_backup: no versions given
- netapp clustered_data_ontap: no versions given
- netapp hci_management_node: no versions given
- netapp solidfire: no versions given
- oracle mysql_server: from 5.7.0 up to 5.7.35; from 8.0.0 up to 8.0.26
- siemens sinec_infrastructure_network_services: before 1.0.1.1
- netapp h300s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h300e_firmware: no versions given
- netapp h500e_firmware: no versions given
- netapp h700e_firmware: no versions given
- netapp h410s_firmware: no versions given
- splunk universal_forwarder: from 8.2.0 before 8.2.12; from 9.0.0 before 9.0.6; 9.1.0

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- curl: rating Medium
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://hackerone.com/reports/1213175> (exploit, issue-tracking, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FRUCW2UVNYUDZF72DQLFQR4PJEC6CF7V/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cdev.kafka.apache.org%3E> (mailing-list, third-party-advisory)
- <https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cusers.kafka.apache.org%3E> (mailing-list, third-party-advisory)
- <https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cusers.kafka.apache.org%3E> (mailing-list, third-party-advisory)
- <https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cdev.kafka.apache.org%3E> (mailing-list, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210902-0003/> (third-party-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf> (patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202212-01> (third-party-advisory, vendor-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-389290.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2021-22922](https://www.cve.org/CVERecord?id=CVE-2021-22922), CVE Terms of Use, modified 2026-10-14
- curl: [CURL-CVE-2021-22922](https://osv.dev/vulnerability/CURL-CVE-2021-22922), MIT, modified 2026-10-25
- NVD: [CVE-2021-22922](https://nvd.nist.gov/vuln/detail/CVE-2021-22922), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2021-22922 · Whole record: https://cve.day/CVE-2021-22922.json · Rebuilt by cve.day 2026-11-25T22:58:03.026Z
