Allocation of Resources Without Limits or Throttling Affecting curl package, versions <7.83.1-r2



    Attack Complexity Low
    User Interaction Required
Expand this section
5.9 medium
Expand this section
4.9 medium
Expand this section
4.3 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-ALPINE316-CURL-2938008
  • published 30 Jun 2022
  • disclosed 7 Jul 2022

How to fix?

Upgrade Alpine:3.16 curl to version 7.83.1-r2 or higher.

NVD Description

Note: Versions mentioned in the description apply to the upstream curl package. See How to fix? for Alpine:3.16 relevant versions.

A malicious server can serve excessive amounts of Set-Cookie: headers in a HTTP response to curl and curl < 7.84.0 stores all of them. A sufficiently large amount of (big) cookies make subsequent HTTP requests to this, or other servers to which the cookies match, create requests that become larger than the threshold that curl uses internally to avoid sending crazy large requests (1048576 bytes) and instead returns an error.This denial state might remain for as long as the same cookies are kept, match and haven't expired. Due to cookie matching rules, a server on can set cookies that also would match for, making it it possible for a "sister server" to effectively cause a denial of service for a sibling site on the same second level domain using this method.