Skip to content
Heist/ feed
Back to feed
MediumFix available

curl — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2021-22922

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.

Products
curl
Affected versions
Not specified
Fixed versions
7.78.0-r0
CVEs
CVE-2021-22922
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 22:02 UTC · Revision 1

Source evidence

ALPINE-CVE-2021-22922

core-osv · Original source

Published 5 Aug 2021, 21:15 UTC

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.

osv:ALPINE-CVE-2021-22922

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

curl

Fixed versions: 7.78.0-r0

Complete source record
{
  "id": "7d27c5629ed5704bc04a65a3c88e1d38d68937b0b58b762a655bd84ed1f384e3",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2021-22922",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2021-22922",
    "summary": "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.",
    "evidence": "osv:ALPINE-CVE-2021-22922",
    "products": [
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/9/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/10/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/11/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/11/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/12/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.78.0-r0",
            "evidence": "/affected/12/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "ALPINE-CVE-2021-22922",
      "aliases": [
        "ALPINE-CVE-2021-22922"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.17"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.18"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.19"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.20"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.21"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.22"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.27.0"
                },
                {
                  "fixed": "7.78.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.24"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-22922.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-23T17:17:56.152683028Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-22922"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2021-22922"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-22922",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 415308,
  "published_at": "2021-08-05T21:15:11.173+00:00"
}