MediumGHSA-pv22-fqcj-7xwhGO-2025-3665

Inspektor Gadget Security Policies Can be Bypassed

Published 6 May 2025 · Updated 6 May 2025

Is your project on an affected github.com/inspektor-gadget/inspektor-gadget?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
>=0.31.0 <0.40.0
Fixed in
0.40.0
Update to the fixed version for your release line, for example:go get github.com/inspektor-gadget/inspektor-gadget@v0.40.0

Details

Security policies like `allowed-gadgets`, `disallow-pulling`, `verify-image` can be bypassed by a malicious client.

Impact

Users running ig in daemon mode or IG on Kubernetes that rely on any of the features mentioned above are vulnerable to this issue. In order to exploit this, the client needs access to the server, like the correct TLS certificates on the ig daemon case or access to the cluster in the Kubernetes case.

Patches

The issue has been fixed in v0.40.0

Workarounds

There is not known workaround to fix it.

Is GHSA-pv22-fqcj-7xwh in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/inspektor-gadget/inspektor-gadget, and gives you the command that fixes it.

More advisories for github.com/inspektor-gadget/inspektor-gadget

  • LowCVE-2026-53941Uprobe gadgets: unprivileged container's ld.so.cache causes high CPU utilization and container startup DoS in github.com/inspektor-gadget/inspektor-gadget · 25 Aug 2026
  • MediumCVE-2026-53941Uprobe gadgets: unprivileged container's ld.so.cache causes high CPU utilization and container startup DoS · 19 Aug 2026
  • LowCVE-2026-24905Inspektor Gadget: Command Injection via malicious buildOptions manipulation in github.com/inspektor-gadget/inspektor-gadget · 25 Jun 2026
  • LowCVE-2026-44778Inspektor Gadget: Unprivileged container can crash USDT note parser via crafted ELF (no shipped gadget affected) in github.com/inspektor-gadget/inspektor-gadget · 25 Jun 2026
  • LowCVE-2026-25996Inspektor Gadget uses unsanitized ANSI Escape Sequences In `columns` Output Mode in github.com/inspektor-gadget/inspektor-gadget · 25 Jun 2026
  • LowCVE-2026-44778Inspektor Gadget: Unprivileged container can crash USDT note parser via crafted ELF (no shipped gadget affected) · 22 Jun 2026
All 9 advisories for github.com/inspektor-gadget/inspektor-gadget

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.