Command Injection Vulnerability in Ansible Core Constructor by Red Hat
CVE-2026-16493

7.8HIGH

What is CVE-2026-16493?

A vulnerability exists in Ansible Core where the _extract_collection_from_git() function constructs git clone commands without a proper separator before user-supplied URLs. This oversight permits an attacker to provide a malicious collection source URI with crafted payloads, leading to arbitrary command execution upon executing 'ansible-galaxy collection install'. The flaw is a continuation of issues addressed in a prior fix, which targeted the role install path but overlooked the similar collection install procedures.

References

CVSS V3.1

Score:
7.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Red Hat would like to thank Ta Duc Thien (NTCS) for reporting this issue.
.