# CVE-2025-48069: ejson2env has insufficient input sanitization

- Severity: Medium 6.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.42%, higher than 73% of CVEs (2026-12-01)
- Published: 2025-05-21T17:43:43.680Z
- Modified: 2026-06-17T09:29:06.093Z
- Also known as: GHSA-2c47-m757-32g6, GO-2025-3702
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- Shopify ejson2env: < 2.0.8
- github.com/Shopify/ejson2env/v2 (Go): before 2.0.8
- ejson2env (RubyGems): before 2.0.8
- github.com/Shopify/ejson2env (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Shopify/ejson2env/security/advisories/GHSA-2c47-m757-32g6> (advisory, web)
- <https://github.com/Shopify/ejson2env/commit/592b3ceea967fee8b064e70983e8cec087b6d840> (fix, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48069> (advisory)
- <https://github.com/Shopify/ejson2env> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ejson2env/CVE-2025-48069.yml> (web)

## Sources

- CVE List: [CVE-2025-48069](https://www.cve.org/CVERecord?id=CVE-2025-48069), CVE Terms of Use, modified 2025-05-21
- GitHub Advisory Database: [GHSA-2c47-m757-32g6](https://github.com/advisories/GHSA-2c47-m757-32g6), CC-BY-4.0, modified 2025-05-27
- Go Vulnerability Database: [GO-2025-3702](https://pkg.go.dev/vuln/GO-2025-3702), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-48069](https://nvd.nist.gov/vuln/detail/CVE-2025-48069), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-48069 · Whole record: https://cve.day/CVE-2025-48069.json · Rebuilt by cve.day 2026-11-25T22:58:58.367Z
