CVE-2023-29013: Github.com/traefik/traefik/v2 Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-7hj9-rv74-5g92
CVSS 7.5
CWE-400
Published
Advisory Summary

CVE-2023-29013 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/traefik/traefik/v2 libraries in the Go ecosystem. The issue involves traefik http header parsing could cause a denial of service. Remediation is available by upgrading affected packages to version 2.9.10, 2.10.0-rc2.

CVE-2023-29013 at a Glance

CVE Identifier CVE-2023-29013
GHSA Identifier GHSA-7hj9-rv74-5g92
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Github.com/traefik/traefik/v2
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-2023-29013

To remediate this vulnerability, upgrade all affected Github.com/traefik/traefik/v2 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/v2 fixed: 2.9.10
Upgrade github.com/traefik/traefik/v2 to 2.9.10
github.com/traefik/traefik/v2 fixed: 2.10.0-rc2
Upgrade github.com/traefik/traefik/v2 to 2.10.0-rc2
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/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-29013, inspect your project dependencies for Github.com/traefik/traefik/v2:

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

Analyze the terminal output to locate any version of Github.com/traefik/traefik/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.10), 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/traefik/traefik/v2, 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

### Impact There is a vulnerability in [Go when parsing the HTTP headers](https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8/m/OV40vnafAwAJ), which impacts Traefik. HTTP header parsing could allocate substantially more memory than required to hold the parsed headers. This behavior could be exploited to cause a denial of service. ### References - [CVE-2023-24534](https://www.cve.org/CVERecord?id=CVE-2023-24534) ### Patches - https://github.com/traefik/traefik/releases/tag/v2.9.10 - https://github.com/traefik/traefik/releases/tag/v2.10.0-rc2 ### Workarounds No workaround. ### For more information If you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).

CVE-2023-29013 Affected Github.com/traefik/traefik/v2 Versions

2 component(s)
Fixed Versions:
2.9.102.10.0-rc2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/traefik/traefik/v2
Go
< 2.9.10
2.9.10
github.com/traefik/traefik/v2
Go
≥ 2.10.0-rc1
< 2.10.0-rc2
All 1 versions
2.10.0-rc1
2.10.0-rc2

References

Frequently Asked Questions

What is CVE-2023-29013?
CVE-2023-29013 is a security vulnerability in Github.com/traefik/traefik/v2 involving Traefik HTTP header parsing could cause a denial of service under CWE-400: Uncontrolled Resource Consumption.
Which Github.com/traefik/traefik/v2 versions are affected?
Affected versions include releases prior to 2.9.10, 2.10.0-rc2 across affected packages: github.com/traefik/traefik/v2.
What version fixes CVE-2023-29013?
Upgrading to 2.9.10, 2.10.0-rc2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/traefik/traefik/v2 affected?
Yes, github.com/traefik/traefik/v2 is affected in releases prior to 2.9.10, 2.10.0-rc2. Upgrade your dependency to 2.9.10, 2.10.0-rc2 or later.
What is the CVSS score of CVE-2023-29013?
CVE-2023-29013 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-2023-29013?
CVE-2023-29013 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for CVE-2023-29013?
Run the dependency tree command: 'inspect dependencies for github.com/traefik/traefik/v2'. 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-7hj9-rv74-5g92",
  "modified" : "2025-02-13T18:53:59Z",
  "published" : "2023-04-11T20:59:22Z",
  "aliases" : [ "CVE-2023-29013" ],
  "summary" : "Traefik HTTP header parsing could cause a denial of service ",
  "details" : "### Impact\n\nThere is a vulnerability in [Go when parsing the HTTP headers](https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8/m/OV40vnafAwAJ), which impacts Traefik.\nHTTP header parsing could allocate substantially more memory than required to hold the parsed headers. This behavior could be exploited to cause a denial of service.\n\n### References\n\n- [CVE-2023-24534](https://www.cve.org/CVERecord?id=CVE-2023-24534)\n\n### Patches\n- https://github.com/traefik/traefik/releases/tag/v2.9.10\n- https://github.com/traefik/traefik/releases/tag/v2.10.0-rc2\n\n### Workarounds\n\nNo workaround.\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/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.9.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/traefik/traefik/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.10.0-rc1"
      }, {
        "fixed" : "2.10.0-rc2"
      } ]
    } ],
    "versions" : [ "2.10.0-rc1" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/security/advisories/GHSA-7hj9-rv74-5g92"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-29013"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/commit/4ed3964b3586565519249bbdc55eb1b961c08c49"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-8v5j-pwr7-w5f8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/traefik/traefik"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/releases/tag/v2.10.0-rc2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/releases/tag/v2.9.10"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8/m/OV40vnafAwAJ"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20230517-0008"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-11T20:59:22Z",
    "nvd_published_at" : "2023-04-14T19:15:00Z"
  }
}