CVE-2026-52833

Nuclio: Unsanitized runtimeAttributes.repositories injected into Groovy build.gradle leads to build-time RCE

Published Sep 2, 2026 CVSS 3.1 · 8 High EPSS < 1% KEV · Not listed
Description
Nuclio is a "Serverless" framework for Real-Time Events and Data Processing. Prior to version 1.16.5, Nuclio's Java runtime generates a build.gradle file during function builds using Go's text/template package. The template renders runtimeAttributes.repositories[] values with the {{ . }} action, which performs no escaping. An attacker can embed a closing brace (}) to break out of the repositories {} block and append arbitrary Groovy statements that execute unconditionally during the Gradle configuration phase. This issue has been patched in version 1.16.5.

Analysis

AI-generated

Technical impact

Nuclio’s Java runtime uses Go’s text/template to render a build.gradle file when a function is built. The template inserts the runtimeAttributes.repositories[] values using a {{ . }} action that performs no escaping. An attacker can include a closing brace to break out of the repositories block and inject arbitrary Groovy statements. These statements are executed unconditionally during the Gradle configuration phase, allowing remote code execution. The weakness is a classic unescaped template injection (CWE‑94).

Affected Systems

All Nuclio deployments running a version older than 1.16.5 are affected, as the vulnerable template logic is present only in those releases.

Risk and Exploitability

The CVSS v3.1 score of 8 (High) indicates a serious flaw. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers likely target the build process during function deployment by supplying malicious runtimeAttributes.repositories values. Successful exploitation grants code execution with the privileges of the build server, potentially compromising the entire Nuclio environment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Nuclio to version 1.16.5 or later, where the template rendering bug is fixed.
  • If an upgrade cannot be performed immediately, restrict runtimeAttributes.repositories to a whitelist of trusted repositories or remove user‑supplied values before they are stored in the function definition, effectively preventing injection.
  • Re‑build all existing functions after the upgrade or restriction to confirm that no arbitrary Groovy code is executed during Gradle configuration.

Generated by OpenCVE AI on September 3, 2026 at 10:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3v79-m2cg-89ww Nuclio: Unsanitized runtimeAttributes.repositories injected into Groovy build.gradle leads to build-time RCE
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Nuclio
Nuclio nuclio
Vendors & Products Nuclio
Nuclio nuclio
Type Values Removed Values Added
Description Nuclio is a "Serverless" framework for Real-Time Events and Data Processing. Prior to version 1.16.5, Nuclio's Java runtime generates a build.gradle file during function builds using Go's text/template package. The template renders runtimeAttributes.repositories[] values with the {{ . }} action, which performs no escaping. An attacker can embed a closing brace (}) to break out of the repositories {} block and append arbitrary Groovy statements that execute unconditionally during the Gradle configuration phase. This issue has been patched in version 1.16.5.
Title Nuclio: Unsanitized runtimeAttributes.repositories injected into Groovy build.gradle leads to build-time RCE
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 2, 2026, 6:05 PM
Reserved
Jun 8, 2026, 6:11 PM
Status
Deferred
Published
Sep 2, 2026, 5:17 PM
Modified
Sep 9, 2026, 9:04 PM