{"url":"http://public2.vulnerablecode.io/api/packages/85207?format=json","purl":"pkg:gem/ejson2env@2.0.8","type":"gem","namespace":"","name":"ejson2env","version":"2.0.8","qualifiers":{},"subpath":"","is_vulnerable":false,"next_non_vulnerable_version":null,"latest_non_vulnerable_version":null,"affected_by_vulnerabilities":[],"fixing_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/51407?format=json","vulnerability_id":"VCID-7852-d7f1-3bca","summary":"Insufficient input sanitization in ejson2env\n### Summary\nThe `ejson2env` tool has a vulnerability related to how it writes to\n`stdout`. Specifically, the tool is intended to write an export\nstatement for environment variables and their values. However, due\nto inadequate output sanitization, there is a potential risk where\nvariable names or values may include malicious content, resulting\nin additional unintended commands being output to `stdout`. If this\noutput is improperly utilized in further command execution, it could\nlead to command injection vulnerabilities, allowing an attacker to\nexecute arbitrary commands on the host system.\n\n### Details\nThe vulnerability exists because environment variables are not\nproperly sanitized during the decryption phase, which enables\nmalicious keys or encrypted values to inject commands.\n\n### Impact\nAn attacker with control over `.ejson` files can inject commands\nin the environment where `source $(ejson2env)` or `eval ejson2env`\nare executed.\n\n### Mitigation\n- Update to a version of `ejson2env` that sanitizes the output\n  during decryption or\n- Do not use `ejson2env` to decrypt untrusted user secrets or\n- Do not evaluate or execute the direct output from `ejson2env`\n  without removing nonprintable characters.\n\n### Credit\nThanks to security researcher [Demonia](https://hackerone.com/demonia?type=user)\nfor reporting this issue.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2025-48069","reference_id":"","reference_type":"","scores":[{"value":"0.00639","scoring_system":"epss","scoring_elements":"0.70952","published_at":"2026-06-09T12:55:00Z"},{"value":"0.00639","scoring_system":"epss","scoring_elements":"0.70928","published_at":"2026-06-08T12:55:00Z"},{"value":"0.00639","scoring_system":"epss","scoring_elements":"0.70942","published_at":"2026-06-07T12:55:00Z"},{"value":"0.00639","scoring_system":"epss","scoring_elements":"0.70959","published_at":"2026-06-06T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2025-48069"},{"reference_url":"https://github.com/Shopify/ejson2env","reference_id":"","reference_type":"","scores":[{"value":"6.6","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/Shopify/ejson2env"},{"reference_url":"https://github.com/Shopify/ejson2env/commit/592b3ceea967fee8b064e70983e8cec087b6d840","reference_id":"","reference_type":"","scores":[{"value":"6.6","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2025-05-21T18:17:11Z/"}],"url":"https://github.com/Shopify/ejson2env/commit/592b3ceea967fee8b064e70983e8cec087b6d840"},{"reference_url":"https://github.com/Shopify/ejson2env/security/advisories/GHSA-2c47-m757-32g6","reference_id":"","reference_type":"","scores":[{"value":"6.6","scoring_system":"cvssv3","scoring_elements":""},{"value":"6.6","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H"},{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2025-05-21T18:17:11Z/"}],"url":"https://github.com/Shopify/ejson2env/security/advisories/GHSA-2c47-m757-32g6"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48069","reference_id":"CVE-2025-48069","reference_type":"","scores":[{"value":"6.6","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48069"},{"reference_url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ejson2env/CVE-2025-48069.yml","reference_id":"CVE-2025-48069.YML","reference_type":"","scores":[{"value":"6.6","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ejson2env/CVE-2025-48069.yml"},{"reference_url":"https://github.com/advisories/GHSA-2c47-m757-32g6","reference_id":"GHSA-2c47-m757-32g6","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-2c47-m757-32g6"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/85207?format=json","purl":"pkg:gem/ejson2env@2.0.8","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/ejson2env@2.0.8"}],"aliases":["CVE-2025-48069","GHSA-2c47-m757-32g6"],"risk_score":3.1,"exploitability":"0.5","weighted_severity":"6.2","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-7852-d7f1-3bca"}],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/ejson2env@2.0.8"}