{"cve":"CVE-2025-48069","nvd":{"published":"2025-05-21T18:15:53.550","modified":"2026-06-17T09:29:06.093","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6},"cwes":["CWE-78"],"references":["https://github.com/Shopify/ejson2env/commit/592b3ceea967fee8b064e70983e8cec087b6d840","https://github.com/Shopify/ejson2env/security/advisories/GHSA-2c47-m757-32g6"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:01:57.636215869+00:00"},"epss":{"cve":"CVE-2025-48069","score":0.01424,"percentile":0.72912,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2c47-m757-32g6","url":"https://osv.dev/vulnerability/GHSA-2c47-m757-32g6","summary":"Insufficient input sanitization in ejson2env ","modified":"2025-05-27T19:26:20.546533Z","packages":[{"ecosystem":"Go","name":"github.com/Shopify/ejson2env/v2","purl":"pkg:golang/github.com/Shopify/ejson2env/v2","ranges":["<2.0.8"],"fixed":["2.0.8"]},{"ecosystem":"RubyGems","name":"ejson2env","purl":"pkg:gem/ejson2env","ranges":["<2.0.8"],"fixed":["2.0.8"]},{"ecosystem":"Go","name":"github.com/Shopify/ejson2env","purl":"pkg:golang/github.com/Shopify/ejson2env","ranges":["all versions"],"fixed":[]}]},{"id":"GO-2025-3702","url":"https://osv.dev/vulnerability/GO-2025-3702","summary":"Insufficient input sanitization in ejson2env in github.com/Shopify/ejson2env","modified":"2026-03-03T04:56:37.683242Z","packages":[{"ecosystem":"Go","name":"github.com/Shopify/ejson2env","purl":"pkg:golang/github.com/Shopify/ejson2env","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/Shopify/ejson2env/v2","purl":"pkg:golang/github.com/Shopify/ejson2env/v2","ranges":["<2.0.8"],"fixed":["2.0.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}