Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-48069

MEDIUM 6.6EPSS 84%

ejson2env has insufficient input sanitization

Also known as GHSA-2c47-m757-32g6, GO-2025-3702

Mitigation

  • Upgrade github.com/Shopify/ejson2env/v2 to 2.0.8 or later.
  • Upgrade ejson2env to 2.0.8 or later.

Who should check

  • Projects that depend on Go package github.com/Shopify/ejson2env/v2 (< 2.0.8)
  • Projects that depend on RubyGems package ejson2env (< 2.0.8)
  • Projects that depend on Go package github.com/Shopify/ejson2env
  • Anyone running Shopify ejson2env < 2.0.8

Vulnerability facts

Affected
github.com/Shopify/ejson2env/v2 < 2.0.8; ejson2env < 2.0.8; github.com/Shopify/ejson2env
Fixed in
2.0.8
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
6.6 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: High
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
2.25% chance of exploitation in 30 days (percentile 84, 2026-11-26)
CWE
CWE-78
Published
Modified

Description

ejson2env allows users to decrypt EJSON secrets and export them as environment variables. Prior to version 2.0.8, the `ejson2env` tool has a vulnerability related to how it writes to `stdout`. Specifically, the tool is intended to write an export statement for environment variables and their values. However, due to inadequate output sanitization, there is a potential risk where variable names or values may include malicious content, resulting in additional unintended commands being output to `stdout`. If this output is improperly utilized in further command execution, it could lead to command injection, allowing an attacker to execute arbitrary commands on the host system. Version 2.0.8 sanitizes output during decryption. Other mitigations involve avoiding use of `ejson2env` to decrypt untrusted user secrets and/or avoiding evaluating or executing the direct output from `ejson2env` without removing nonprintable characters.

Affected and fixed versions

Package / productAffectedFixedSource
Go github.com/Shopify/ejson2env/v2< 2.0.82.0.8osv
RubyGems ejson2env< 2.0.82.0.8osv
Go github.com/Shopify/ejson2env——osv
Shopify ejson2env< 2.0.8—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-48069. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-48069.md
Affected: github.com/Shopify/ejson2env/v2 < 2.0.8; ejson2env < 2.0.8; github.com/Shopify/ejson2env
Fixed in: 2.0.8

Steps:
1. Search this machine and project for github.com/Shopify/ejson2env/v2 (Go), ejson2env (RubyGems), github.com/Shopify/ejson2env (Go), Shopify ejson2env: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-48069 being exploited?

There is no confirmed exploitation: CVE-2025-48069 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.25% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-48069?

Medium: CVSS 6.6 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2025-48069?

github.com/Shopify/ejson2env/v2 < 2.0.8; ejson2env < 2.0.8; github.com/Shopify/ejson2env.

Is there a fix for CVE-2025-48069?

Yes. Fixed in 2.0.8. Upgrade github.com/Shopify/ejson2env/v2 to 2.0.8 or later. Upgrade ejson2env to 2.0.8 or later.

How do I check if I'm affected by CVE-2025-48069?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors