Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/kyverno/kyverno
  4. ›
  5. CVE-2025-47281

CVE-2025-47281: Kyverno's Improper JMESPath Variable Evaluation Lead to Denial of Service

July 22, 2025 (updated July 23, 2025)

A Denial of Service (DoS) vulnerability exists in Kyverno due to improper handling of JMESPath variable substitutions. Attackers with permissions to create or update Kyverno policies can craft expressions using the {{@}} variable combined with a pipe and an invalid JMESPath function (e.g., {{@ | non_existent_function }}).

This leads to a nil value being substituted into the policy structure. Subsequent processing by internal functions, specifically getValueAsStringMap, which expect string values, results in a panic due to a type assertion failure (interface {} is nil, not string). This crashes Kyverno worker threads in the admission controller (and can lead to full admission controller unavailability in Enforce mode) and causes continuous crashes of the reports controller pod, leading to service degradation or unavailability."

References

  • github.com/advisories/GHSA-r5p3-955p-5ggq
  • github.com/kyverno/kyverno
  • github.com/kyverno/kyverno/commit/cbd7d4ca24de1c55396fc3295e9fc3215832be7c
  • github.com/kyverno/kyverno/security/advisories/GHSA-r5p3-955p-5ggq
  • nvd.nist.gov/vuln/detail/CVE-2025-47281

Code Behaviors & Features

Detect and mitigate CVE-2025-47281 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.14.2

Fixed versions

  • 1.14.2

Solution

Upgrade to version 1.14.2 or above.

Impact 7.7 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-248: Uncaught Exception

Source file

go/github.com/kyverno/kyverno/CVE-2025-47281.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 08 Jan 2026 12:19:52 +0000.