Intel

AIKIDO-2024-10017

django-migration-linter is vulnerable to OS Command Injection

OS Command Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Apr 8, 2024

99

Critical Risk

This Affects:

pythondjango-migration-linter
0.0.1 - 5.0.0
Fixed in 5.1.0
Are you affected? Scan for Free

TL;DR

If your 'git-commit-id' comes from a potentially untrusted source (e.g., an API), an attacker could manipulate it to execute shell commands, such as: ./manage.py lintmigrations --git-commit-id '; rm -rf dangerous', potentially running harmful code.

Who does this affect?

You are affected if you are using a version of this package = 5.0.0.

Background info

django-migration-linter is vulnerable to OS Command Injection in versions 0.0.1 - 5.0.0.

How to fix this

Upgrade the django-migration-linter library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform