Skip to content
OpenAdvisories
High openSUSE-SU-2022:0081-1 26 CVEs

Security update for ansible

Published Mar 16, 2022 · Updated Feb 4, 2026

Summary

Ansible was updated to 2.9.21 to fix lots of bugs and security issues.

Update to version 2.9.20, maintenance release containing numerous bugfixes.

Update to version 2.9.19 with minor changes and a few bug fixes.

Update to version 2.9.18:

* CVE-2021-20228 where default and fallback values for no_log parameters
to modules were not previously masked. (bsc#1181935)
* CVE-2021-20178 where several parameters to the snmp_facts module were
logged and displayed despite containing sensitive information. (bsc#1180816)
* CVE-2021-20180 where several parameters to the
bitbucket_pipeline_variable were logged and displayed despite
containing sensitive information. (bsc#1180942)
* CVE-2021-20191 which addresses a number of modules whose parameters
were logged and displayed despite containing sensitive
information. For the full list of affected modules, refer to the
changelog linked below. (bsc#1181119)

Update to version 2.9.17 with minor changes and a few bug fixes.

Update to version 2.9.16 with minor changes and many bug fixes.

update to version 2.9.15 with following breaking change:

* ansible-galaxy login command has been removed

update to version 2.9.14 with many small improvements and bug fixes,
most notably:

* kubectl - connection plugin now redact kubectl_token and
kubectl_password in console log (CVE-2020-1753 bsc#1166389).

update to version 2.9.13 with many bug fixes, most notably:

* A security issue was addressed in the 'dnf' module, which previously
did not check GPG signatures of packages.
* A bug in the 'cron' module was fixed. In some cases prior to this
fix, the module would inadvertently remove cron entries.

update to version 2.9.12 with many bug fixes,
most notably the following security fixes:

* security issue - copy - Redact the value of the no_log 'content'
parameter in the result's invocation.module_args in check mode.
Previously when used with check mode and with '-vvv', the module would
not censor the content if a change would be made to the destination path.
(CVE-2020-14332 bsc#1174302)
* security issue atomic_move - change default permissions when creating
temporary files so they are not world readable
(https://github.com/ansible/ansible/issues/67794) (CVE-2020-1736 bsc#1164134)
* Fix warning for default permission change when no mode is specified.
Follow up to https://github.com/ansible/ansible/issues/67794.
(CVE-2020-1736)
* Sanitize no_log values from any response keys that might be returned
from the uri module (CVE-2020-14330 bsc#1174145).
* reset logging level to INFO due to CVE-2019-14846.

update to version 2.9.11 with many bug fixes

update to version 2.9.10 with many bug fixes.

- Add CVE-2020-1733_avoid_mkdir_p.patch to fix CVE-2020-1733
(bsc#1164140)

update to version 2.9.9

* fix for a regression introduced in 2.9.8

update to version 2.9.8, maintenance release containing numerous bugfixes

update to version 2.9.7 with many bug fixes,
especially for these security issues:

- bsc#1164140 CVE-2020-1733 - insecure temporary directory when
running become_user from become directive
- bsc#1164139 CVE-2020-1734 shell enabled by default in a pipe
lookup plugin subprocess
- bsc#1164137 CVE-2020-1735 - path injection on dest parameter
in fetch module
- bsc#1164134 CVE-2020-1736 atomic_move primitive sets
permissive permissions
- bsc#1164138 CVE-2020-1737 - Extract-Zip function in win_unzip
module does not check extracted path
- bsc#1164136 CVE-2020-1738 module package can be selected by
the ansible facts
- bsc#1164133 CVE-2020-1739 - svn module leaks password when
specified as a parameter
- bsc#1164135 CVE-2020-1740 - secrets readable after
ansible-vault edit
- bsc#1165393 CVE-2020-1746 - information disclosure issue in
ldap_attr and ldap_entry modules
- bsc#1166389 CVE-2020-1753 - kubectl connection plugin leaks
sensitive information
- bsc#1167532 CVE-2020-10684 - code injection when using
ansible_facts as a subkey
- bsc#1167440 CVE-2020-10685 - modules which use files
encrypted with vault are not properly cleaned up
- bsc#1167873 CVE-2020-10691 - archive traversal vulnerability in ansible-galaxy collection install [2]

Fixed before 2.9.6, but not yet listed:
- bsc#1171162 CVE-2020-10729 two random password lookups in
same task return same value
- bsc#1157968 CVE-2019-14904 vulnerability in solaris_zone
module via crafted solaris zone
- bsc#1157969 CVE-2019-14905 malicious code could craft
filename in nxos_file_copy module
- bsc#1112959 CVE-2018-16837 Information leak in 'user' module patch added
- (bsc#1137528) CVE-2019-10156: ansible: templating causing an
- bsc#1118896 CVE-2018-16876 Information disclosure in vvv+ mode with no_log on (https://github.com/ansible/ansible/pull/49569)
- Includes fix for bsc#1099808 (CVE-2018-10875) ansible.cfg is being read
from current working directory allowing possible code execution

Fixed packages 2

ReleasePackageFixed in
openSUSE · Leap 15.3 ansible 2.9.21-bp153.2.3.1
SUSE · Package Hub 15 SP3 ansible 2.9.21-bp153.2.3.1

Vulnerabilities 26

  • High 7.9

    Code Injection, Race Condition, and Execution with Unnecessary Privileges in Ansible

    A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.9 and 2.9.6 respectively, when using ansible_facts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansible_facts after th…

  • High 7.8

    Ansible Arbitrary Code Execution

    A flaw was found in ansible. ansible.cfg is read from the current working directory which can be altered to make it point to a plugin or a module path under the control of an attacker, thus allowing the attacker to execute arbitrary code.

  • High 7.8

    Ansible Leaks Data Passed to ssh-keygen

    Ansible "User" module leaks any data which is passed on as a parameter to ssh-keygen. This could lean in undesirable situations such as passphrases credentials passed as a parameter for the ssh-keygen executable. Showing those credentials in clear text form f…

  • High 7.5

    Path Traversal in Ansible

    A flaw was found in Ansible 2.7.17 and prior, 2.8.9 and prior, and 2.9.6 and prior when using the Extract-Zip function from the win_unzip module as the extracted file(s) are not checked if they belong to the destination folder. An attacker could take advantag…

  • High 7.5

    Ansible Exposes Sensitive Information

    A flaw was found in the Ansible Engine 2.9.18, where sensitive info is not masked by default and is not protected by the no_log feature when using the sub-option feature of the basic.py module. This flaw allows an attacker to obtain sensitive information. The…

  • High 7.4

    OS Command Injection in ansible

    A flaw was found in the pipe lookup plugin of ansible. Arbitrary commands can be run, when the pipe lookup plugin uses subprocess.Popen() with shell=True, by overwriting ansible facts and the variable is not escaped by quote plugin. An attacker could take adv…

  • High 7.3

    Ansible Uses Plugins That Disclose Credentials

    In Ansible, all Ansible Engine versions up to ansible-engine 2.8.5, ansible-engine 2.7.13, ansible-engine 2.6.19, were logging at the DEBUG level which lead to a disclosure of credentials if a plugin used a library that logged credentials at the DEBUG level. …

  • High 7.3

    OS Command Injection and Improper Input Validation in ansible

    A flaw was found in the solaris_zone module from the Ansible Community modules. When setting the name for the zone on the Solaris host, the zone name is checked by listing the process with the 'ps' bare command on the remote machine. An attacker could take ad…

  • High 7.3

    Externally Controlled Reference to a Resource in Another Sphere, Improper Input Validation, and External Control of File Name or Path in Ansible

    A vulnerability was found in Ansible Engine versions 2.9.x before 2.9.3, 2.8.x before 2.8.8, 2.7.x before 2.7.16 and earlier, where in Ansible's nxos_file_copy module can be used to copy files to a flash or bootflash on NXOS devices. Malicious code could craf…

  • Medium 5.5

    Insertion of Sensitive Information into Log File and Improper Output Neutralization for Logs in ansible

    A flaw was found in the Ansible Engine when using module_args. Tasks executed with check mode (--check-mode) do not properly neutralize sensitive data exposed in the event data. This flaw allows unauthorized users to read this data. The highest threat from th…

  • Medium 5.5

    Insertion of Sensitive Information into Log File in ansible

    A flaw was found in ansible module where credentials are disclosed in the console log by default and not protected by the security feature when using the bitbucket_pipeline_variable module. This flaw allows an attacker to steal bitbucket_pipeline credentials.…

  • Medium 5.5

    Insertion of Sensitive Information into Log File in ansible

    A flaw was found in ansible module where credentials are disclosed in the console log by default and not protected by the security feature when using the bitbucket_pipeline_variable module. This flaw allows an attacker to steal bitbucket_pipeline credentials.…

  • Medium 5.5

    Insertion of Sensitive Information into Log File in ansible

    A flaw was found in ansible. Credentials, such as secrets, are being disclosed in console log by default and not protected by no_log feature when using those modules. An attacker can take advantage of this information to steal those credentials. The highest t…

  • Medium 5.2

    Path Traversal in Ansible

    An archive traversal flaw was found in all ansible-engine versions 2.9.x prior to 2.9.7, when running ansible-galaxy collection install. When extracting a collection .tar.gz file, the directory is created without sanitizing the filename. An attacker could tak…

  • Medium 5.0

    Exposure of Resource to Wrong Sphere and Insecure Temporary File in Ansible

    A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible Tower before and including versions 3.4.5 and 3.5.5 and 3.6.3 when using modules which decrypts vault fi…

  • Medium 5.0

    Insufficiently random values in Ansible

    A flaw was found in the use of insufficiently random values in Ansible. Two random password lookups of the same length generate the equal value as the template caching action for the same file since no re-evaluation happens. The highest threat from this vulne…

  • Medium 5.0

    Improper Output Neutralization and Improper Encoding or Escaping of Output for Logs in ansible

    An Improper Output Neutralization for Logs flaw was found in Ansible when using the uri module, where sensitive data is exposed to content and json output. This flaw allows an attacker to access the logs or outputs of performed tasks to read keys used in play…

  • Medium 5.0

    Ansible vulnerable to Exposure of Resource to Wrong Sphere and Insecure Temporary File

    A race condition flaw was found in Ansible Engine 2.7.17 and prior, 2.8.9 and prior, 2.9.6 and prior when running a playbook with an unprivileged become user. When Ansible needs to run a module with become user, the temporary directory is created in /var/tmp.…

  • Medium 5.0

    Exposure of Sensitive Information to an Unauthorized Actor in ansible

    A flaw was found in the Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible Tower before and including versions 3.4.5 and 3.5.5 and 3.6.3 when the ldap_attr and ldap_entry comm…

  • Medium 5.0

    Insertion of Sensitive Information into Log File, Invocation of Process Using Visible Sensitive Information, and Exposure of Sensitive Information to an Unauthorized Actor in Ansible

    A security flaw was found in Ansible Engine, all Ansible 2.7.x versions prior to 2.7.17, all Ansible 2.8.x versions prior to 2.8.11 and all Ansible 2.9.x versions prior to 2.9.7, when managing kubernetes using the k8s module. Sensitive parameters such as pass…

  • Medium 4.6

    Exposure of Sensitive Information to an Unauthorized Actor in ansible

    A flaw was discovered in the way Ansible templating was implemented in versions before 2.6.18, 2.7.12 and 2.8.2, causing the possibility of information disclosure through unexpected variable substitution. By taking advantage of unintended variable substitutio…

  • Medium 4.2

    Path Traversal in Ansible

    A flaw was found in the Ansible Engine when the fetch module is used. An attacker could intercept the module, inject a new path, and then choose a new destination path on the controller node. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be …

  • Low 3.9

    Argument Injection in Ansible

    A flaw was found in Ansible Engine when the module package or service is used and the parameter 'use' is not specified. If a previous task is executed with a malicious user, the module sent can be selected by the attacker using the ansible facts file. All ver…

  • Low 3.9

    Exposure of Sensitive Information to an Unauthorized Actor in Ansible

    A flaw was found in Ansible 2.7.16 and prior, 2.8.8 and prior, and 2.9.5 and prior when a password is set with the argument "password" of svn module, it is used on svn command line, disclosing to other users within the same node. An attacker could take advant…

  • Low 3.9

    Exposure of Sensitive Information to an Unauthorized Actor and Insecure Temporary File in Ansible

    A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files. When a user executes "ansible-vault edit", another user on the same computer can read the old and new secret, as it is created in a temporary file with mkstemp and the re…

  • Low 2.2

    Incorrect Permission Assignment for Critical Resource in Ansible

    A flaw was found in Ansible Engine when a file is moved using atomic_move primitive as the file mode cannot be specified. This sets the destination files world-readable if the destination file does not exist and if the file exists, the file could be changed t…

References

  • report
    https://bugzilla.suse.com/1099808
  • report
    https://bugzilla.suse.com/1112959
  • report
    https://bugzilla.suse.com/1118896
  • report
    https://bugzilla.suse.com/1126503
  • report
    https://bugzilla.suse.com/1137528
  • report
    https://bugzilla.suse.com/1157968
  • report
    https://bugzilla.suse.com/1157969
  • report
    https://bugzilla.suse.com/1164133
  • report
    https://bugzilla.suse.com/1164134
  • report
    https://bugzilla.suse.com/1164135
  • report
    https://bugzilla.suse.com/1164136
  • report
    https://bugzilla.suse.com/1164137
  • report
    https://bugzilla.suse.com/1164138
  • report
    https://bugzilla.suse.com/1164139
  • report
    https://bugzilla.suse.com/1164140
  • report
    https://bugzilla.suse.com/1165393
  • report
    https://bugzilla.suse.com/1166389
  • report
    https://bugzilla.suse.com/1167440
  • report
    https://bugzilla.suse.com/1167532
  • report
    https://bugzilla.suse.com/1167873
  • report
    https://bugzilla.suse.com/1171162
  • report
    https://bugzilla.suse.com/1174145
  • report
    https://bugzilla.suse.com/1174302
  • report
    https://bugzilla.suse.com/1180816
  • report
    https://bugzilla.suse.com/1180942
  • report
    https://bugzilla.suse.com/1181119
  • report
    https://bugzilla.suse.com/1181935
  • web
    https://www.suse.com/security/cve/CVE-2018-10875
  • web
    https://www.suse.com/security/cve/CVE-2018-16837
  • web
    https://www.suse.com/security/cve/CVE-2019-10156
  • web
    https://www.suse.com/security/cve/CVE-2019-14846
  • web
    https://www.suse.com/security/cve/CVE-2019-14904
  • web
    https://www.suse.com/security/cve/CVE-2019-14905
  • web
    https://www.suse.com/security/cve/CVE-2020-10684
  • web
    https://www.suse.com/security/cve/CVE-2020-10685
  • web
    https://www.suse.com/security/cve/CVE-2020-10691
  • web
    https://www.suse.com/security/cve/CVE-2020-10729
  • web
    https://www.suse.com/security/cve/CVE-2020-14330
  • web
    https://www.suse.com/security/cve/CVE-2020-14332