Command Injection Affecting github.com/shopify/ejson2env/v2 package, versions <2.0.8


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMSHOPIFYEJSON2ENVV2-10246651
  • published26 May 2025
  • disclosed21 May 2025
  • creditMohamed Dief

Introduced: 21 May 2025

NewCVE-2025-48069  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade github.com/Shopify/ejson2env/v2 to version 2.0.8 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection due to the improper handling of environment variables during the decryption process. An attacker with control over .ejson files can execute arbitrary commands on the host system by injecting malicious keys or encrypted values that are interpreted as commands when the output is used in command execution contexts such as source or eval.

CVSS Base Scores

version 4.0
version 3.1