Incorrect Permission Assignment for Critical Resource Affecting github.com/kubewarden/kubewarden-controller/api/policies/v1 package, versions >=1.7.0 <1.21.0-rc2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMKUBEWARDENKUBEWARDENCONTROLLERAPIPOLICIESV1-8685112
  • published2 Feb 2025
  • disclosed31 Jan 2025
  • creditFlavio Castelli

Introduced: 31 Jan 2025

NewCVE-2025-24376  (opens in a new tab)
CWE-732  (opens in a new tab)

How to fix?

Upgrade github.com/kubewarden/kubewarden-controller/api/policies/v1 to version 1.21.0-rc2 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Permission Assignment for Critical Resource in policy_validation.go, which allows an attacker to prevent the creation and update of PolicyReport objects to hide non-compliant resources. This is possible by abusing an AdmissionPolicy or AdmissionPolicyGroup, which evaluate namespaced resources. It is also possible to abuse an AdmissionPolicy to alter the contents of the PolicyReports created in the namespace.

References

CVSS Scores

version 4.0
version 3.1