{"answers":{"affected":"6 open source packages ship an affected version, including github.com/kyverno/kyverno and kyverno. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-46342 in the wild and no public exploit code.","fix":"Upgrade github.com/kyverno/kyverno to a fixed version for your release line: 1.13.5 or 1.14.0.","what":"CVE-2025-46342 is a high-severity vulnerability in kyverno, published on 30 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-46342 and fix it if it is affected.\n\nWhat it is: CVE-2025-46342 is a high-severity vulnerability in kyverno, published on 30 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-46342 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/kyverno/kyverno (Go): affected all versions; fixed in 1.13.5, 1.14.0\n- github.com/kyverno/kyverno (Go): affected all versions; fixed in 1.13.5\n- github.com/kyverno/kyverno (Go): affected all versions; fixed in 1.13.5\n- github.com/kyverno/kyverno (Go): affected from 1.14.0-alpha.1; fixed in 1.14.0\n- github.com/kyverno/kyverno (Go): affected from 1.14.0-alpha.1; fixed in 1.14.0\n- kyverno (Bitnami): affected all versions; fixed in 1.13.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-46342/ (Markdown: https://insights.sbomify.com/CVE-2025-46342/index.md)","id":"CVE-2025-46342","markdown":"https://insights.sbomify.com/CVE-2025-46342/index.md","name":"CVE-2025-46342","record":{"aliases":["BIT-kyverno-2025-46342","CLEANSTART-2026-SI37771","CLEANSTART-2026-VJ98320","GHSA-jrr2-x33p-6hvc","GO-2025-3652","MINI-46pj-wj5h-xmgc","MINI-5c77-r4jp-pvv2","MINI-9mqv-m25r-4fj7","MINI-mmcp-6g5g-r2v6","MINI-phrf-9mhx-gx22"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes policy engine","requires_auth":"low_privilege","summary":"Attackers with Kubernetes API access can bypass security policies by exploiting a logic error in namespace selector processing, allowing unauthorized operations.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"kyverno","vendor":"kyverno"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-1287","name":"Improper Validation of Specified Type of Input"}],"description":"Kyverno is a policy engine designed for cloud native platform engineering teams. Prior to versions 1.13.5 and 1.14.0, it may happen that policy rules using namespace selector(s) in their match statements are mistakenly not applied during admission review request processing due to a missing error propagation in function `GetNamespaceSelectorsFromNamespaceLister` in `pkg/utils/engine/labels.go`. As a consequence, security-critical mutations and validations are bypassed, potentially allowing attackers with K8s API access to perform malicious operations. This issue has been patched in versions 1.13.5 and 1.14.0.","ecosystems":["Bitnami","Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Kyverno vulnerable to bypass of policy rules that use namespace selectors in match statements","id":"CVE-2025-46342","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"security_feature_bypass","year":"2025"},"n_packages":6,"n_references":2,"next":{"headline":"n8n Vulnerable to Stored XSS through Attachments View Endpoint","id":"CVE-2025-46343"},"packages":[{"ecosystem":"Bitnami","fixed":["1.13.5"],"introduced":["0"],"last_affected":[],"package":"kyverno","purl":"pkg:bitnami/kyverno","source":"BIT-kyverno-2025-46342"},{"ecosystem":"Go","fixed":["1.13.5","1.14.0"],"introduced":["0","1.14.0-alpha.1"],"last_affected":[],"package":"github.com/kyverno/kyverno","purl":"pkg:golang/github.com/kyverno/kyverno","source":"GO-2025-3652"},{"ecosystem":"Go","fixed":["1.13.5"],"introduced":["0"],"last_affected":[],"package":"github.com/kyverno/kyverno","purl":null,"source":"GHSA-jrr2-x33p-6hvc"},{"ecosystem":"Go","fixed":["1.13.5"],"introduced":["0"],"last_affected":[],"package":"github.com/kyverno/kyverno","purl":"pkg:golang/github.com/kyverno/kyverno","source":"GHSA-jrr2-x33p-6hvc"},{"ecosystem":"Go","fixed":["1.14.0"],"introduced":["1.14.0-alpha.1"],"last_affected":[],"package":"github.com/kyverno/kyverno","purl":null,"source":"GHSA-jrr2-x33p-6hvc"},{"ecosystem":"Go","fixed":["1.14.0"],"introduced":["1.14.0-alpha.1"],"last_affected":[],"package":"github.com/kyverno/kyverno","purl":"pkg:golang/github.com/kyverno/kyverno","source":"GHSA-jrr2-x33p-6hvc"}],"prev":{"headline":"Privilege escalation via SSRF when using HTTP auth","id":"CVE-2025-46341"},"products":["kyverno"],"published":"2025-04-30","related":[{"cvss_score":10,"headline":"Kyverno Cross-Namespace Privilege Escalation via Policy apiCall","id":"CVE-2026-22039","kev_date_added":null,"published":"2026-01-27"},{"cvss_score":9.8,"headline":"CVE-2026-4789","id":"CVE-2026-4789","kev_date_added":null,"published":"2026-03-30"},{"cvss_score":8.1,"headline":"Kyverno: ServiceAccount token leaked to external servers via apiCall service URL","id":"CVE-2026-41323","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":8.1,"headline":"kyverno apicall servicecall implicit bearer token injection leaks kyverno serviceaccount token","id":"CVE-2026-40868","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":8.1,"headline":"kyverno verifyImages rule bypass possible with malicious proxy/registry","id":"CVE-2022-47633","kev_date_added":null,"published":"2022-12-23"},{"cvss_score":7.7,"headline":"Kyverno: Cross-Namespace Read Bypasses RBAC Isolation (CVE-2026-22039 Incomplete Fix)","id":"CVE-2026-41068","kev_date_added":null,"published":"2026-04-24"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-30","vendors":["kyverno"]},"summary":"Attackers with Kubernetes API access can bypass security policies by exploiting a logic error in namespace selector processing, allowing unauthorized operations.","url":"https://insights.sbomify.com/CVE-2025-46342/"}