Critical Security Flaw in ansible-core: Arbitrary Code Execution Risk
Summary
ALSA-2026:57148: Important: ansible-core security update. Affects ansible-core versions < 1:2.16.16-2.el10_2.1. Fixed in 1:2.16.16-2.el10_2.1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Ansible-core is a powerful, model-driven configuration management tool that facilitates multi-node deployment and remote task execution without the need for additional software on remote nodes. It operates over SSH, allowing users to manage systems efficiently. However, a recent vulnerability has been identified that could allow attackers to execute arbitrary code through argument injection during the installation of roles via ansible-galaxy.
Vulnerability Detail
The vulnerability arises from an argument injection flaw in the ansible-galaxy role install command. This issue can lead to arbitrary code execution, allowing an attacker to execute malicious code on the target system. The vulnerability is tracked under CVE-2026-11332 and poses significant risks, particularly in environments where ansible-core is used to manage critical infrastructure.
How To Fix
Minimum fixed version
1:2.16.16-2.el10_2.1
This is the first release that contains the fix.
sudo dnf update ansible-core
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can avoid using the ansible-galaxy role install command until the package is updated. Additionally, ensure that only trusted roles are installed to mitigate the risk of exploitation.
Conclusion
The identified vulnerability in ansible-core presents a serious risk of arbitrary code execution through argument injection. Users are strongly advised to update their packages to the latest version to mitigate this risk. Temporary workarounds are available, but the best course of action is to apply the security update as soon as possible.
See every vulnerability recorded for ansible-core →
FAQ
The vulnerability is an argument injection flaw that can lead to arbitrary code execution during the installation of roles.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.
As a temporary measure, avoid using the ansible-galaxy role install command and only install trusted roles.
More details about the CVE-2026-11332 can be found on the official CVE page.
While the primary risk is arbitrary code execution, it could potentially lead to data loss depending on the actions taken by the executed code.
Related vulnerabilities
Recent vulnerabilities recorded for ansible-core.