GHSA-7jmw-8259-q9jx: Github.com/traefik/traefik/v3 Traefik Has Unexpected Behavior With Vulnerability
MODERATEGHSA-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
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.
Upgrade github.com/traefik/traefik/v3 to 3.0.2
Upgrade github.com/traefik/traefik/v2 to 2.11.4
Upgrade github.com/traefik/traefik to 2.11.4
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
GHSA-7jmw-8259-q9jx Affected Github.com/traefik/traefik/v3 Versions
3 component(s)| 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?
Which Github.com/traefik/traefik/v3 versions are affected?
What version fixes GHSA-7jmw-8259-q9jx?
Is github.com/traefik/traefik/v3 affected?
Is github.com/traefik/traefik/v2 affected?
What CWE is associated with GHSA-7jmw-8259-q9jx?
How can I check Go dependencies for GHSA-7jmw-8259-q9jx?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}