Arbitrary Argument Injection Affecting ansible-core package, versions [,2.17.6rc1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-ANSIBLECORE-18233949
  • published23 Jul 2026
  • disclosed21 Jul 2026
  • creditUnknown

Introduced: 21 Jul 2026

NewCVE-2026-16493  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade ansible-core to version 2.17.6rc1 or higher.

Overview

ansible-core is an a radically simple IT automation system. It handles configuration management, application deployment, cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration. Ansible makes complex changes like zero-downtime rolling updates with load balancers easy.

Affected versions of this package are vulnerable to Arbitrary Argument Injection via the collection install process when handling git sources without proper argument separation. An attacker can execute arbitrary commands by supplying a crafted git source URI containing malicious arguments. This is only exploitable if collections are installed from untrusted or non-HTTPS git sources.

Workaround

This vulnerability can be mitigated by installing collections only from trusted sources such as Ansible Galaxy, Red Hat Automation Hub, or verified internal repositories using HTTPS URLs; carefully inspecting requirements.yml files for suspicious git URIs; ensuring git version 2.12 or later is used; and restricting the GIT_ALLOW_PROTOCOL environment variable to necessary protocols.

CVSS Base Scores

version 4.0
version 3.1