SecurityContext

CVE-2023-44392: Garden - Insecure Deserialization

  • Cve: CVE-2023-44392
  • Name: Garden - Insecure Deserialization
  • Description: Garden provides automation for Kubernetes development and testing. Prior tov ersions 0.13.17 and 0.12.65, Garden has a dependency on the cryo library, which is vulnerable to code injection due to an insecure implementation of deserialization. Garden stores serialized objects using cryo in the Kubernetes `ConfigMap` resources prefixed with `test-result` and `run-result` to cache Garden test and run results. These `ConfigMaps` are stored either in the `garden-system` namespace or the configured user namespace. When a user invokes the command `garden test` or `garden run` objects stored in the `ConfigMap` are retrieved and deserialized. This can be used by an attacker with access to the Kubernetes cluster to store malicious objects in the `ConfigMap`, which can trigger a remote code execution on the users machine when cryo deserializes the object. In order to exploit this vulnerability, an attacker must have access to the Kubernetes cluster used to deploy garden remote environments. Further, a user must actively invoke either a `garden test` or `garden run` which has previously cached results. The issue has been patched in Garden versions `0.13.17` (Bonsai) and `0.12.65` (Acorn). Only Garden versions prior to these are vulnerable. No known workarounds are available.
  • Impact: Attackers with cluster access can execute arbitrary code on the user's machine during deserialization, leading to remote code execution.
  • Remediation: Update Garden to version 0.13.17 or 0.12.65 where the vulnerability is patched.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs access to the Kubernetes cluster and must invoke garden test or run commands
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
  • Epss score: 0.00756
  • Epss percentile: 0.55892
  • Assignee: [email protected]
  • Published at: 2023-10-09T20:15:10Z
  • Age in days: 1142
  • Modified at: 2026-06-17T06:27:33Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-44392
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

UrlSourceTags
https://github.com/garden-io/garden/commit/3117964da40d3114f129a6131b4ada89eaa4eb8cnvdPatch
https://github.com/garden-io/garden/security/advisories/GHSA-hm75-6vc9-8rprnvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
garden:garden>= 0.13.0, < 0.13.17; < 0.12.65nonvd/v1/products/garden/garden

Projects

RepositoryLink kindsIndexedUrl
garden-io/gardencommit, security_advisoryyes/v1/repositories/garden-io/garden

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts