CVE-2024-28869: Github.com/traefik/traefik/v3 Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-4vwx-54mw-vqfw
CVSS 7.5
CWE-755 CWE-404
Published
Advisory Summary

CVE-2024-28869 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting Github.com/traefik/traefik/v3 libraries in the Go ecosystem. The issue involves traefik vulnerable to denial of service with content-length header. Remediation is available by upgrading affected packages to version 3.0.0-rc5, 2.11.2.

CVE-2024-28869 at a Glance

CVE Identifier CVE-2024-28869
GHSA Identifier GHSA-4vwx-54mw-vqfw
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-755: Improper Handling of Exceptional Conditions
Affected Product Github.com/traefik/traefik/v3
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-28869

To remediate this vulnerability, upgrade all affected Github.com/traefik/traefik/v3 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/traefik/traefik/v3 fixed: 3.0.0-rc5
Upgrade github.com/traefik/traefik/v3 to 3.0.0-rc5
github.com/traefik/traefik/v2 fixed: 2.11.2
Upgrade github.com/traefik/traefik/v2 to 2.11.2
github.com/traefik/traefik fixed: 2.11.2
Upgrade github.com/traefik/traefik to 2.11.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/traefik/traefik/v3

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-28869, inspect your project dependencies for Github.com/traefik/traefik/v3:

inspect dependencies for github.com/traefik/traefik/v3

Analyze the terminal output to locate any version of Github.com/traefik/traefik/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.0-rc5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-755: Improper Handling of Exceptional Conditions, where the product does not handle or incorrectly handles an exceptional condition. In Github.com/traefik/traefik/v3, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

There is a potential vulnerability in Traefik managing requests with `Content-length` and no `body` . Sending a `GET` request to any Traefik endpoint with the `Content-length` request header results in an indefinite hang with the default configuration. This vulnerability can be exploited by attackers to induce a denial of service. ## Patches - https://github.com/traefik/traefik/releases/tag/v2.11.2 - https://github.com/traefik/traefik/releases/tag/v3.0.0-rc5 ## Workarounds For affected versions, this vulnerability can be mitigated by configuring the [readTimeout](https://doc.traefik.io/traefik/routing/entrypoints/#respondingtimeouts) option. ## For more information If you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).

CVE-2024-28869 Affected Github.com/traefik/traefik/v3 Versions

3 component(s)
Fixed Versions:
3.0.0-rc52.11.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/traefik/traefik/v3
Go
≥ 3.0.0-beta3
< 3.0.0-rc5
3.0.0-rc5
github.com/traefik/traefik/v2
Go
< 2.11.2
2.11.2
github.com/traefik/traefik
Go
< 2.11.2
2.11.2

References

Frequently Asked Questions

What is CVE-2024-28869?
CVE-2024-28869 is a security vulnerability in Github.com/traefik/traefik/v3 involving Traefik vulnerable to denial of service with Content-length header under CWE-755: Improper Handling of Exceptional Conditions.
Which Github.com/traefik/traefik/v3 versions are affected?
Affected versions include releases prior to 3.0.0-rc5, 2.11.2 across affected packages: github.com/traefik/traefik/v3, github.com/traefik/traefik/v2, github.com/traefik/traefik.
What version fixes CVE-2024-28869?
Upgrading to 3.0.0-rc5, 2.11.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/traefik/traefik/v3 affected?
Yes, github.com/traefik/traefik/v3 is affected in releases prior to 3.0.0-rc5. Upgrade your dependency to 3.0.0-rc5 or later.
Is github.com/traefik/traefik/v2 affected?
Yes, github.com/traefik/traefik/v2 is affected in releases prior to 2.11.2. Upgrade your dependency to 2.11.2 or later.
What is the CVSS score of CVE-2024-28869?
CVE-2024-28869 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-28869?
CVE-2024-28869 is classified under CWE-755: Improper Handling of Exceptional Conditions (The product does not handle or incorrectly handles an exceptional condition.).
How can I check Go dependencies for CVE-2024-28869?
Run the dependency tree command: 'inspect dependencies for github.com/traefik/traefik/v3'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4vwx-54mw-vqfw",
  "modified" : "2024-04-15T19:41:13Z",
  "published" : "2024-04-12T17:05:13Z",
  "aliases" : [ "CVE-2024-28869" ],
  "summary" : "Traefik vulnerable to denial of service with Content-length header",
  "details" : "There is a potential vulnerability in Traefik managing requests with `Content-length` and no `body` .\n\nSending a `GET` request to any Traefik endpoint with the `Content-length` request header results in an indefinite hang with the default configuration. This vulnerability can be exploited by attackers to induce a denial of service.\n\n## Patches\n\n- https://github.com/traefik/traefik/releases/tag/v2.11.2\n- https://github.com/traefik/traefik/releases/tag/v3.0.0-rc5\n\n## Workarounds\n\nFor affected versions, this vulnerability can be mitigated by configuring the [readTimeout](https://doc.traefik.io/traefik/routing/entrypoints/#respondingtimeouts) option.\n\n## For more information\n\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/traefik/traefik/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-beta3"
      }, {
        "fixed" : "3.0.0-rc5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.0-rc4"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/traefik/traefik/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.11.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.11.1"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/traefik/traefik"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.11.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.11.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/security/advisories/GHSA-4vwx-54mw-vqfw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-28869"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/commit/240b83b77351dfd8cadb91c305b84e9d22e0f9c6"
  }, {
    "type" : "WEB",
    "url" : "https://doc.traefik.io/traefik/routing/entrypoints/#respondingtimeouts"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/traefik/traefik"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/releases/tag/v2.11.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/releases/tag/v3.0.0-rc5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-404", "CWE-755" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-12T17:05:13Z",
    "nvd_published_at" : "2024-04-12T22:15:07Z"
  }
}