CVE-2026-73968: AnsibleForms: OS command injection in repository git operations
AnsibleForms is a self-hosted web application that turns automation into self-service forms. Prior to 6.2.1, AnsibleForms allows a user with repository management privileges to inject shell syntax through repository uri, branch, name, or host values processed by server/src/models/repo.model.js. The Repo.clone and Repo.addKnownHosts paths interpolate these values into git and ssh-keyscan command strings, and server/src/lib/cmd.js executes the strings through Cmd.executeSilentCommand with shell interpretation enabled. Creating or updating a repository can therefore execute arbitrary commands as the AnsibleForms application process. This issue is fixed in version 6.2.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
AnsibleFormsto a version that resolves this vulnerability.Fixed in 6.2.1
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs repository management privileges in AnsibleForms. They can trigger the vulnerable code path by creating or updating a repository with shell syntax in repository URI, branch, name, or host values.
What level of access can successful exploitation provide?
Injected commands run as the AnsibleForms application process. This can expose, modify, or disrupt resources accessible to that process.
Which deployments are affected?
AnsibleForms versions prior to 6.2.1 are affected where users have repository management privileges and can create or update repository configurations.
What should be done if immediate upgrading is not possible?
Restrict repository management privileges to trusted administrators and prevent untrusted users from creating or modifying repository URI, branch, name, or host values. Review repository configurations for shell metacharacters or unexpected command-like content.