Skip to content

← Public intelligence

PyPI package

ansible

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

66 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 4.6PyPIAmendedPublished

    Path Traversal in Ansible

    CVE-2020-1735 · GHSA-gfr2-qpxh-qj9m

    Affected
    • PyPI ansible >= 2.7.0a1, < 2.7.18; >= 2.8.0a1, < 2.8.12; >= 2.9.0a1, < 2.9.8
    Fixed in
    2.7.182.9.82.8.12· Vendor fix available
    Issue
    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 vulnerable.

    Recommended action: Upgrade to 2.9.8, 2.8.12 or 2.7.18 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. Medium, CVSS 6.8PyPIAmendedPublished

    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

    CVE-2020-1753 · GHSA-86hp-cj9j-33vv

    Affected
    • PyPI ansible >= 2.7.0a1, < 2.7.18; >= 2.8.0a1, < 2.8.12; >= 2.9.0a1, < 2.9.7
    Fixed in
    2.9.72.7.182.8.12· Vendor fix available
    Issue
    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 passwords and tokens are passed to kubectl from the command line, not using an environment variable or an input configuration file. This will disclose passwords and tokens from process list and nolog directive from debug module would not have any effect making these secrets being disclosed on stdout and log files.

    Recommended action: Upgrade to 2.9.7, 2.8.12 or 2.7.18 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Low, CVSS 2.4PyPIAmendedPublished

    Exposure of Sensitive Information to an Unauthorized Actor in Ansible

    CVE-2020-1739 · GHSA-923p-fr2c-g5m2

    Affected
    • PyPI ansible < 2.7.17; >= 2.8.0a1, < 2.8.11; >= 2.9.0a1, < 2.9.7
    Fixed in
    2.9.72.7.172.8.11· Vendor fix available
    Issue
    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 advantage by reading the cmdline file from that particular PID on the procfs.

    Recommended action: Upgrade to 2.9.7, 2.8.11 or 2.7.17 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. UnratedPyPIPublished

    PYSEC-2021-107

    CVE-2021-3447

    Affected
    • PyPI ansible < 1.2.2
    Fixed in
    1.2.2· Vendor fix available
    Issue
    A flaw was found in several ansible modules, where parameters containing credentials, such as secrets, were being logged in plain-text on managed nodes, as well as being made visible on the controller node when run in verbose mode. These parameters were not protected by the no_log feature. An attacker can take advantage of this information to steal those credentials, provided when they have access to the log files containing them. The highest threat from this vulnerability is to data confidentiality. This flaw affects Red Hat Ansible Automation Platform in versions before 1.2.2 and Ansible Tower in versions before 3.8.2.

    Recommended action: Upgrade to 1.2.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →
  5. Medium, CVSS 6.5PyPIAmendedPublished

    Inclusion of Sensitive Information in Log Files and Improper Output Neutralization for Logs in Ansible

    CVE-2019-14864 · GHSA-3m93-m4q6-mc6v

    Affected
    • PyPI ansible >= 2.7.0a1, < 2.7.15; >= 2.8.0a1, < 2.8.7; >= 2.9.0a1, < 2.9.1
    Fixed in
    2.8.72.7.152.9.1· Vendor fix available
    Issue
    Ansible, versions 2.9.x before 2.9.1, 2.8.x before 2.8.7 and Ansible versions 2.7.x before 2.7.15, is not respecting the flag nolog set it to True when Sumologic and Splunk callback plugins are used send tasks results events to collectors. This would discloses and collects any sensitive data.

    Recommended action: Upgrade to 2.9.1, 2.8.7 or 2.7.15 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  6. Medium, CVSS 5.3PyPIAmendedPublished

    Exposure of Sensitive Information to an Unauthorized Actor in ansible

    CVE-2019-10156 · GHSA-grgm-pph5-j5h7

    Affected
    • PyPI ansible < 2.6.18; >= 2.7.0a1, < 2.7.12; >= 2.8.0a1, < 2.8.2
    Fixed in
    2.6.182.7.122.8.2· Vendor fix available
    Issue
    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 substitution the content of any variable may be disclosed.

    Recommended action: Upgrade to 2.8.2, 2.7.12 or 2.6.18 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  7. Low, CVSS 2.4PyPIAmendedPublished

    Ansible Path Traversal vulnerability

    CVE-2019-3828 · GHSA-74vq-h4q8-x6jv

    Affected
    • PyPI ansible < 2.5.15; >= 2.6.0a1, < 2.6.14; >= 2.7.0a1, < 2.7.8
    Fixed in
    2.6.142.5.152.7.8· Vendor fix available
    Issue
    Ansible fetch module before versions 2.5.15, 2.6.14, 2.7.8 has a path traversal vulnerability which allows copying and overwriting files outside of the specified destination in the local ansible controller host, by not restricting an absolute path.

    Recommended action: Upgrade to 2.7.8, 2.6.14 or 2.5.15 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  8. High, CVSS 8.7PyPIAmendedPublished

    Ansible does not verify that the server hostname matches a domain name in certificates

    CVE-2015-3908 · GHSA-w64c-pxjj-h866

    Affected
    • PyPI ansible < 1.9.2
    Fixed in
    1.9.2· Vendor fix available
    Issue
    Ansible before 1.9.2 does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.

    Recommended action: Upgrade to 1.9.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  9. High, CVSS 8.5PyPIAmendedPublished

    Link Following in ansible

    CVE-2016-3096 · GHSA-rh6x-qvg7-rrmj

    Affected
    • PyPI ansible <= 1.9.6.0; >= 2.0.0.0, <= 2.0.1.0
    Fixed in
    2.0.2.01.9.6.1· Vendor fix available
    Issue
    The createscript function in the lxccontainer module in Ansible before 1.9.6-1 and 2.x before 2.0.2.0 allows local users to write to arbitrary files or gain privileges via a symlink attack on (1) /opt/.lxc-attach-script, (2) the archived container in the archivepath directory, or the (3) lxc-attach-script.log or (4) lxc-attach-script.err files in the temporary directory.

    Recommended action: Upgrade to 2.0.2.0 or 1.9.6.1 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  10. Critical, CVSS 9.1PyPIAmendedPublished

    Ansible fails to cache SSH host keys

    CVE-2013-2233 · GHSA-9x6q-5423-w5v9

    Affected
    • PyPI ansible < 1.2.1
    Fixed in
    1.2.1· Vendor fix available
    Issue
    Ansible before 1.2.1 makes it easier for remote attackers to conduct man-in-the-middle attacks by leveraging failure to cache SSH host keys.

    Recommended action: Upgrade to 1.2.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  11. Medium, CVSS 6.9PyPIAmendedPublished

    Improper Input Validation in ansible

    CVE-2016-8647 · GHSA-x4cm-m36h-c6qj

    Affected
    • PyPI ansible < 2.2.1.0
    Fixed in
    2.2.1.0· Vendor fix available
    Issue
    An input validation vulnerability was found in Ansible's mysqluser module before 2.2.1.0, which may fail to correctly change a password in certain circumstances. Thus the previous password would still be active when it should have been changed.

    Recommended action: Upgrade to 2.2.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  12. High, CVSS 8.7PyPIAmendedPublished

    Ansible apt_key module does not properly verify key fingerprint

    CVE-2016-8614 · GHSA-cmwx-9m2h-x7v4

    Affected
    • PyPI ansible < 2.2.0.0
    Fixed in
    2.2.0.0· Vendor fix available
    Issue
    A flaw was found in Ansible before version 2.2.0.0. The aptkey module does not properly verify key fingerprints, allowing remote adversary to create an OpenPGP key which matches the short key ID and inject this key instead of the correct key.

    Recommended action: Upgrade to 2.2.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  13. High, CVSS 8.2PyPIAmendedPublished

    Ansible exposes sensitive data in log files and on the terminal

    CVE-2018-10855 · GHSA-jwcc-j78w-j73w

    Affected
    • PyPI ansible >= 2.5.0a1, < 2.5.5; >= 2.4.0.0, < 2.4.5.0
    Fixed in
    2.5.52.4.5.0· Vendor fix available
    Issue
    Ansible 2.5 prior to 2.5.5, and 2.4 prior to 2.4.5, do not honor the nolog task flag for failed tasks. When the nolog flag has been used to protect sensitive data passed to a task from being logged, and that task does not run successfully, Ansible will expose sensitive data in log files and on the terminal of the user running Ansible.

    Recommended action: Upgrade to 2.5.5 or 2.4.5.0 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  14. Critical, CVSS 9.4PyPIAmendedPublished

    Ansible fails to properly sanitize fact variables sent from the Ansible controller

    CVE-2016-8628 · GHSA-jg4f-jqm5-4mgq

    Affected
    • PyPI ansible < 2.2.0.0
    Fixed in
    2.2.0.0· Vendor fix available
    Issue
    Ansible before version 2.2.0 fails to properly sanitize fact variables sent from the Ansible controller. An attacker with the ability to create special variables on the controller could execute arbitrary commands on Ansible clients as the user Ansible runs as.

    Recommended action: Upgrade to 2.2.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  15. Critical, CVSS 9.2PyPIAmendedPublished

    Ansible is vulnerable to an improper input validation in Ansible's handling of data sent from client systems

    CVE-2016-9587 · GHSA-m956-frf4-m2wr

    Affected
    • PyPI ansible <= 2.1.3.0; >= 2.2.0.0, <= 2.2.0.0
    Fixed in
    2.2.1.02.1.4.0· Vendor fix available
    Issue
    Ansible before versions 2.1.4.0, 2.2.1.0 is vulnerable to an improper input validation in Ansible's handling of data sent from client systems. An attacker with control over a client system being managed by Ansible and the ability to send facts back to the Ansible server could use this flaw to execute arbitrary code on the Ansible server using the Ansible server privileges.

    Recommended action: Upgrade to 2.2.1.0 or 2.1.4.0 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  16. Critical, CVSS 9.3PyPIAmendedPublished

    Ansible fails to properly mark lookup-plugin results as unsafe

    CVE-2017-7481 · GHSA-w578-j992-554x

    Affected
    • PyPI ansible >= 2.3.0.0, < 2.3.1.0; < 2.1.6.0; >= 2.2.0.0, < 2.2.3.0
    Fixed in
    2.2.3.02.3.1.02.1.6.0· Vendor fix available
    Issue
    Ansible before versions 2.1.6.0, 2.2.3.0, 2.3.1.0, and 2.4.0.0 fails to properly mark lookup-plugin results as unsafe. If an attacker could control the results of lookup() calls, they could inject Unicode strings to be parsed by the jinja2 templating system, resulting in code execution. By default, the jinja2 templating language is now marked as 'unsafe' and is not evaluated.

    Recommended action: Upgrade to 2.3.1.0, 2.2.3.0 or 2.1.6.0 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →