Vulnerabilities in pkg:golang/github.com/cilium/ebpf

PACKAGE
Advisory Identifier: GHSA-xhgw-qwwf-pg32
Advisory Summary

CVE-2026-10722 is a LOW (CVSS 3.3) ebpf-go is vulnerable to integer vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Github.com/cilium/ebpf libraries in the Go ecosystem. The issue involves ebpf-go is vulnerable to integer overflow via loadcollectionspecfromreader. Remediation is available by upgrading affected packages to version 0.22.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/cilium/ebpf

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/cilium/ebpf. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-xhgw-qwwf-pg32 CVE-2026-10722 LOW ebpf-go is vulnerable to integer overflow via LoadCollectionSpecFromReader

CVE-2026-10722 at a Glance

CVE Identifier CVE-2026-10722
GHSA Identifier GHSA-xhgw-qwwf-pg32
Severity LOW
CVSS v3.1 Base Score 3.3
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product Github.com/cilium/ebpf
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2026-10722

To remediate this vulnerability, upgrade all affected Github.com/cilium/ebpf 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/cilium/ebpf fixed: 0.22.0
Upgrade github.com/cilium/ebpf to 0.22.0
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/cilium/ebpf

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-10722, inspect your project dependencies for Github.com/cilium/ebpf:

inspect dependencies for github.com/cilium/ebpf

Analyze the terminal output to locate any version of Github.com/cilium/ebpf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.22.0), 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-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In Github.com/cilium/ebpf, 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

A vulnerability has been found in cilium ebpf up to 0.21.0. This affects the function loadRawSpec of the file btf/btf.go of the component LoadCollectionSpec/LoadCollectionSpecFromReader. Such manipulation of the argument offset leads to integer overflow. The attack can only be performed from a local environment. The exploit has been disclosed to the public and may be used. The name of the patch is 533dfc82fd228bfadf42ea7180c39de7d9af47fa. A patch should be applied to remediate this issue.

CVE-2026-10722 Affected Github.com/cilium/ebpf Versions

1 component(s)
Fixed Versions:
0.22.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cilium/ebpf
Go
< 0.22.0
0.22.0

References

Frequently Asked Questions

What is CVE-2026-10722?
CVE-2026-10722 is a security vulnerability in Github.com/cilium/ebpf involving ebpf-go is vulnerable to integer overflow via LoadCollectionSpecFromReader under CWE-190: Integer Overflow or Wraparound.
Which Github.com/cilium/ebpf versions are affected?
Affected versions include releases prior to 0.22.0 across affected packages: github.com/cilium/ebpf.
What version fixes CVE-2026-10722?
Upgrading to 0.22.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cilium/ebpf affected?
Yes, github.com/cilium/ebpf is affected in releases prior to 0.22.0. Upgrade your dependency to 0.22.0 or later.
What is the CVSS score of CVE-2026-10722?
CVE-2026-10722 has a CVSS v3.1 base score of 3.3 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2026-10722?
CVE-2026-10722 is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check Go dependencies for CVE-2026-10722?
Run the dependency tree command: 'inspect dependencies for github.com/cilium/ebpf'. 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-xhgw-qwwf-pg32",
  "modified" : "2026-08-17T13:36:32Z",
  "published" : "2026-06-03T15:30:40Z",
  "aliases" : [ "CVE-2026-10722" ],
  "summary" : "ebpf-go is vulnerable to integer overflow via LoadCollectionSpecFromReader",
  "details" : "A vulnerability has been found in cilium ebpf up to 0.21.0. This affects the function loadRawSpec of the file btf/btf.go of the component LoadCollectionSpec/LoadCollectionSpecFromReader. Such manipulation of the argument offset leads to integer overflow. The attack can only be performed from a local environment. The exploit has been disclosed to the public and may be used. The name of the patch is 533dfc82fd228bfadf42ea7180c39de7d9af47fa. A patch should be applied to remediate this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cilium/ebpf"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.22.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-10722"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cilium/ebpf/issues/2019"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cilium/ebpf/pull/2021"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cilium/ebpf/commit/533dfc82fd228bfadf42ea7180c39de7d9af47fa"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/thesmartshadow/256bff0f8042c584f993ace89074a815"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cilium/ebpf"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/cve/CVE-2026-10722"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/818291"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/368091"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/368091/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-17T13:36:32Z",
    "nvd_published_at" : "2026-06-03T13:16:19Z"
  }
}