PT-2026-6212 · Melange · Melange
CVSS v3.1
8.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
melange versions 0.3.0 through 0.40.2
Description
melange enables users to create apk packages using declarative pipelines. A security issue exists in versions 0.3.0 through 0.40.2 where an attacker with the ability to supply build input values, but without the ability to modify pipeline definitions, can execute arbitrary shell commands. This occurs when pipelines utilize
${{vars.*}} or ${{inputs.*}} substitutions within the working-directory. The working-directory field is incorporated into shell scripts without adequate quote escaping, allowing for command execution. The vulnerable parameters are vars.* and inputs.*.Recommendations
Update to version 0.40.3 or later.
Exploit
Fix
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Melange