Kyverno ignores subjectRegExp and IssuerRegExp
Description
Kyverno is a policy engine designed for cloud native platform engineering teams. Prior to version 1.14.0-alpha.1, Kyverno ignores subjectRegExp and IssuerRegExp while verifying artifact's sign with keyless mode. It allows the attacker to deploy kubernetes resources with the artifacts that were signed by unexpected certificate. Deploying these unauthorized kubernetes resources can lead to full compromise of kubernetes cluster. Version 1.14.0-alpha.1 contains a patch for the issue.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/kyverno/kyvernoGo | >= 1.13.0, < 1.14.0-alpha.1 | 1.14.0-alpha.1 |
Affected products
1Patches
18777672fb17bchanges if condition to check for RegExp field (#12237)
1 file changed · +1 −1
pkg/cosign/cosign.go+1 −1 modified@@ -534,7 +534,7 @@ func extractDigest(imgRef string, payload []payload.SimpleContainerImage) (strin } func matchSignatures(signatures []oci.Signature, subject, subjectRegExp, issuer, issuerRegExp string, extensions map[string]string) error { - if subject == "" && issuer == "" && len(extensions) == 0 { + if subject == "" && issuer == "" && subjectRegExp == "" && issuerRegExp == "" && len(extensions) == 0 { return nil }
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- github.com/advisories/GHSA-46mp-8w32-6g94ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-29778ghsaADVISORY
- github.com/Mohdcode/kyverno/blob/373f942ea9fa8b63140d0eb0e101b9a5f71033f3/pkg/cosign/cosign.goghsax_refsource_MISCWEB
- github.com/kyverno/kyverno/commit/8777672fb17bdf252bd2e7d8de3441e240404a60ghsax_refsource_MISCWEB
- github.com/kyverno/kyverno/pull/12237ghsax_refsource_MISCWEB
- github.com/kyverno/kyverno/security/advisories/GHSA-46mp-8w32-6g94ghsax_refsource_CONFIRMWEB
- github.com/kyverno/policies/issues/1246ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.