---
id: "CVE-2024-5023"
kind: "vulnerability"
aliases: ["CVE-2024-5023", "GHSA-3783-62vc-jr7x"]
title: "ConsoleMe has an Arbitrary File Read Vulnerability via Limited Git command"
severity: "critical"
cvss: 9.6
epss: 0.00936
exploited: false
status: "open"
category: "package"
products: [{"name": "consoleme", "fixed": ["1.4.0"], "affected": "< 1.4.0", "ecosystem": "pypi"}]
ecosystems: ["pypi"]
tags: ["aws", "consoleme", "cwe-77", "package", "python", "self-hosted"]
not_affected_if: ["auth-required", "default-config"]
published_at: "2024-05-16T18:15:10+00:00"
first_seen_at: "2026-10-27T16:25:43+00:00"
updated_at: "2026-10-27T16:33:07+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-3783-62vc-jr7x", "first_seen_at": "2026-10-27T16:25:43+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-5023", "first_seen_at": "2026-10-27T16:33:07+00:00"}]
---

# ConsoleMe has an Arbitrary File Read Vulnerability via Limited Git command

ConsoleMe passes a user-supplied filename from its templated-resource self-service flow directly to a git CLI command, so a flag can be injected in place of a filename. An authenticated user can use a specific flag to make git print the contents of any file the ConsoleMe server process can read, which can expose AWS secrets held on the server.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:consoleme affected < 1.4.0 fixed 1.4.0

## How to check

- Check the ConsoleMe configuration for `cache_resource_templates.repositories`; if it is set to a non-empty list, the deployment is exposed.
- Check the installed version with `pip show consoleme`; versions below `1.4.0` are affected.

## Fix

- Upgrade the `consoleme` PyPI package to `1.4.0` or later.
- If upgrading is not possible, remove `cache_resource_templates.repositories` from the configuration or set it to an empty array; this disables templated resources for self-service.

## Timeline

- 2026-10-27T16:25:43+00:00 ghsa https://github.com/advisories/GHSA-3783-62vc-jr7x
- 2026-10-27T16:33:07+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-5023

## From the sources

## ID: NFLX-2024-002

### Impact
Authenticated users can achieve limited RCE in ConsoleMe, restricted to flag inputs on a single CLI command. Due to this constraint, it is not currently known whether full RCE is possible but it is unlikely. 
However, a specific flag allows authenticated users to read any server files accessible by the ConsoleMe process. Given ConsoleMe's role as an AWS identity broker, accessing files containing secrets on the server could potentially be exploited for privilege escalation.

Deployments of ConsoleMe that allow templated resources are impacted and urged to patch immediately. Deployments that do not permit templated resources are not affected.

To determine if your ConsoleMe deployment uses templated resources, check the configuration value for `cache_resource_templates.repositories`. If this value does not exist or is an empty array, your deployment is not impacted.
### Description
The self-service flow for templated resources in ConsoleMe accepts a user-supplied JSON post body, which includes the filename for the templated resource. However, this user-supplied filename is not properly sanitized and is passed directly as a string to a CLI command. This allows users to input flags instead of filenames. By passing a specific flag with a filename value, users can induce an error that reveals the contents of the specified file, allowing them to read any files readable by the system user executing the ConsoleMe server process.

### Patches
This issue has been patched in version [v1.4.0](https://pypi.org/project/consoleme/1.4.0/) via https://github.com/Netflix/consoleme/pull/9380. 
If you are unable to upgrade to the latest version, users can selectively apply the code changes in the above PR. Alternatively, removing the configuration item `cache_resource_templates.repositories` or adding it as an empty array should mitigate the issue, but will result in broken functionality (templated resources will no longer be supported for self-service).

### Credit
[Jay Dhulia](https://github.com/jaydhulia)

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
