CVE-2023-40029CWE-200

Cluster secret might leak in cluster details page in Argo CD

Critical · published September 7, 2023

CVSS v3.1
9.9
EPSS
1%
Percentile
67.8
In the wild
Unconfirmed
What it is

🚨 A sneaky annotation is exposing your secrets! The `kubectl.kubernetes.io/last-applied-configuration` annotation in Argo CD stores the full secret body, and that can spell trouble for your sensitive data. 🔥 Think of it like a takeout order receipt accidentally including your credit card details — the kitchen might not know it's sensitive, but anyone who gets that receipt can see everything. That's exactly what this annotation does: it exposes private info under the guise of normal operation. An attacker with the right RBAC access could waltz in and snatch sensitive information, like bearer tokens, which could lead to unauthorized access and full control of your Kubernetes cluster. This isn't just a minor leak — it's like leaving the vault door wide open!

Put simply

Think of it like a takeout order receipt accidentally including your credit card details — the kitchen might not know it's sensitive, but anyone who gets that receipt can see everything. That's exactly what this annotation does: it exposes private info under the guise of normal operation. This vulnerability allows sensitive information stored in cluster secrets to be exposed through the `kubectl.kubernetes.io/last-applied-configuration` annotation, which can be accessed by users who have `clusters, get` RBAC permissions. If exploited, it could lead to unauthorized access to critical secrets.

What to do

An attacker with the right RBAC access could waltz in and snatch sensitive information, like bearer tokens, which could lead to unauthorized access and full control of your Kubernetes cluster. This isn't just a minor leak — it's like leaving the vault door wide open! Upgrade Argo CD to versions 2.8.3, 2.7.14, or 2.6.15 to close this vulnerability immediately. If upgrading isn't possible right now, deploy cluster secrets with the `server-side-apply` flag to avoid using this risky annotation. Don't forget to manually remove the annotation from existing secrets! You've got this! Follow these steps to secure your setup and keep those secrets safe! 🛡️

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.01196 · 67.8th percentile
Weakness
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor
Published
2023-09-07T22:11Z
EPSS history
Timeline
  • 07 SEP 22:11Z
    Cluster secret might leak in cluster details page in Argo CD
    cvelistv5