Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. ejson2env
  4. ›
  5. CVE-2025-48069

CVE-2025-48069: Insufficient input sanitization in ejson2env

May 21, 2025 (updated May 27, 2025)

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 vulnerabilities, allowing an attacker to execute arbitrary commands on the host system.

References

  • github.com/Shopify/ejson2env
  • github.com/Shopify/ejson2env/commit/592b3ceea967fee8b064e70983e8cec087b6d840
  • github.com/Shopify/ejson2env/security/advisories/GHSA-2c47-m757-32g6
  • github.com/advisories/GHSA-2c47-m757-32g6
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/ejson2env/CVE-2025-48069.yml
  • nvd.nist.gov/vuln/detail/CVE-2025-48069

Code Behaviors & Features

Detect and mitigate CVE-2025-48069 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.8

Fixed versions

  • 2.0.8

Solution

Upgrade to version 2.0.8 or above.

Impact 6.6 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

gem/ejson2env/CVE-2025-48069.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:12 +0000.