CVE-2026-84503
Awaiting Analysis Awaiting Analysis - Queue

Git Command Injection in Ansible Core

Vulnerability report for CVE-2026-84503, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-09

Last updated on: 2026-11-09

Assigner: redhat-SADP

Description

A flaw was found in ansible-core's ansible.builtin.git module. The module invokes git (ls-remote, clone, fetch) with the repository URL as a positional argument and without a "--" separator, so a repository URL that begins with a dash is interpreted by git as a command-line option. A caller that passes an attacker-controlled repository URL to the module can trigger argument injection (for example --upload-pack/--exec), resulting in arbitrary command execution on the host running the module.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-09
Last Modified
2026-11-09
Generated
2026-11-09
AI Q&A
2026-11-09
EPSS Evaluated
N/A
NVD
EUVD

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-88 The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in Ansible's git module. When the module runs git commands like ls-remote or clone, it passes the repository URL as a direct argument without a separator. If the URL starts with a dash, git interprets it as a command-line option instead of a URL. An attacker can craft a malicious URL starting with a dash to inject additional git options like --upload-pack or --exec, leading to arbitrary command execution on the system running the module.

Detection Guidance

To detect this vulnerability, inspect Ansible playbooks or tasks using the ansible.builtin.git module. Check for repository URLs passed as arguments without proper validation. Review git command invocations in logs for unexpected options like --upload-pack or --exec.

Impact Analysis

If you use the affected ansible.builtin.git module with untrusted input for repository URLs, an attacker could execute arbitrary commands on your system. This could allow them to take control of your machine, steal data, install malware, or disrupt operations. The impact depends on the privileges of the Ansible process.

Compliance Impact

This vulnerability could lead to unauthorized access or data breaches, violating compliance requirements like GDPR (data protection) or HIPAA (health data security). Organizations using the affected module may face regulatory penalties, loss of trust, and legal consequences if exploited.

Mitigation Strategies

Update ansible-core to the latest version where this flaw is patched. Avoid passing untrusted repository URLs to the git module. Use strict input validation for all repository URLs. Consider disabling the git module if not required.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-84503. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...