Bug 1956477 (CVE-2021-3533) - CVE-2021-3533 ansible: race condition in ansible's async code leading to no_log values disclosure
Summary: CVE-2021-3533 ansible: race condition in ansible's async code leading to no_l...
Keywords:
Status: NEW
Alias: CVE-2021-3533
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1959089 1959092 1959093 1959094 1959095 1959096 1959090 1959091
Blocks: 1887243 1956499
TreeView+ depends on / blocked
 
Reported: 2021-05-03 18:35 UTC by Tapas Jena
Modified: 2021-12-20 17:33 UTC (History)
29 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
A flaw was found in Ansible if an ansible user sets ANSIBLE_ASYNC_DIR to a subdirectory of a world writable directory . When this occurs, there is a race condition on the managed machine. A malicious, non-privileged account on the remote machine can exploit the race condition to access the async result data.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Tapas Jena 2021-05-03 18:35:58 UTC
ANSIBLE_ASYNC_DIR defaults to ~/.ansible_async/ but is settable by the user. If the ansible user sets ANSIBLE_ASYNC_DIR to a subdirectory of a World Writable Directory, for instance: ANSIBLE_ASYNC_DIR=/tmp/username-ansible-async/.

When this occurs, there is a race condition on the managed machine.  A malicious, low privileged account on the remote machine can pre-create /tmp/username-ansible-async and then use various attacks to access the async result data.

Comment 2 Tapas Jena 2021-05-10 17:02:10 UTC
Created ansible tracking bugs for this issue:

Affects: epel-all [bug 1959095]
Affects: fedora-all [bug 1959094]
Affects: openstack-rdo [bug 1959096]

Comment 4 Gianluca Gabrielli 2021-05-19 12:35:05 UTC
Hi all,
is there any available patch for that? Thanks


Note You need to log in before you can comment on or make changes to this bug.