GHSA-pv22-fqcj-7xwh Inspektor Gadget Security Policies Can be Bypassed
A malicious client can bypass Inspektor Gadget security policies, allowing unauthorized gadget execution or image pulling if the client has access to the server or cluster.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-pv22-fqcj-7xwh?
GHSA-pv22-fqcj-7xwh is a vulnerability in github.com/inspektor-gadget/inspektor-gadget, published on 6 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Which versions are affected by GHSA-pv22-fqcj-7xwh?
3 open source packages ship an affected version, including github.com/inspektor-gadget/inspektor-gadget.
| Package | Affected | Fixed in |
|---|---|---|
github.com/inspektor-gadget/inspektor-gadget Go | From 0.31.0 | 0.40.0 |
github.com/inspektor-gadget/inspektor-gadget Go | From 0.31.0 | 0.40.0 |
github.com/inspektor-gadget/inspektor-gadget Go | From 0.31.0 | 0.40.0 |
How do I fix GHSA-pv22-fqcj-7xwh?
Upgrade github.com/inspektor-gadget/inspektor-gadget to 0.40.0 or later.
Is GHSA-pv22-fqcj-7xwh being exploited?
There is no known exploitation of GHSA-pv22-fqcj-7xwh in the wild and no public exploit code.
Sources
Also known as GO-2025-3665.