Skip to content

AI Resolve vulnerability: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

AI GENERATED PATCH

The suggested code changes were generated by GitLab Duo Vulnerability resolution, an AI feature. Before you apply the code changes, carefully review and test them, to ensure that they solve the vulnerability, don't harm the functional behaviour of your application or introduce new vulnerabilities.

The large language model that generated the suggested code changes was only provided with the affected lines of code, and the vulnerability in that code. It is not aware of any functionality outside of this context.

Description:

Consider possible security implications associated with subprocess module.

Identifiers:

  • Bandit Test ID B404
  • bandit.B404
  • CWE-78
  • A8 - Insecure Deserialization
  • A8:2017 - Insecure Deserialization

Merge request reports