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 5.5PyPIAmendedPublished

    Ansible Community General Collection is vulnerable to exposure of sensitive information

    CVE-2025-14010 · GHSA-8ggh-xwr9-3373

    Affected
    • PyPI ansible < 12.2.0
    Fixed in
    12.2.0· Vendor fix available
    Issue
    A flaw was found in ansible-collection-community-general. This vulnerability allows for information exposure (IE) of sensitive credentials, specifically plaintext passwords, via verbose output when running Ansible with debug modes. Attackers with access to logs could retrieve these secrets and potentially compromise Keycloak accounts or administrative access.

    Recommended action: Upgrade to 12.2.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 →
  2. Medium, CVSS 5.0PyPIAmendedPublished

    Ansible does not collect garbage after playbook run

    CVE-2020-25635 · GHSA-f556-49jc-4rvc

    Affected
    • PyPI ansible < 2.10.1
    Fixed in
    2.10.1· Vendor fix available
    Issue
    A flaw was found in Ansible Base when using the awsssm connection plugin as its garbage collector is not happening after the playbook run is completed. Files would remain in the bucket exposing the data. This issue directly affects data confidentiality.

    Recommended action: Upgrade to 2.10.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 →
  3. Medium, CVSS 6.3PyPIAmendedPublished

    Ansible symlink attack vulnerability

    CVE-2023-5115 · GHSA-jpvw-p8pr-9g2x

    Affected
    • PyPI ansible < 8.5.0
    Fixed in
    8.5.0· Vendor fix available
    Issue
    An absolute path traversal attack exists in the Ansible automation platform. This flaw allows an attacker to craft a malicious Ansible role and make the victim execute the role. A symlink can be used to overwrite a file outside of the extraction path.

    Recommended action: Upgrade to 8.5.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 →
  4. High, CVSS 7.5PyPIAmendedPublished

    Ansible leaks password to logs

    CVE-2022-3697 · GHSA-cpx3-93w7-457x

    Affected
    • PyPI ansible >= 2.5.0, < 7.0.0
    Fixed in
    7.0.0· Vendor fix available
    Issue
    A flaw was found in Ansible in the amazon.aws collection when using the towercallback parameter from the amazon.aws.ec2instance module. This flaw allows an attacker to take advantage of this issue as the module is handling the parameter insecurely, leading to the password leaking in the logs.

    Recommended action: Upgrade to 7.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 →
  5. High, CVSS 8.7PyPIAmendedPublished

    Ansible Exposes Sensitive Information

    CVE-2021-20228 · GHSA-5rrg-rr89-x9mv

    Affected
    • PyPI ansible >= 2.10.0a1, < 2.10.6rc1; >= 2.9.0a1, < 2.9.18rc1; < 2.8.19rc1
    Fixed in
    2.9.18rc12.10.6rc12.8.19rc1· Vendor fix available
    Issue
    A flaw was found in the Ansible Engine prior to 2.10.6rc1, 2.9.18rc1, and 2.8.19rc1, where sensitive info is not masked by default and is not protected by the nolog feature when using the sub-option feature of the basic.py module. This flaw allows an attacker to obtain sensitive information. The highest threat from this vulnerability is to confidentiality.

    Recommended action: Upgrade to 2.10.6rc1 (pre-release), 2.9.18rc1 (pre-release) or 2.8.19rc1 (pre-release) 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. Critical, CVSS 9.3PyPIAmendedPublished

    Ansible Code Injection Vulnerability

    CVE-2014-4678 · GHSA-66c7-5pwv-mm3j

    Affected
    • PyPI ansible < 1.6.4
    Fixed in
    1.6.4· Vendor fix available
    Issue
    The safeeval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.

    Recommended action: Upgrade to 1.6.4 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 →
  7. High, CVSS 7.1PyPIAmendedPublished

    Ansible password prompts could expose passwords

    CVE-2019-14856 · GHSA-6fq2-x65v-v9h7

    Affected
    • PyPI ansible >= 2.8.0, < 2.8.6; >= 2.7.0, < 2.7.14; >= 2.6.0, < 2.6.20
    Fixed in
    2.8.62.6.202.7.14· Vendor fix available
    Issue
    A data disclosure flaw was found in ansible. Password prompts in ansible-playbook and ansible-cli tools could expose passwords with special characters as they are not properly wrapped. A password with special characters is exposed starting with the first of these special characters. The highest threat from this vulnerability is to data confidentiality. This CVE exists due to an incomplete fix for CVE-2019-10206.

    Recommended action: Upgrade to 2.8.6, 2.7.14 or 2.6.20 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 7.1PyPIAmendedPublished

    Ansible password prompts could expose passwords

    CVE-2019-10206 · GHSA-cqmr-rcpr-cxh3

    Affected
    • PyPI ansible >= 2.8.0, < 2.8.4; >= 2.7.0, < 2.7.13; >= 2.6.0, < 2.6.19
    Fixed in
    2.7.132.8.42.6.19· Vendor fix available
    Issue
    ansible-playbook -k and ansible cli tools, all versions 2.8.x before 2.8.4, all 2.7.x before 2.7.13 and all 2.6.x before 2.6.19, prompt passwords by expanding them from templates as they could contain special characters. Passwords should be wrapped to prevent templates trigger and exposing them.

    Recommended action: Upgrade to 2.8.4, 2.7.13 or 2.6.19 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 →
  9. Medium, CVSS 6.8PyPIAmendedPublished

    Ansible leaks sensitive information to logs when told not to

    CVE-2019-14858 · GHSA-h653-95qw-h2mp

    Affected
    • PyPI ansible >= 2.9.0a1, < 2.9.0rc4; >= 2.8.0a1, < 2.8.6; >= 2.7.0a1, < 2.7.14; >= 2.0, < 2.6.20
    Fixed in
    2.8.62.6.202.9.0rc42.7.14· Vendor fix available
    Issue
    A vulnerability was found in Ansible engine 2.x up to 2.8 and Ansible tower 3.x up to 3.5. When a module has an argumentspec with sub parameters marked as nolog, passing an invalid parameter name to the module will cause the task to fail before the nolog options in the sub parameters are processed. As a result, data in the sub parameter fields will not be masked and will be displayed if Ansible is run with increased verbosity and present in the module invocation arguments for the task.

    Recommended action: Upgrade to 2.9.0rc4 (pre-release), 2.8.6, 2.7.14 or 2.6.20 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. High, CVSS 8.5PyPIAmendedPublished

    Ansible Uses Plugins That Disclose Credentials

    CVE-2019-14846 · GHSA-pm48-cvv2-29q5

    Affected
    • PyPI ansible < 2.6.20; >= 2.7.0a1, < 2.7.14; >= 2.8.0a1, < 2.8.6
    Fixed in
    2.8.62.6.202.7.14· Vendor fix available
    Issue
    Ansible, all ansibleengine-2.x versions and ansibleengine-3.x up to ansibleengine-3.5, was 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. This flaw does not affect Ansible modules, as those are executed in a separate process.

    Recommended action: Upgrade to 2.8.6, 2.7.14 or 2.6.20 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 →
  11. Medium, CVSS 6.8PyPIAmendedPublished

    Ansible Sensitive Files Are Locally Readable

    CVE-2014-4658 · GHSA-5g4v-2pc6-4hh4

    Affected
    • PyPI ansible < 1.5.5
    Fixed in
    1.5.5· Vendor fix available
    Issue
    The vault subsystem in Ansible before 1.5.5 does not set the umask before creation or modification of a vault file, which allows local users to obtain sensitive key information by reading a file.

    Recommended action: Upgrade to 1.5.5 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. Medium, CVSS 6.8PyPIAmendedPublished

    Ansible discloses credential information

    CVE-2014-4660 · GHSA-5xm4-jmpw-p6j3

    Affected
    • PyPI ansible < 1.5.5
    Fixed in
    1.5.5· Vendor fix available
    Issue
    Ansible before 1.5.5 constructs filenames containing user and password fields on the basis of deb lines in sources.list, which might allow local users to obtain sensitive credential information in opportunistic circumstances by leveraging existence of a file that uses the deb http://user:pass@server:port/ format.

    Recommended action: Upgrade to 1.5.5 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. Medium, CVSS 6.8PyPIAmendedPublished

    Ansible sets unsafe permissions for sources.list

    CVE-2014-4659 · GHSA-6667-f46p-pg88

    Affected
    • PyPI ansible < 1.5.5
    Fixed in
    1.5.5· Vendor fix available
    Issue
    Ansible before 1.5.5 sets 0644 permissions for sources.list, which might allow local users to obtain sensitive credential information in opportunistic circumstances by reading a file that uses the &quot;deb http://user:pass@server:port/&quot; format.

    Recommended action: Upgrade to 1.5.5 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 →
  14. Critical, CVSS 9.3PyPIAmendedPublished

    Ansible Remote Code Execution

    CVE-2014-4657 · GHSA-qg47-5px9-32g7

    Affected
    • PyPI ansible < 1.5.4
    Fixed in
    1.5.4· Vendor fix available
    Issue
    The safeeval function in Ansible before 1.5.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions.

    Recommended action: Upgrade to 1.5.4 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.3PyPIAmendedPublished

    Ansible Arbitrary Code Execution

    CVE-2014-4967 · GHSA-64cw-m57j-65xj

    Affected
    • PyPI ansible < 1.6.7
    Fixed in
    1.6.7· Vendor fix available
    Issue
    Multiple argument injection vulnerabilities in Ansible before 1.6.7 allow remote attackers to execute arbitrary code by leveraging access to an Ansible managed host and providing a crafted fact, as demonstrated by a fact with (1) a trailing " src=" clause, (2) a trailing " temp=" clause, or (3) a trailing " validate=" clause accompanied by a shell command.

    Recommended action: Upgrade to 1.6.7 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 →
  16. Critical, CVSS 9.3PyPIAmendedPublished

    Ansible Arbitrary Code Execution

    CVE-2014-4966 · GHSA-wqq5-c89p-3wc3

    Affected
    • PyPI ansible < 1.6.7
    Fixed in
    1.6.7· Vendor fix available
    Issue
    Ansible before 1.6.7 does not prevent inventory data with "{{" and "lookup" substrings, and does not prevent remote data with "{{" substrings, which allows remote attackers to execute arbitrary code via (1) crafted lookup('pipe') calls or (2) crafted Jinja2 data.

    Recommended action: Upgrade to 1.6.7 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 →
  17. High, CVSS 8.7PyPIAmendedPublished

    Ansible unsafe evaluation of some strings

    CVE-2014-2686 · GHSA-49m5-2838-q2rv

    Affected
    • PyPI ansible < 1.5.4
    Fixed in
    1.5.4· Vendor fix available
    Issue
    Ansible prior to 1.5.4 mishandles the evaluation of some strings.

    Recommended action: Upgrade to 1.5.4 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 →
  18. High, CVSS 8.7PyPIAmendedPublished

    Ansible Arbitrary Code Execution

    CVE-2014-3498 · GHSA-4cvm-5776-jx9f

    Affected
    • PyPI ansible < 1.6.6
    Fixed in
    1.6.6· Vendor fix available
    Issue
    User module in ansible before 1.6.6 is vulnerable to command execution. Ansible can get the result of remote command in variable, which may come from untrusted source of input. If the content of variable isn't properly filtered and when attempting to use the variable, it will trigger a function that passes it through jinja 2 template engine that can result into arbitrary command execution. Under certain circumstances, unprivileged user on system that is being managed via ansible can execute code on the managing host under UID of running ansible process.

    Recommended action: Upgrade to 1.6.6 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 →
  19. Medium, CVSS 6.9PyPIAmendedPublished

    Ansible Arbitrary File Overwrite Vulnerability

    CVE-2013-4260 · GHSA-pcqv-c46v-2p4v

    Affected
    • PyPI ansible >= 1.2, < 1.2.3
    Fixed in
    1.2.3· Vendor fix available
    Issue
    lib/ansible/playbook/init.py in Ansible 1.2.x before 1.2.3, when playbook does not run due to an error, allows local users to overwrite arbitrary files via a symlink attack on a retry file with a predictable name in /var/tmp/ansible/.

    Recommended action: Upgrade to 1.2.3 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 →
  20. Low, CVSS 2.1PyPIAmendedPublished

    Ansible uses a socket with predictable filename in /tmp

    CVE-2013-4259 · GHSA-fj24-ghp9-39v3

    Affected
    • PyPI ansible < 1.2.3
    Fixed in
    1.2.3· Vendor fix available
    Issue
    runner/connectionplugins/ssh.py in Ansible before 1.2.3, when using ControlPersist, allows local users to redirect a ssh session via a symlink attack on a socket file with a predictable name in /tmp/.

    Recommended action: Upgrade to 1.2.3 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 →
  21. Medium, CVSS 6.7PyPIAmendedPublished

    Ansible Logs Passwords If PowerShell ScriptBlock is Enabled

    CVE-2018-16859 · GHSA-v735-2pp6-h86r

    Affected
    • PyPI ansible >= 2.7.0a1, < 2.7.3; < 2.5.12; >= 2.6.0a1, < 2.6.9
    Fixed in
    2.6.92.7.32.5.12· Vendor fix available
    Issue
    Execution of Ansible playbooks on Windows platforms with PowerShell ScriptBlock logging and Module logging enabled can allow for 'become' passwords to appear in EventLogs in plaintext. A local user with administrator privileges on the machine can view these logs and discover the plaintext password. Ansible Engine 2.8 and older are believed to be vulnerable.

    Recommended action: Upgrade to 2.7.3, 2.6.9 or 2.5.12 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 →
  22. High, CVSS 8.5PyPIAmendedPublished

    Ansible Sandbox Escape via Symlink Attack

    CVE-2015-6240 · GHSA-wwwh-47wp-m522

    Affected
    • PyPI ansible < 1.9.2
    Fixed in
    1.9.2· Vendor fix available
    Issue
    The chroot, jail, and zone connection plugins in ansible before 1.9.2 allow local users to escape a restricted environment via a symlink attack.

    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 →
  23. High, CVSS 8.5PyPIAmendedPublished

    Ansible Leaks Data Passed to ssh-keygen

    CVE-2018-16837 · GHSA-hwrm-63v2-42g4

    Affected
    • PyPI ansible >= 2.7.0a1, < 2.7.1; >= 2.6.0a1, < 2.6.7; < 2.5.11
    Fixed in
    2.7.12.6.72.5.11· Vendor fix available
    Issue
    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 for every user which have access just to the process list.

    Recommended action: Upgrade to 2.7.1, 2.6.7 or 2.5.11 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 →
  24. High, CVSS 8.5PyPIAmendedPublished

    Ansible Arbitrary Code Execution

    CVE-2018-10875 · GHSA-fc4h-467w-46rh

    Affected
    • PyPI ansible < 2.4.6.0; >= 2.5.0a1, < 2.5.6; >= 2.6.0a1, < 2.6.1
    Fixed in
    2.4.6.02.5.62.6.1· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 2.6.1, 2.5.6 or 2.4.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 →
  25. High, CVSS 8.5PyPIAmendedPublished

    Ansible Improper Input Validation vulnerability

    CVE-2018-10874 · GHSA-3xvg-x47j-x75w

    Affected
    • PyPI ansible < 2.4.6.0; >= 2.5, < 2.5.6; >= 2.6, < 2.6.1
    Fixed in
    2.4.6.02.5.62.6.1· Vendor fix available
    Issue
    In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's control, allowing to run arbitrary code as a result.

    Recommended action: Upgrade to 2.6.1, 2.5.6 or 2.4.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 →