CVE-2023-40029
Cluster secret might leak in cluster details page in Argo CD
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
Argo CD is a declarative continuous deployment for Kubernetes. Argo CD Cluster secrets might be managed declaratively using Argo CD / kubectl apply. As a result, the full secret body is stored in`kubectl.kubernetes.io/last-applied-configuration` annotation. pull request #7139 introduced the ability to manage cluster labels and annotations. Since clusters are stored as secrets it also exposes the `kubectl.kubernetes.io/last-applied-configuration` annotation which includes full secret body. In order to view the cluster annotations via the Argo CD API, the user must have `clusters, get` RBAC access. **Note:** In many cases, cluster secrets do not contain any actually-secret information. But sometimes, as in bearer-token auth, the contents might be very sensitive. The bug has been patched in versions 2.8.3, 2.7.14, and 2.6.15. Users are advised to upgrade. Users unable to upgrade should update/deploy cluster secret with `server-side-apply` flag which does not use or rely on `kubectl.kubernetes.io/last-applied-configuration` annotation. Note: annotation for existing secrets will require manual removal.
Argo CD es una implementación continua declarativa para Kubernetes. Los secretos de Argo CD Cluster se pueden administrar de forma declarativa utilizando Argo CD / kubectl apply. Como resultado, el secret body completo se almacena en la anotación `kubectl.kubernetes.io/last-applied-configuration`. La solicitud de extracción #7139 introdujo la capacidad de administrar etiquetas y anotaciones del clúster. Dado que los clústeres se almacenan como secretos, también expone la anotación `kubectl.kubernetes.io/last-applied-configuration` que incluye el secret body completo. Para ver las anotaciones del clúster a través de la API de Argo CD, el usuario debe tener acceso RBAC "clusters, get". **Nota:** En muchos casos, los secretos del clúster no contienen ninguna información realmente secreta. Pero a veces, como en la autenticación de token de portador, el contenido puede ser muy sensible. El error se corrigió en las versiones 2.8.3, 2.7.14 y 2.6.15. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben actualizar/implementar el secreto del clúster con el indicador `server-side-apply` que no utiliza ni depende de la anotación `kubectl.kubernetes.io/last-applied-configuration`. Nota: la anotación de secretos existentes requerirá eliminación manual.
A flaw was found in the ArgoCD package, used by Red Hat GitOps, that allows cluster secrets to be managed declaratively using the `kubectl apply` functionality, resulting in the full secret body being stored in `kubectl.kubernetes.io/last-applied-configuration` annotation. Since ArgoCD has included the ability to manage cluster labels and annotations via its API, an attacker can retrieve sensitive authentication information by leveraging this capability, imposing a high impact on data confidentiality and integrity for the targeted ArgoCD cluster. To perform a successful attack, the malicious actor should have `clusters, get` RBAC access granted to its user.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2023-08-08 CVE Reserved
- 2023-09-07 CVE Published
- 2024-09-13 EPSS Updated
- 2024-09-26 CVE Updated
- 2024-09-26 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-532: Insertion of Sensitive Information into Log File
CAPEC
References (5)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://github.com/argoproj/argo-cd/security/advisories/GHSA-fwr2-64vr-xv9m | 2024-09-26 |
URL | Date | SRC |
---|---|---|
https://github.com/argoproj/argo-cd/commit/4b2e5b06bff2ffd8ed1970654ddd8e55fc4a41c4 | 2023-10-27 | |
https://github.com/argoproj/argo-cd/pull/7139 | 2023-10-27 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2023-40029 | 2023-09-08 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2233203 | 2023-09-08 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Linuxfoundation Search vendor "Linuxfoundation" | Argo Continuous Delivery Search vendor "Linuxfoundation" for product "Argo Continuous Delivery" | >= 2.2.0 < 2.6.15 Search vendor "Linuxfoundation" for product "Argo Continuous Delivery" and version " >= 2.2.0 < 2.6.15" | kubernetes |
Affected
| ||||||
Linuxfoundation Search vendor "Linuxfoundation" | Argo Continuous Delivery Search vendor "Linuxfoundation" for product "Argo Continuous Delivery" | >= 2.7.0 < 2.7.14 Search vendor "Linuxfoundation" for product "Argo Continuous Delivery" and version " >= 2.7.0 < 2.7.14" | kubernetes |
Affected
| ||||||
Linuxfoundation Search vendor "Linuxfoundation" | Argo Continuous Delivery Search vendor "Linuxfoundation" for product "Argo Continuous Delivery" | >= 2.8.0 < 2.8.3 Search vendor "Linuxfoundation" for product "Argo Continuous Delivery" and version " >= 2.8.0 < 2.8.3" | kubernetes |
Affected
|