-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent RCE via inventory plugins #815
Conversation
TIL: don't make |
(In this case it's OK anyway since that variable is set to a fixed string. So nothing nefarious can happen this way.) |
Backport to stable-2: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply bf1281a on top of patchback/backports/stable-2/bf1281ae7fd7ce41ecaec2ca05c5b54d913d4298/pr-815 Backporting merged PR #815 into main
🤖 @patchback |
@markuman thanks again for reviewing this! |
* Prevent RCE via inventory plugins. * Do not make ansible_connection unsafe. * Add test. (cherry picked from commit bf1281a)
* Prevent RCE via inventory plugins. * Do not make ansible_connection unsafe. * Add test. (cherry picked from commit bf1281a)
SUMMARY
Fixing a potential RCE when using the inventory plugins.
Ref: https://www.die-welt.net/2024/03/remote-code-execution-in-ansible-dynamic-inventory-plugins/
Ref: https://forum.ansible.com/t/remote-code-execution-in-ansible-dynamic-inventory-plugins/4332/3
ISSUE TYPE
COMPONENT NAME
inventory plugins