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
| Id | Name |
|---|---|
| CWE-840 | — |
| CWE-755 | Improper Handling of Exceptional Conditions |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://hackerone.com/reports/1213175 | nvd | 2021-08-05 |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Sources: nvd
| Product | Affected | Platform bound | Url |
|---|---|---|---|
| haxx:curl | >= 7.27.0, < 7.78.0 | no | /v1/products/haxx/curl |
| fedoraproject:fedora | = 33 | no | /v1/products/fedoraproject/fedora |
| oracle:mysql_server | >= 8.0.0, <= 8.0.26; >= 5.7.0, <= 5.7.35 | no | /v1/products/oracle/mysql_server |
| netapp:cloud_backup | all versions | no | /v1/products/netapp/cloud_backup |
| netapp:h700s_firmware | all versions | yes | /v1/products/netapp/h700s_firmware |
| netapp:h300s_firmware | all versions | yes | /v1/products/netapp/h300s_firmware |
| netapp:h410s_firmware | all versions | yes | /v1/products/netapp/h410s_firmware |
| netapp:h500s_firmware | all versions | yes | /v1/products/netapp/h500s_firmware |
| netapp:solidfire | all versions | no | /v1/products/netapp/solidfire |
| netapp:clustered_data_ontap | all versions | no | /v1/products/netapp/clustered_data_ontap |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| curl/curl | fix | yes | /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