VDB

CVE-2021-22922

CVE-2021-22922 PUBLISHED CVSS 6.5 MEDIUM

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.

PackageEcosystemFixed in
curlAlpine7.78.0-r0
curlArch Linux7.78.0-1
libcurl-develAmazon Linux7.76.1-7.amzn2.0.2
libcurlAmazon Linux7.76.1-7.amzn2.0.2
curlhaxx7.78.0
mysql_serveroracle8.0.26, 5.7.35
sinec_infrastructure_network_servicessiemens1.0.1.1
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
SIPLUS S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
universal_forwardersplunk9.0.6, 8.2.12

Risk scores

CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
n/ahttps://github.com/curl/curlcurl 7.27.0 to and including 7.77.0
alpinecurl0
archcurl0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2libcurl-devel0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2libcurl0
n/ahttps://github.com/curl/curl7.27.0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
amazon:2curl0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›