Skip to content
OpenAdvisories
High USN-5315-1 4 CVEs

ansible vulnerabilities

Published Jun 7, 2022 · Updated Jun 25, 2026

Summary

It was discovered that Ansible did not properly manage directory
permissions when running playbooks with an unprivileged become user. A
local attacker could possibly use this issue to cause a race condition,
escalate privileges and execute arbitrary code. This issue only affected
Ubuntu 16.04 ESM, Ubuntu 18.04 ESM and Ubuntu 20.04 ESM. (CVE-2020-1733)

It was discovered that the fix to address CVE-2020-1733 in Ansible was
incomplete on systems using ACLs and FUSE filesystems. A local attacker
could possibly use this issue to cause a race condition, escalate
privileges and execute arbitrary code. This issue only affected
Ubuntu 16.04 ESM, Ubuntu 18.04 ESM and Ubuntu 20.04 ESM. (CVE-2020-10744)

It was discovered that Ansible did not properly manage multi-line YAML
strings and special template characters. A local attacker could possibly
use this issue to cause a template injection, resulting in the
disclosure of sensitive information or other unspecified impact.
(CVE-2021-3583)

It was discovered that the ansible-connection module in Ansible did
not properly manage certain error messages. A local attacker could
possibly use this issue to expose sensitive information. This issue
only affected Ubuntu 20.04 ESM and Ubuntu 22.04 ESM. (CVE-2021-3620)

Fixed packages 4

ReleasePackageFixed in
Ubuntu · Pro 16.04 LTS Pro:16.04:LTS ansible 2.0.0.2-2ubuntu1.3+esm1
Ubuntu · Pro 18.04 LTS Pro:18.04:LTS ansible 2.5.1+dfsg-1ubuntu0.1+esm1
Ubuntu · Pro 20.04 LTS Pro:20.04:LTS ansible 2.9.6+dfsg-1ubuntu0.1~esm1
Ubuntu · Pro 22.04 LTS Pro:22.04:LTS ansible 2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm1

Vulnerabilities 4

  • High 7.1

    Improper Input Validation and Command Injection in Ansible

    A flaw was found in Ansible, where a user's controller is vulnerable to template injection. This issue can occur through facts used in the template if the user is trying to put templates in multi-line YAML strings and the facts being handled do not routinely …

  • Medium 5.5

    Ansible discloses sensitive information in traceback error message

    A flaw was found in Ansible Engine's ansible-connection module, where sensitive information such as the Ansible user credentials is disclosed by default in the traceback error message. The highest threat from this vulnerability is to confidentiality.

  • Medium 5.0

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

    An incomplete fix was found for the fix of the flaw CVE-2020-1733 ansible: insecure temporary directory when running become_user from become directive. The provided fix is insufficient to prevent the race condition on systems using ACLs and FUSE filesystems. …

  • 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.…

References

  • report
    https://ubuntu.com/security/CVE-2020-1733
  • report
    https://ubuntu.com/security/CVE-2020-10744
  • report
    https://ubuntu.com/security/CVE-2021-3583
  • report
    https://ubuntu.com/security/CVE-2021-3620