CVE-2024-53259: Github.com/quic go/quic go Quic-go Affected By An ICMP Vulnerability

MODERATE
Advisory Identifier: GHSA-px8v-pp82-rcvr
CVSS 6.5
CWE-345
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-53259
GHSA Identifier GHSA-px8v-pp82-rcvr
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Github.com/quic go/quic go
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Adjacent (AV:A)
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-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.

github.com/quic-go/quic-go fixed: 0.48.2
Upgrade github.com/quic-go/quic-go to 0.48.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/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

### Impact An 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. By 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). As 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). ### Patches The 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. _Has the problem been patched? What versions should users upgrade to?_ Fixed in https://github.com/quic-go/quic-go/pull/4729 Released in https://github.com/quic-go/quic-go/releases/tag/v0.48.2 ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ Use iptables to drop ICMP Unreachable packets. ### References _Are there any links users can visit to find out more?_ This bug was discovered while doing research for my new IETF draft on IP fragmentation: https://datatracker.ietf.org/doc/draft-seemann-tsvwg-udp-fragmentation/

CVE-2024-53259 Affected Github.com/quic go/quic go Versions

1 component(s)
Fixed Versions:
0.48.2
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?
CVE-2024-53259 is a security vulnerability in Github.com/quic go/quic go involving quic-go affected by an ICMP Packet Too Large Injection Attack on Linux under CWE-345: Insufficient Verification of Data Authenticity.
Which Github.com/quic go/quic go versions are affected?
Affected versions include releases prior to 0.48.2 across affected packages: github.com/quic-go/quic-go.
What version fixes CVE-2024-53259?
Upgrading to 0.48.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/quic-go/quic-go affected?
Yes, github.com/quic-go/quic-go is affected in releases prior to 0.48.2. Upgrade your dependency to 0.48.2 or later.
What is the CVSS score of CVE-2024-53259?
CVE-2024-53259 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-53259?
CVE-2024-53259 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check Go dependencies for CVE-2024-53259?
Run the dependency tree command: 'inspect dependencies for github.com/quic-go/quic-go'. 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-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"
  }
}