CVE-2021-22922: Input Validation

Published Jul 12, 2021
·
Updated

A flaw was found in curl in the way curl handles a file hash mismatch after downloading content using the Metalink feature. This flaw allows malicious actors controlling a hosting server to trick users into downloading malicious content. The highest threat from this vulnerability is to integrity.

Other sources

When curl is instructed to download content using the metalink feature, the contents is verified against a hash provided in the metalink XML file. There's a risk the user doesn't notice the message and instead assumes the file is fine.

Red Hat

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.

Affected Software

43 affected componentsFixes available
redhat/curl<0:7.61.1-18.el8_4.1
0:7.61.1-18.el8_4.1
redhat/curl<0:7.61.1-12.el8_2.3
0:7.61.1-12.el8_2.3
redhat/curl<7.78.0
7.78.0
haxx curl>=7.27.0<7.78.0
Fedoraproject Fedora=33
NetApp Cloud Backup
NetApp Clustered Data ONTAP
NetApp Hci Management Node
NetApp Solidfire
Oracle MySQL Server>=5.7.0<=5.7.35
Oracle MySQL Server>=8.0.0<=8.0.26
Siemens Sinec Infrastructure Network Services<1.0.1.1
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
Splunk Universal Forwarder>=8.2.0<8.2.12
Splunk Universal Forwarder>=9.0.0<9.0.6
Splunk Universal Forwarder=9.1.0
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s

Remediation

Information

This flaw can be mitigated by upgrading the affected curl utility to version 7.78.0 or by disabling the metalink feature in your current build

Event History

Jul 21, 2021
CVE Published
06:00 AM
Aug 5, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-22922?

CVE-2021-22922 is a vulnerability in curl that allows a file hash mismatch after downloading content using the metalink feature.

2

How does curl handle the file hash mismatch vulnerability (CVE-2021-22922)?

When curl is instructed to download content using the metalink feature, the contents are verified against a hash provided in the metalink XML file.

3

What is the severity of CVE-2021-22922?

CVE-2021-22922 has a severity rating of 6.5 (medium).

4

Which versions of curl are affected by CVE-2021-22922?

The vulnerability affects curl versions up to but excluding 7.78.0.

5

Where can I find more information about CVE-2021-22922?

More information about CVE-2021-22922 can be found on the GitHub commit, Red Hat Bugzilla, and the curl website.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203