CVE-2024-53259: Github.com/quic go/quic go Quic-go Affected By An ICMP Vulnerability
MODERATECVE-2024-53259 is a MODERATE (CVSS 6.5) quic-go affected by an icmp vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Github.com/quic go/quic go libraries in the Go ecosystem. The issue involves quic-go affected by an icmp packet too large injection attack on linux. Remediation is available by upgrading affected packages to version 0.48.2.
CVE-2024-53259 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2024-53259
To remediate this vulnerability, upgrade all affected Github.com/quic go/quic go 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/quic-go/quic-go to 0.48.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/quic-go/quic-go
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-53259, inspect your project dependencies for Github.com/quic go/quic go:
inspect dependencies for github.com/quic-go/quic-go
Analyze the terminal output to locate any version of Github.com/quic go/quic go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.48.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-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In Github.com/quic go/quic go, 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
CVE-2024-53259 Affected Github.com/quic go/quic go Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/quic-go/quic-go
|
Go |
< 0.48.2
|
0.48.2
|
References
Frequently Asked Questions
What is CVE-2024-53259?
Which Github.com/quic go/quic go versions are affected?
What version fixes CVE-2024-53259?
Is github.com/quic-go/quic-go affected?
What is the CVSS score of CVE-2024-53259?
What CWE is associated with CVE-2024-53259?
How can I check Go dependencies for CVE-2024-53259?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-px8v-pp82-rcvr",
"modified" : "2024-12-04T22:16:38Z",
"published" : "2024-12-02T17:28:14Z",
"aliases" : [ "CVE-2024-53259" ],
"summary" : "quic-go affected by an ICMP Packet Too Large Injection Attack on Linux",
"details" : "### Impact\nAn off-path attacker can inject an ICMP Packet Too Large packet. Since affected quic-go versions used `IP_PMTUDISC_DO`, the kernel would then return a \"message too large\" error on `sendmsg`, i.e. when quic-go attempts to send a packet that exceeds the MTU claimed in that ICMP packet.\n\nBy setting this value to smaller than 1200 bytes (the minimum MTU for QUIC), the attacker can disrupt a QUIC connection. Crucially, this can be done after completion of the handshake, thereby circumventing any TCP fallback that might be implemented on the application layer (for example, many browsers fall back to HTTP over TCP if they're unable to establish a QUIC connection).\n\nAs far as I understand, the kernel tracks the MTU per 4-tuple, so the attacker needs to at least know the client's IP and port tuple to mount an attack (assuming that it knows the server's IP and port).\n\n### Patches\n\nThe fix is easy: Use `IP_PMTUDISC_PROBE` instead of `IP_PMTUDISC_DO`. This socket option only sets the DF bit, but disables the kernel's MTU tracking.\n\n_Has the problem been patched? What versions should users upgrade to?_\n\nFixed in https://github.com/quic-go/quic-go/pull/4729\nReleased in https://github.com/quic-go/quic-go/releases/tag/v0.48.2\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nUse iptables to drop ICMP Unreachable packets.\n\n### References\n\n_Are there any links users can visit to find out more?_\n\nThis bug was discovered while doing research for my new IETF draft on IP fragmentation: https://datatracker.ietf.org/doc/draft-seemann-tsvwg-udp-fragmentation/\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/quic-go/quic-go"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.48.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/quic-go/quic-go/security/advisories/GHSA-px8v-pp82-rcvr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-53259"
}, {
"type" : "WEB",
"url" : "https://github.com/quic-go/quic-go/pull/4729"
}, {
"type" : "WEB",
"url" : "https://github.com/quic-go/quic-go/commit/ca31dd355cbe5fc6c5807992d9d1149c66c96a50"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/quic-go/quic-go"
}, {
"type" : "WEB",
"url" : "https://github.com/quic-go/quic-go/releases/tag/v0.48.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-345" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-12-02T17:28:14Z",
"nvd_published_at" : "2024-12-02T17:15:12Z"
}
}