Nuclio
Nuclio: Unsanitized runtimeAttributes.repositories injected into Groovy build.gradle leads to build-time RCE
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.16.5
Fixed in 1.16.5
Mitigation
Upgrade nuclio to 1.16.5 or later.
References
- Vendor advisory github.com/nuclio/nuclio/security/advisories/G…
- Patch github.com/nuclio/nuclio/pull/4149
- Patch github.com/nuclio/nuclio/commit/4c78040c759068…
1 more
- Release notes github.com/nuclio/nuclio/releases/tag/1.16.5
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.