GPU VulnDB

Database/Control plane, storage & DevOps

ansible-core git module: repository URL starting with a dash is parsed as a git option, enabling command execution

CVSS 6.7CVE-2026-84503Control plane, storage & DevOpscurated

Impact

The ansible.builtin.git module passes the repository URL to git ls-remote, clone and fetch without a "--" separator. A URL that begins with a dash is therefore read as a git option such as --upload-pack, which runs arbitrary commands on the host executing the module. This only matters where an attacker can influence the repo URL a playbook passes in, for example through templated variables or self-service job templates. The scoring reflects that (local vector, high complexity, user interaction required). Where it applies, the attacker gets command execution on the hosts Ansible provisions or on the controller, with the privileges of the task.

Who can reach it

A user who can control the repository URL given to ansible.builtin.git, for example through playbook variables or inventory data. Low privileges are needed, and a playbook run has to pick up the value.

What to do

Apply the ansible-core update from Red Hat or upstream once it is available for your release. The record does not name a fixed version. Until then, validate or hard-code repository URLs in playbooks and do not pass untrusted input to the git module's repo parameter.

References

Related entries

All Control plane, storage & DevOps entries

This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.