CVE-2019-10156: Information Disclosure in ansible

ansible Updated 02 Oct 2025

Summary

31/07/2019
Yes i
Moderate
5.4

CVE-2019-10156: Exposure of Sensitive Information to an Unauthorized Actor in ansible. Affects ansible across 3 version ranges.

< 2.6.18 >= 2.7.0a1, < 2.7.12 >= 2.8.0a1, < 2.8.2

Fixed in 2.6.18, 2.7.12 or 2.8.2, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2019-10156 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Ansible is an open-source automation tool that allows users to automate tasks such as configuration management, application deployment, and orchestration. It uses a simple and human-readable language called YAML to define automation tasks. Ansible is widely used in the IT industry for managing infrastructure and deploying applications.

Vulnerability Detail

A vulnerability was discovered in Ansible versions before 2.6.18, 2.7.12, and 2.8.2. This vulnerability allows an unauthorized actor to access sensitive information through unexpected variable substitution in Ansible templating. By exploiting unintended variable substitution, an attacker can disclose the content of any variable, potentially exposing sensitive data.

How To Fix

Latest published version: 14.5.0 as of 22 Oct 2026

pip install --upgrade "ansible==14.5.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.6.18 2.6.18
    pip install --upgrade "ansible==2.6.18"
  • >= 2.7.0a1, < 2.7.12 2.7.12
    pip install --upgrade "ansible==2.7.12"
  • >= 2.8.0a1, < 2.8.2 2.8.2
    pip install --upgrade "ansible==2.8.2"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended solution is to upgrade to the fixed versions of Ansible.

Conclusion

In conclusion, the vulnerability in Ansible versions before 2.6.18, 2.7.12, and 2.8.2 allows unauthorized access to sensitive information. It is crucial to upgrade to the fixed versions to mitigate the risk of information disclosure. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ansible →

Share this vulnerability

FAQ

Ansible is an open-source automation tool used for configuration management, application deployment, and orchestration.

This vulnerability allows an unauthorized actor to access sensitive information through unintended variable substitution in Ansible templating.

To fix this vulnerability, you should upgrade to Ansible 2.6.18, 2.7.12, or 2.8.2, depending on your current version.

There is no specific workaround mentioned for this vulnerability. Upgrading to the fixed versions is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for ansible.

How To Fix

Latest published version: 14.5.0 as of 22 Oct 2026

pip install --upgrade "ansible==14.5.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.6.18 2.6.18
    pip install --upgrade "ansible==2.6.18"
  • >= 2.7.0a1, < 2.7.12 2.7.12
    pip install --upgrade "ansible==2.7.12"
  • >= 2.8.0a1, < 2.8.2 2.8.2
    pip install --upgrade "ansible==2.8.2"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback