Skip to content

Command Injection via Unsanitized User Input (Low)

Low
jaimergp published GHSA-44q9-rg2q-5g99 Jun 14, 2025

Package

constructor

Affected versions

<=3.11.2

Patched versions

>=3.11.3

Description

Impact

Shell installer scripts process the installation prefix (user_prefix) using an eval statement, which executes unsanitized user input as shell code. Although the script runs with user privileges (not root), an attacker could exploit this by injecting arbitrary commands through a malicious path during installation. Exploitation requires explicit user action (e.g., manually entering a malicious path), similar to self-XSS in browsers

[...]
Do you accept the license terms? [yes|no]
>>> yes

Miniforge3 will now be installed into this location:
/home/stamparm/miniforge3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/home/stamparm/miniforge3] >>> $(cat${IFS}$(cat${IFS}/etc/passwd))
cat: 'root:x:0:0:root:/root:/bin/bash': No such file or directory
cat: 'daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin': No such file or directory
cat: 'bin:x:2:2:bin:/bin:/usr/sbin/nologin': No such file or directory
cat: 'sys:x:3:3:sys:/dev:/usr/sbin/nologin': No such file or directory
cat: 'sync:x:4:65534:sync:/bin:/bin/sync': No such file or directory

Patches

Has the problem been patched? What versions should users upgrade to?

Coming. The fix is trivial.

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

Not typing the malicious path

References

Are there any links users can visit to find out more?

Discovered by Miniforge audits done by 7a Security in partnership with OSTIF.

Severity

Low

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Physical
Attack complexity
High
Privileges required
High
User interaction
Required
Scope
Changed
Confidentiality
None
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:C/C:N/I:N/A:N

CVE ID

CVE-2025-49823

Weaknesses

No CWEs

Credits