Skip to content

When curl is instructed to download content using the...

High severity Unreviewed Published May 24, 2022 to the GitHub Advisory Database • Updated Mar 27, 2024

Package

No package listedSuggest a package

Affected versions

Unknown

Patched versions

Unknown

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.

References

Published by the National Vulnerability Database Aug 5, 2021
Published to the GitHub Advisory Database May 24, 2022
Last updated Mar 27, 2024

Severity

High

EPSS score

0.354%
(73rd percentile)

CVE ID

CVE-2021-22922

GHSA ID

GHSA-975f-fvhv-8mhx

Source code

No known source code

Dependabot alerts are not supported on this advisory because it does not have a package from a supported ecosystem with an affected and fixed version.

Learn more about GitHub language support

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.