CVE-2021-22922
Reported by hackerone · Published August 5, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| curl | Alpine | 7.78.0-r0 |
| curl | Arch Linux | 7.78.0-1 |
| libcurl-devel | Amazon Linux | 7.76.1-7.amzn2.0.2 |
| libcurl | Amazon Linux | 7.76.1-7.amzn2.0.2 |
| curl | haxx | 7.78.0 |
| mysql_server | oracle | 8.0.26, 5.7.35 |
| sinec_infrastructure_network_services | siemens | 1.0.1.1 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| universal_forwarder | splunk | 9.0.6, 8.2.12 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | curl 7.27.0 to and including 7.77.0 |
| alpine | curl | 0 |
| arch | curl | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | libcurl-devel | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | libcurl | 0 |
| n/a | https://github.com/curl/curl | 7.27.0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2 | curl | 0 |
Timeline
- Jul 21, 2021 PoC Published (2 in total, the first dated here)
- Aug 5, 2021 CVE Published
- Aug 6, 2021 EPSS Score (30 in total, the first dated here)
- Mar 26, 2026 Security Advisory (24 in total, the first dated here)
- Jul 2, 2026 Distribution Patch (19 in total, the first dated here)
- Aug 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-22922
vulnetix vdb fixes CVE-2021-22922
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-22922/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2021-5d21b90a30 vendor-advisory
- [kafka-dev] 20210831 Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image mailing-list
- [kafka-users] 20210831 Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image mailing-list
- [kafka-users] 20210901 Re: [EXTERNAL] Re: Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image mailing-list
- [kafka-dev] 20210901 Re: [EXTERNAL] Re: Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image mailing-list
- GLSA-202212-01 vendor-advisory
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url