CVE-2021-22922
MySQL vulnerability analysis and mitigation

Overview

CVE-2021-22922 is a vulnerability in curl's metalink feature that affects versions 7.27.0 through 7.77.0. When curl downloads content using metalink, it verifies the content against a hash provided in the metalink XML file. However, when a downloaded file's hash mismatches, curl only displays a warning message but keeps the potentially malicious content on disk instead of removing it and trying another URL (curl docs).

Technical details

The vulnerability exists in curl's metalink feature implementation. When downloading content via metalink, curl verifies downloaded files against hashes specified in the metalink XML file. If a server hosting the content has been compromised and the file is replaced with malicious content, curl should detect the hash mismatch and remove the file. However, curl only displays a warning message while retaining the potentially malicious file on disk. The vulnerability has a CVSS v3.1 base score of 6.5 MEDIUM (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N) (NVD).

Impact

If exploited, this vulnerability could allow an attacker to deliver malicious content to users through compromised download servers, with the malicious content remaining on disk despite hash verification failures. The user may not notice the warning message and assume the downloaded file is legitimate (curl docs).

Mitigation and workarounds

The curl project has completely removed the metalink feature as of version 7.78.0. For earlier versions, the recommended fix is to rebuild curl with metalink support disabled. Users should upgrade to curl version 7.78.0 or later to fully address this vulnerability (curl docs).

Additional resources


SourceThis report was generated using AI

Related MySQL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-53054MEDIUM5.5
  • MySQLMySQL
  • mysql:8.4::mecab-ipadic
NoYesOct 21, 2025
CVE-2025-53053MEDIUM5.5
  • MySQLMySQL
  • mecab-ipadic
NoYesOct 21, 2025
CVE-2025-53069MEDIUM4.9
  • MySQLMySQL
  • mysql:8.4::mysql-libs
NoYesOct 21, 2025
CVE-2025-53067MEDIUM4.9
  • MySQLMySQL
  • cpe:2.3:a:oracle:mysql_server
NoYesOct 21, 2025
CVE-2025-53062MEDIUM4.9
  • MySQLMySQL
  • mysql-server
NoYesOct 21, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management