---
id: "CVE-2026-119299"
kind: "vulnerability"
aliases: ["CVE-2026-119299"]
title: "gopacket: crafted SCTP packet can crash Go apps decoding it"
severity: "medium"
cvss: 5.9
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["go", "gopacket", "network-tools", "package", "packet-capture"]
not_affected_if: ["default-config", "no-sctp-traffic", "panic-recovery-enabled"]
published_at: "2026-10-30T17:17:18+00:00"
first_seen_at: "2026-10-30T17:31:39+00:00"
updated_at: "2026-10-30T17:32:10+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119299", "first_seen_at": "2026-10-30T17:31:39+00:00"}]
---

# gopacket: crafted SCTP packet can crash Go apps decoding it

gopacket's SCTP decoder reads attacker-controlled lengths and counts without bounds checks, so a crafted SCTP segment causes a slice panic. Applications that skip the default panic recovery terminate; the impact is availability only.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the gopacket version in `go.mod` or `go list -m github.com/google/gopacket`
- Look for use of `DecodeOptions.SkipDecodeRecovery`, direct registered decoders, or `DecodingLayerParser` with `IgnorePanic` enabled

## Fix

- gopacket: move to `1.7.2`

## Timeline

- 2026-10-30T17:31:39+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-119299

## From the sources

gopacket provides packet processing capabilities for Go. Prior to 1.7.2, the SCTP chunk chain in layers/sctp.go passes attacker-controlled declared lengths and counts to decodeSCTPInit, decodeSCTPShutdown, decodeSCTPError, decodeSCTPSack, and decodeSCTPParameter without checking that each chunk contains the fixed fields, parameter TLVs, gap acknowledgements, or duplicate TSNs those sub-decoders read. A crafted SCTP segment can therefore cause out-of-bounds or inverted slice panics; the panic can terminate applications that use gopacket.DecodeOptions.SkipDecodeRecovery, direct registered decoders, or DecodingLayerParser with IgnorePanic enabled, while the default recovery-enabled APIs convert it to a per-packet decode error. This is the SCTP sub-decoder residual named but not remediated by CVE-2026-65819, whose version 1.7.1 changes bounded the generic dispatcher but left these per-type reads and loops unchecked. The impact is availability only, with no data disclosure, modification, or allocation amplification. This issue is fixed in version 1.7.2.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
