---
id: "CVE-2026-84503"
page: "https://infrastack.ai/live/CVE-2026-84503"
kind: "vulnerability"
aliases: ["CVE-2026-84503"]
title: "Ansible git module lets a dash-prefixed repository URL run commands"
severity: "medium"
cvss: 6.7
epss: null
exploited: false
status: "open"
category: "infrastructure"
products: []
ecosystems: []
tags: ["ansible", "ansible-core", "automation", "ci-cd", "infrastructure"]
not_affected_if: ["fixed-repo-urls", "no-user-controlled-input"]
published_at: "2026-11-09T18:17:34+00:00"
first_seen_at: "2026-11-09T18:27:56+00:00"
updated_at: "2026-11-09T18:29:19+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-84503", "first_seen_at": "2026-11-09T18:27:56+00:00"}]
exploit_sources: []
---

# Ansible git module lets a dash-prefixed repository URL run commands

Link for people: https://infrastack.ai/live/CVE-2026-84503 (this .md is for agents)

The ansible.builtin.git module passes the repository URL to git without a "--" separator, so a URL starting with a dash is read as a git option. An attacker who controls the URL can use options such as --upload-pack to run arbitrary commands on the host running the module.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed ansible-core version with `ansible --version`.
- Search playbooks and roles for `ansible.builtin.git` or `git:` tasks whose repo value comes from user input, variables, or external data.

## Timeline

- 2026-11-09T18:27:56+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-84503

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
