Home/CVE/When curl is instructed to download content using the metalink feature, thecontents is verified against a hash provided
CVE

CVE-2021-22922

When curl is instructed to download content using the metalink feature, thecontents is verified against a hash provided

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.

MEDIUM · CVSS 6.5 EPSS 0.00146
Schedule remediation
  • Public exploit or PoC is available
Sigma rules7 YARA rules0

Weakness Classification

Affected Products & Versions

19
haxx curl>= 7.27.0 and < 7.78.0
netapp solidfireall versions
oracle mysql server>= 5.7.0 and <= 5.7.35
oracle mysql server>= 8.0.0 and <= 8.0.26

Public Exploits & PoCs

1
pochackerone.com · 1213175hackerone.com

Sigma Hunt Rules

7
Exact rules name this CVE ID. Product rules name an affected product in their title. Related rules cover techniques used by actors who exploited this CVE. Showing the most relevant matches; the complete related set is on the full drill-down.
producthighSuspicious Download and Execute Pattern via Curl/Wget
producthighSuspicious File Download From File Sharing Domain Via Curl.EXE
producthighSuspicious File Download From IP Via Curl.EXE
producthighCurl Download And Execute Combination
producthighSuspicious Curl.EXE Download
productmediumSuspicious Curl File Upload - Linux

Scoring & Timeline

6.5
MEDIUM · CVSS v3.1 · support@hackerone.com
View on NVD
Attack Vector
Network Adjacent Local Physical
Attack Complexity
Low High
Privileges Required
None Low High
User Interaction
None Required
Scope
Unchanged Changed
Confidentiality
None Low High
Integrity
None Low High
Availability
None Low High
Published to NVD05 Aug 2021 · 09:15 PM
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
SSVC triage · cisa-vulnrichment
Exploitation
poc
Automatable
no
Technical impact
partial
SSVC asks the questions that actually drive patch urgency: is it being exploited, can attacks be automated, and how total is the impact.

Vendor Advisories

17
suse-csafopenSUSE-SU-2024:10582-1
suse-csafopenSUSE-SU-2024:12116-1
siemens-csafSSA-398330
siemens-csafSSA-389290
Intelligence Graph · click any node to traverse
CVETechnique ActorTool Family
drag to reposition · click any node to traverse · button top-right enlarges
External lookups - second-class, for what we don’t hold ourselves
Vulnerabilities
CISA KEV catalog
CWE weaknesses
CAPEC attack patterns
Package vulnerabilities
Threat intelligence
Threat actors
Tools & malware
ATT&CK techniques
IOCs
Detection & defense
Sigma rules
YARA rules
Atomic Red Team tests
D3FEND countermeasures
Compliance
NIST 800-53
ISO 27001:2022
SOC 2 TSC
PCI-DSS v4.0
CIS Controls v8.1
About
All capabilities
Live statistics
Data sources
Privacy policy
Terms of service
threatengine.sh  ·  Open-source threat intelligence platform  ·  100+ authoritative sources  ·  Every fact traces to its origin