CVE-2026-24844CWE-78

melange pipeline working-directory could allow command injection

High · published February 4, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
9.4
In the wild
Unconfirmed
What it is

⚡ Attackers could run arbitrary commands just by manipulating build inputs! In versions 0.3.0 to before 0.40.3 of melange, an unsuspecting pipeline can turn into a hacker's playground. 🔥 Think of it like a restaurant order where the kitchen blindly follows any note on the ticket without checking the actual dish — if someone sneaks in a recipe for disaster, the kitchen serves up a big mess! An attacker can exploit this flaw to execute any shell command, potentially gaining full control over the build environment. This could lead to unauthorized access, data leaks, or even worse, allowing attackers to manipulate future builds. It's a high-stakes game where the consequences could be absolutely devastating!

Put simply

Think of it like a restaurant order where the kitchen blindly follows any note on the ticket without checking the actual dish — if someone sneaks in a recipe for disaster, the kitchen serves up a big mess! This vulnerability arises because the ${{vars.*}} or ${{inputs.*}} substitutions in the working-directory are embedded into shell scripts without proper quote escaping, allowing attackers to inject their own commands. Thus, if they have access to build input values, the pipeline becomes a vector for arbitrary command execution.

What to do

An attacker can exploit this flaw to execute any shell command, potentially gaining full control over the build environment. This could lead to unauthorized access, data leaks, or even worse, allowing attackers to manipulate future builds. It's a high-stakes game where the consequences could be absolutely devastating! To protect your environment, upgrade melange to version 0.40.3 immediately. Additionally, review all pipeline definitions to ensure that user inputs are properly sanitized and escaped. Implementing stricter access controls on who can provide build inputs is also a wise move. You've got this! Follow these steps, and you'll keep your pipelines safe and sound. 🛡️

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00201 · 9.4th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2026-02-04T19:31Z
EPSS history
Timeline
  • 04 FEB 19:31Z
    melange pipeline working-directory could allow command injection
    cvelistv5