Skip to navigation

Threat reportVulnerabilityTL-2026-4854

Helm Chart Template Injection via Unescaped .Values (YAML Injection in Kubernetes Manifests)

mediumACTIVE

Synacktiv research shows that unvalidated, user-controlled .Values inputs in Helm chart templates allow YAML injection (for example via multiline block scalars) that can alter existing Kubernetes resource specs or add entirely new resources. The risk is highest where developers control chart values while administrators control templates, notably in ArgoCD deployments. First disclosed .

Key facts

IdentifiersTL-2026-4854, CVE-2022-24348, CVE-2022-31036
Also known asHelm template injection, Helm YAML injection, Charting your way in
SeverityMEDIUM
First disclosed
Exploitation statusPublic proof-of-concept exploit for a linked CVE
EPSSCVE-2022-24348: 2.7% (86.3th percentile); CVE-2022-31036: 0.8% (59.4th percentile)
Affected productsHelm Helm CLI; Argo Project Argo CD (Helm-based Applications via Application CRD); Community Helm charts interpolating .Values without quote, type casting or values.schema.json
Weaknesses (CWE)CWE-74, CWE-20
ToolsArgo CD, Helm
MITRE ATT&CK techniquesT1059 Command and Scripting Interpreter, T1190 Exploit Public-Facing Application, T1199 Trusted Relationship, T1609 Container Administration Command, T1610 Deploy Container, T1611 Escape to Host, T1685 Disable or Modify Tools
MotivationUNKNOWN
Target sectorstechnology, cloud, finance, government administration
Target regionsGlobal
Detection rules9 (1 shown free)
Sources12 cited sources

Detection coverage

As of 2026-10-30, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4854 across Splunk SPL, Microsoft KQL and Sigma, covering 6 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Helm Template Injection — Privileged Container Applied by Argo CD Service Account

Detects a workload (Pod, Deployment, StatefulSet, DaemonSet, Job, CronJob) created or modified by the Argo CD application-controller/server service account whose container securityContext sets privileged: true. This is the end state of the Synacktiv Helm template injection (TL-2026-4854) where an unescaped .Values image tag is broken out with a '|-' block scalar and a 'securityContext: privileged: true' block is injected, bypassing Pod Security Admission intent and enabling container escape (T1611). Requires Kubernetes audit logging at Request or RequestResponse level for workload resources.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1610, T1611, T1190
  • Data sources: kubernetes_audit, kube:apiserver-audit, azure_aks_kube_audit
  • Severity: high
  • Confidence: high

Splunk SPL

index=kubernetes sourcetype="kube:apiserver-audit" earliest=-24h stage=ResponseComplete verb IN ("create","update","patch") objectRef.resource IN ("pods","deployments","statefulsets","daemonsets","jobs","cronjobs") user.username IN ("system:serviceaccount:*:argocd-application-controller","system:serviceaccount:*:argocd-server") | eval priv=mvappend('requestObject.spec.containers{}.securityContext.privileged','requestObject.spec.template.spec.containers{}.securityContext.privileged','requestObject.spec.jobTemplate.spec.template.spec.containers{}.securityContext.privileged') | where match(mvjoin(priv,","),"true") | stats count AS events min(_time) AS first_seen values(objectRef.name) AS workloads values(verb) AS verbs BY user.username objectRef.namespace objectRef.resource | convert ctime(first_seen)

Microsoft KQL

AzureDiagnostics
| where TimeGenerated > ago(24h) and Category in ('kube-audit','kube-audit-admin')
| extend a = parse_json(log_s)
| where tostring(a.stage) == 'ResponseComplete'
| extend user = tostring(a.user.username), verb = tostring(a.verb), res = tostring(a.objectRef.resource), ns = tostring(a.objectRef.namespace), nm = tostring(a.objectRef.name), body = tostring(a.requestObject)
| where user matches regex @'^system:serviceaccount:[^:]+:argocd-(application-controller|server)$'
| where verb in ('create','update','patch') and res in ('pods','deployments','statefulsets','daemonsets','jobs','cronjobs')
| where body contains '"privileged":true'
| summarize Events=count(), FirstSeen=min(TimeGenerated), Workloads=make_set(nm, 20) by user, res, ns

Sigma

title: Privileged Container Injected Into Argo CD Applied Workload (Helm Template Injection)
id: 7c1e5a3e-4b8d-4f2a-9a61-3d2e8b0c1a01
status: experimental
description: Detects a workload created or modified by the Argo CD service account with a container securityContext privileged true, the end state of Helm template injection via unescaped .Values (TL-2026-4854).
references:
  - https://www.synacktiv.com/en/publications/charting-your-way-in-helm-template-injection.html
author: Threadlinqs Team
date: 2026/10/30
tags:
  - attack.privilege-escalation
  - attack.t1611
  - attack.execution
  - attack.t1610
  - attack.initial-access
  - attack.t1190
logsource:
  product: kubernetes
  service: audit
detection:
  selection_actor:
    user.username|re: '^system:serviceaccount:[^:]+:argocd-(application-controller|server)$'
  selection_verb:
    verb:
      - create
      - update
      - patch
  selection_priv_pod:
    requestObject.spec.containers.securityContext.privileged: true
  selection_priv_tpl:
    requestObject.spec.template.spec.containers.securityContext.privileged: true
  condition: selection_actor and selection_verb and 1 of selection_priv_*
falsepositives:
  - Legitimate privileged system components (CNI, CSI, node-exporter, log agents) deployed through Argo CD
level: high

Known false positives:

  • Legitimate privileged infrastructure workloads (CNI plugins, CSI drivers, node agents, eBPF sensors) deployed via Argo CD into kube-system or platform namespaces
  • Platform-team charts that intentionally require privileged mode and are reviewed out of band

Tuning notes: Exclude known platform namespaces (kube-system, monitoring, security-agents) and allow-listed workload names via a lookup. Adjust the service account pattern if Argo CD runs under a custom name or if Helm is applied by a CI identity; add that identity to user.username. Requires audit policy level Request or higher for workload resources, otherwise requestObject is absent.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • Helm Template Injection — Helm CLI Invoked With YAML-Injection Payload in --set Values · unlock with TL Creds
  • Helm Template Injection — Cluster-Admin Role Binding Created by Argo CD Service Account · unlock with TL Creds
  • Helm Template Injection — Exec, Attach or Port-Forward Using Argo CD Service Account · unlock with TL Creds
  • Helm Template Injection — Helm Schema Validation Bypassed With --skip-schema-validation · unlock with TL Creds
  • Helm Template Injection — Host Namespace, hostPath or Escape Capability Workload Applied by Argo CD · unlock with TL Creds
  • Helm Template Injection — Argo CD AppProject clusterResourceWhitelist Widened · unlock with TL Creds
  • Helm Template Injection — Namespace and RBAC Resources Created by Argo CD Service Account · unlock with TL Creds
  • Helm Template Injection — Shell or Download Command and Args Injected Into Argo CD Workload · unlock with TL Creds

Indicators of compromise

As of 2026-10-30, Threadlinqs Intelligence tracks 6 indicators of compromise for TL-2026-4854.

6 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Helm 3 is injectable by default; Helm 4 (12 November 2025) narrows the attack via Server-Side Apply but still allows injecting new valid resources.

This is a class of misconfiguration/design weakness rather than a single product bug: no CVE or CVSS score has been assigned and the source does not report in-the-wild exploitation. Helm chart templates use Go templating, and values from .Values are frequently interpolated into YAML manifests without quoting, type casting or validation. If an attacker (or a low-privileged developer) controls those values, they can break out of the intended scalar and inject YAML structure.

Synacktiv (Paul Barbé), who encountered the issue during a Kubernetes cluster audit where a Helm chart was applied through ArgoCD, documents several injection primitives. (1) Multiline block-scalar injection using the YAML pipe operator, e.g. replicaCount set to '|\n 3\n injectedAttribute: True', which adds attributes at the Deployment spec level. (2) Newline-stripping with '|-' to close a quoted string context, e.g. an image tag value of '1.0.0"' followed by a securityContext block with privileged: true, which yields a privileged container that bypasses the intent of Pod Security Admission. (3) Multi-document injection with the '---' separator to define entirely new resources such as a Namespace, Pods, Roles, ClusterRoles and ClusterRoleBindings outside the intended resource scope. (4) Context absorption using dummy resources to neutralise malformed YAML left over from the template. Injecting command and args fields gives arbitrary command execution within the container.

Helm 3 only renders the manifest and does not validate it against Kubernetes schemas, so unknown fields (e.g. spec.injectedAttribute) are silently accepted and injection succeeds by default. Helm 4 (released 12 November 2025 at KubeCon + CloudNativeCon North America) uses Server-Side Apply with strict field validation, so invalid attributes on existing resources fail with a schema validation error. Attackers can however still inject valid resource kinds through the document separator, so Helm 4 is only a partial mitigation. Per third-party release coverage, upgrades and rollbacks of releases originally created under Helm 3 keep the apply method the release was created with, so migrated estates may remain on client-side apply (secondary source; verify in your environment).

In ArgoCD, charts are deployed through the Application CRD. Multi-source setups intended to restrict developers to modifying values only remain exploitable when templates lack escaping: anyone with push privileges to the values repository can deploy arbitrary resources or workloads. The default ArgoCD configuration grants cluster-admin privileges, so impact is privilege escalation from a repo-write/values-only role to the privileges of the ArgoCD service account (often cluster-wide).

Mitigations documented in the source: use the quote function for strings and int/float64 casts for numbers, regexMatch plus fail for allow-listed formats, enforce values.schema.json (validated on helm template, install, upgrade and lint), restrict AppProject clusterResourceWhitelist, run ArgoCD namespace-scoped with Role/RoleBinding instead of a cluster-admin ClusterRole, and enforce Kubernetes Validating Admission Policies (CEL) such as denying privileged containers. Severity MEDIUM is an analyst estimate, not source-provided.

MITRE ATT&CK techniques by tactic:

Execution

T1059 Command and Scripting Interpreter; T1609 Container Administration Command; T1610 Deploy Container

Initial Access

T1190 Exploit Public-Facing Application; T1199 Trusted Relationship

execution

T1610 Deploy Container

Privilege Escalation

T1611 Escape to Host

defense-impairment

T1685 Disable or Modify Tools

Remediation

Patches

  • No CVE or vendor patch: this is a template-authoring weakness. Helm 4 (12 November 2025) mitigates field injection on existing resources via Server-Side Apply

Immediate actions

  • Audit Helm templates for .Values interpolated without quote, int or float64 casting, especially image tags, replica counts and free-text fields
  • Review who has push rights to values repositories consumed by ArgoCD Applications and Helm releases
  • Restrict AppProject clusterResourceWhitelist to the resource kinds a team legitimately deploys

Workarounds

  • Use {{ printf "%s:%s" .Values.image.repository .Values.image.tag | quote }} for strings and {{ .Values.replicaCount | int }} for numbers
  • Use regexMatch with fail to allow-list value formats in templates
  • Do not pass --skip-schema-validation in pipelines

Longer-term hardening

  • Ship a strict values.schema.json (types plus regex patterns) with every chart; it is enforced on helm template, install, upgrade and lint
  • Run ArgoCD namespace-scoped with Role/RoleBinding rather than a cluster-admin ClusterRole
  • Enforce Kubernetes Validating Admission Policies (CEL) to block privileged containers and other unsafe pod specs
  • Migrate to Helm 4 so Server-Side Apply strict field validation rejects undeclared fields

Affected and fixed versions

  • Helm — Helm CLI
    Vulnerable versions: 3.x (injection allowed by default)
    Fixed in: 4.x (partial: Server-Side Apply rejects undeclared fields, but new valid resources can still be injected)
  • Argo Project — Argo CD (Helm-based Applications via Application CRD)
    Vulnerable versions: Deployments applying charts with unescaped .Values, including multi-source values-only setups
  • Community — Helm charts interpolating .Values without quote, type casting or values.schema.json
    Vulnerable versions: Any chart lacking escaping or schema validation

Timeline

  • Synacktiv reports a separate Argo CD repo-server unauthenticated RCE flaw to maintainers (January 2025, day not stated; per third-party coverage; context only, not the Helm injection issue)
  • Helm v4.0.0 released at KubeCon + CloudNativeCon North America (Atlanta), the first major Helm release in six years, with Server-Side Apply and strict field validation that rejects undeclared fields on existing resources
  • Companion SSTIC 2026 slides 'charting_your_way_in_sstic_2026.pdf' hosted by Synacktiv under the 2026-06 upload path
  • Article publishes working injection payloads: multiline block-scalar attribute injection, privileged securityContext injection, command/args injection and multi-document Namespace/Pod/Role injection
  • Synacktiv publishes 'Charting your way in: Helm template injection' (Paul Barbé), documenting YAML injection through unescaped .Values in Helm charts and ArgoCD deployments
  • Synacktiv publishes a separate unauthenticated RCE in Argo CD repo-server (no CVE or fix at time of coverage); noted for context as the same research team and the same GitOps attack surface
  • Cloud Security Alliance publishes a research note on the separate unpatched Argo CD repo-server flaw, highlighting GitOps pipeline risk

Sources cited

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 12 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats