Advisory Published
Updated

REDHAT-BUG-2318271

First published: Sat Oct 12 2024(Updated: )

The ansible-core `user` module contains an exploitable flaw that can allow an unprivileged user to silently create or replace the contents of any file on any system path and take ownership of it when a privileged user executes the `user` module against the unprivileged user's home directory. If the unprivileged user has traversal permissions on the directory containing the exploited target file, they retain full control over the contents of the file as its owner. Requirements to exploit (if any) - Someone with root privileges must use the `user` module with the`generate_ssh_key` option (disabled by default) and targeting an unprivileged user. - Access to the same unprivileged user on a system managed by the above automation.

Affected SoftwareAffected VersionHow to fix
Ansible

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-2318271?

    The severity of REDHAT-BUG-2318271 is classified as high due to its potential to allow unprivileged users to manipulate system files.

  • How do I fix REDHAT-BUG-2318271?

    To fix REDHAT-BUG-2318271, update the ansible-core to the latest version recommended by Red Hat.

  • Who is affected by REDHAT-BUG-2318271?

    All users of the ansible-core user module are affected by REDHAT-BUG-2318271, especially those executing it in unprivileged directories.

  • What are the potential impacts of REDHAT-BUG-2318271?

    The potential impacts of REDHAT-BUG-2318271 include unauthorized file modifications and escalated ownership for sensitive files.

  • Is there a workaround for REDHAT-BUG-2318271?

    A possible workaround for REDHAT-BUG-2318271 is to restrict the execution of the user module in untrusted directories until a patch is applied.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203