GHSA-7jmw-8259-q9jx: Github.com/traefik/traefik/v3 Traefik Has Unexpected Behavior With Vulnerability

MODERATE
CWE-180
Published
Advisory Summary

GHSA-7jmw-8259-q9jx is a MODERATE traefik has unexpected behavior with vulnerability (CWE-180: Incorrect Behavior Order: Validate Before Canonicalize) affecting Github.com/traefik/traefik/v3 libraries in the Go ecosystem. The issue involves traefik has unexpected behavior with ipv4-mapped ipv6 addresses. Remediation is available by upgrading affected packages to version 3.0.2, 2.11.4.

GHSA-7jmw-8259-q9jx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7jmw-8259-q9jx
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-180: Incorrect Behavior Order: Validate Before Canonicalize
Affected Product Github.com/traefik/traefik/v3
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-7jmw-8259-q9jx

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.2
Upgrade github.com/traefik/traefik/v3 to 3.0.2
github.com/traefik/traefik/v2 fixed: 2.11.4
Upgrade github.com/traefik/traefik/v2 to 2.11.4
github.com/traefik/traefik fixed: 2.11.4
Upgrade github.com/traefik/traefik to 2.11.4
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 GHSA-7jmw-8259-q9jx, 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.2), 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-180: Incorrect Behavior Order: Validate Before Canonicalize, where the product validates input before it is canonicalized, which prevents the product from detecting data that becomes invalid after the canonicalization step. 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

### Impact There is a vulnerability in [Go managing various Is methods (IsPrivate, IsLoopback, etc) for IPv4-mapped IPv6 addresses](https://groups.google.com/g/golang-announce/c/XbxouI9gY7k/m/TuoGEhxIEwAJ). They didn't work as expected returning false for addresses which would return true in their traditional IPv4 forms. ### References - [CVE-2024-24790](https://www.cve.org/CVERecord?id=CVE-2024-24790) ### Patches - https://github.com/traefik/traefik/releases/tag/v2.11.4 - https://github.com/traefik/traefik/releases/tag/v3.0.2 ### 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).

GHSA-7jmw-8259-q9jx Affected Github.com/traefik/traefik/v3 Versions

3 component(s)
Fixed Versions:
3.0.22.11.4
Product / Package Ecosystem Affected Versions Fixed Version
github.com/traefik/traefik/v3
Go
≥ 3.0.0-beta3
< 3.0.2
3.0.2
github.com/traefik/traefik/v2
Go
< 2.11.4
2.11.4
github.com/traefik/traefik
Go
< 2.11.4
2.11.4

References

Frequently Asked Questions

What is GHSA-7jmw-8259-q9jx?
GHSA-7jmw-8259-q9jx is a security vulnerability in Github.com/traefik/traefik/v3 involving Traefik has unexpected behavior with IPv4-mapped IPv6 addresses under CWE-180: Incorrect Behavior Order: Validate Before Canonicalize.
Which Github.com/traefik/traefik/v3 versions are affected?
Affected versions include releases prior to 3.0.2, 2.11.4 across affected packages: github.com/traefik/traefik/v3, github.com/traefik/traefik/v2, github.com/traefik/traefik.
What version fixes GHSA-7jmw-8259-q9jx?
Upgrading to 3.0.2, 2.11.4 (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.2. Upgrade your dependency to 3.0.2 or later.
Is github.com/traefik/traefik/v2 affected?
Yes, github.com/traefik/traefik/v2 is affected in releases prior to 2.11.4. Upgrade your dependency to 2.11.4 or later.
What CWE is associated with GHSA-7jmw-8259-q9jx?
GHSA-7jmw-8259-q9jx is classified under CWE-180: Incorrect Behavior Order: Validate Before Canonicalize (The product validates input before it is canonicalized, which prevents the product from detecting data that becomes invalid after the canonicalization step.).
How can I check Go dependencies for GHSA-7jmw-8259-q9jx?
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-7jmw-8259-q9jx",
  "modified" : "2024-06-17T15:28:38Z",
  "published" : "2024-06-11T19:29:43Z",
  "aliases" : [ ],
  "summary" : "Traefik has unexpected behavior with IPv4-mapped IPv6 addresses",
  "details" : "### Impact\n\nThere is a vulnerability in [Go managing various Is methods (IsPrivate, IsLoopback, etc) for IPv4-mapped IPv6 addresses](https://groups.google.com/g/golang-announce/c/XbxouI9gY7k/m/TuoGEhxIEwAJ).\n\nThey didn't work as expected returning false for addresses which would return true in their traditional IPv4 forms.\n\n### References\n\n- [CVE-2024-24790](https://www.cve.org/CVERecord?id=CVE-2024-24790)\n\n### Patches\n\n- https://github.com/traefik/traefik/releases/tag/v2.11.4\n- https://github.com/traefik/traefik/releases/tag/v3.0.2\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" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/traefik/traefik/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-beta3"
      }, {
        "fixed" : "3.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/traefik/traefik/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.11.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/traefik/traefik"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.11.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/security/advisories/GHSA-7jmw-8259-q9jx"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/traefik/traefik"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/releases/tag/v2.11.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/releases/tag/v3.0.2"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-2917"
  }, {
    "type" : "WEB",
    "url" : "https://www.cve.org/CVERecord?id=CVE-2024-24790"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-180" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-11T19:29:43Z",
    "nvd_published_at" : null
  }
}