CVE-2025-48069 json
ejson2env has insufficient input sanitization
published 2025-05-21 17 mo ago modified 2026-06-17 4 mo ago also GHSA-2c47-m757-32g6 , GO-2025-3702 , EUVD-2025-16051
- cvss
- 6.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/Shopify/ejson2env/v2 2.0.8
- rubygems ejson2env 2.0.8
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250523T151856-1.1
opensuse advisories openSUSE-SU-2025:15159-1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 17 mo ago
Exploit prediction
1.42% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 6.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/Shopify/ejson2env/v2 | <2.0.8 |
2.0.8 |
| rubygems | ejson2env | <2.0.8 |
2.0.8 |
| go | github.com/Shopify/ejson2env | all versions |
no fix listed |
Affected products
- Shopify ejson2env
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/Shopify/ejson2env/commit/592b3ceea967fee8b064e70983e8cec087b6d840
web, patch
-
github.com
/Shopify/ejson2env/security/advisories/GHSA-2c47-m757-32g6
web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-48069
advisory
-
github.com
/Shopify/ejson2env
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/ejson2env/CVE-2025-48069.yml
web
Sources
- CVE List CVE-2025-48069
- GitHub Advisory GHSA-2c47-m757-32g6
- NVD CVE-2025-48069
- OSV GO-2025-3702
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.