Affected versions
Ubuntu22.04:LTS/ansible-core
- Affected versions
- * || =2.12.0-1 || =2.12.0-1ubuntu0.1
- Fixed version
- Not reported
Ubuntu24.04:LTS/ansible-core
- Affected versions
- * || =2.14.9-2 || =2.14.11-1 || =2.14.11-2 || =2.14.13-1 || =2.16.3-0ubuntu1 || =2.16.3-0ubuntu2
- Fixed version
- Not reported
Ubuntu26.04:LTS/ansible-core
- Affected versions
- * || =2.19.0-1ubuntu1 || =2.19.4-1 || =2.20.1-1
- Fixed version
- Not reported
Ubuntu26.10/ansible-core
- Affected versions
- Unknown
- Fixed version
- Not reported
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.

