Skip to content
OpenAdvisories
Medium · 6.7 GHSA-pv22-fqcj-7xwh GO-2025-3665

Inspektor Gadget Security Policies Can be Bypassed

Published May 6, 2025 · Updated May 6, 2025 · Assigned by GHSA

Description

Security policies like [`allowed-gadgets`](https://inspektor-gadget.io/docs/latest/reference/restricting-gadgets), [`disallow-pulling`](https://inspektor-gadget.io/docs/latest/reference/disallow-pulling), [`verify-image`](https://inspektor-gadget.io/docs/latest/reference/verify-assets#verify-image-based-gadgets) 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.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/inspektor-gadget/inspektor-gadget >= 0.31.0, < 0.40.0 0.40.0 GHSA-pv22-fqcj-7xwh

References