Skip to content

fix(F1085): scope rm to /configs volume in deleteViaEphemeral - #1616

Merged
molecule-ai[bot] merged 2 commits into
stagingfrom
f1085-fix
Apr 22, 2026
Merged

molecule-ai[bot] merged 2 commits into
stagingfrom
f1085-fix

Conversation

@molecule-ai

@molecule-ai molecule-ai Bot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Fixes F1085 regression introduced by 49ab614. Concat rm form in deleteViaEphemeral was exec-2arg (unrestricted path traversal). Fix scopes rm to /configs volume.

Molecule AI CP-QA added 2 commits April 22, 2026 16:38
Regressed by commit 49ab614 ("CWE-78/CWE-22 — block shell injection
in deleteViaEphemeral") which changed the rm form from the scoped
concat "/configs/" + filePath to the unscoped 2-arg "/configs", filePath.

With 2 args, rm receives /configs as the first target — rm -rf /configs
attempts to delete the entire volume mount before processing filePath,
which is the F1085 (Misconfiguration - Filesystems) defect. The concat
form passes a single scoped path so rm only touches files inside /configs.

validateRelPath call retained as CWE-22 defence-in-depth.
Amends the CWE-22+CWE-78 incident entry to record that commit 49ab614
regressed the F1085 (volume deletion scope) fix, and that f1085-fix
commit a432df5 restores the correct concat form.
@molecule-ai molecule-ai Bot added bug Something isn't working security Security issue — do not merge without security review labels Apr 22, 2026
@molecule-ai
molecule-ai Bot merged commit de11188 into staging Apr 22, 2026
7 checks passed
@molecule-ai
molecule-ai Bot deleted the f1085-fix branch April 22, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working security Security issue — do not merge without security review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants