GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GHSA-3783-62vc-jr7xcritical9.6

ConsoleMe has an Arbitrary File Read Vulnerability via Limited Git command

Check your stack

The advisory, in context

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

Affected packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

Ecosystem versions

Earlier releases before 1.4.0

Fixed in 1.4.0

58 explicitly affected versions

0.0.0, 1.0.6.dev10, 1.1.1, 1.1.10.dev1, 1.1.10.dev2, 1.1.10.dev3, 1.1.10.dev4, 1.1.10.dev5, 1.1.10.dev6, 1.1.2, 1.1.2.dev1, 1.1.3, 1.1.3.dev1, 1.1.3.dev2, 1.1.3.dev3, 1.1.3.dev4, 1.1.3.dev5, 1.1.3.dev6, 1.1.3.dev7, 1.1.3.dev8, 1.1.4, 1.1.5, 1.1.5.dev1, 1.1.5.dev2, 1.1.5.dev3, 1.1.6, 1.1.6.dev1, 1.1.6.dev2, 1.1.7, 1.1.8, 1.1.8.dev1, 1.1.8.dev2, 1.1.8.dev3, 1.1.8.dev4, 1.1.9, 1.1.9.dev1, 1.2.0, 1.2.1, 1.2.1.dev1, 1.2.2, 1.2.2.dev3, 1.2.2.dev4, 1.2.3.dev1, 1.2.3.dev10, 1.2.3.dev11, 1.2.3.dev12, 1.2.3.dev2, 1.2.3.dev3, 1.2.3.dev4, 1.2.3.dev5, 1.2.3.dev6, 1.2.3.dev7, 1.2.3.dev8, 1.2.3.dev9, 1.3.0, 1.3.1, 1.3.1.dev3, 1.3.2.dev1

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0"
        },
        {
          "fixed": "1.4.0"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "0.0.0",
    "1.0.6.dev10",
    "1.1.1",
    "1.1.10.dev1",
    "1.1.10.dev2",
    "1.1.10.dev3",
    "1.1.10.dev4",
    "1.1.10.dev5",
    "1.1.10.dev6",
    "1.1.2",
    "1.1.2.dev1",
    "1.1.3",
    "1.1.3.dev1",
    "1.1.3.dev2",
    "1.1.3.dev3",
    "1.1.3.dev4",
    "1.1.3.dev5",
    "1.1.3.dev6",
    "1.1.3.dev7",
    "1.1.3.dev8",
    "1.1.4",
    "1.1.5",
    "1.1.5.dev1",
    "1.1.5.dev2",
    "1.1.5.dev3",
    "1.1.6",
    "1.1.6.dev1",
    "1.1.6.dev2",
    "1.1.7",
    "1.1.8",
    "1.1.8.dev1",
    "1.1.8.dev2",
    "1.1.8.dev3",
    "1.1.8.dev4",
    "1.1.9",
    "1.1.9.dev1",
    "1.2.0",
    "1.2.1",
    "1.2.1.dev1",
    "1.2.2",
    "1.2.2.dev3",
    "1.2.2.dev4",
    "1.2.3.dev1",
    "1.2.3.dev10",
    "1.2.3.dev11",
    "1.2.3.dev12",
    "1.2.3.dev2",
    "1.2.3.dev3",
    "1.2.3.dev4",
    "1.2.3.dev5",
    "1.2.3.dev6",
    "1.2.3.dev7",
    "1.2.3.dev8",
    "1.2.3.dev9",
    "1.3.0",
    "1.3.1",
    "1.3.1.dev3",
    "1.3.2.dev1"
  ]
}

References