CVE-2019-10156: Infoleak

Published Jun 5, 2019
·
Updated

[ansiblepassword] in the ~/.ssh/authorizedkeys file is repalced by administrator's password on remote node by templating.

Upstream pull:

https://github.com/ansible/ansible/pull/57188

Other sources

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.

— Launchpad

Affected Software

21 affected componentsFixes available
redhat/ansible-engine<2.6.18
2.6.18
redhat/ansible-engine<2.7.12
2.7.12
redhat/ansible-engine<2.8.2
2.8.2
pip/ansible>=2.8.0a1<2.8.2
2.8.2
pip/ansible>=2.7.0a1<2.7.12
2.7.12
pip/ansible<2.6.18
2.6.18
redhat ansible<2.6.18
redhat ansible>=2.7.0<2.7.12
redhat ansible>=2.8.0<2.8.2
redhat Openstack=13
redhat Openstack=14
Debian Debian Linux=8.0
Debian Debian Linux=9.0
debian/ansible
2.10.7+merged+base+2.10.17+dfsg-0+deb11u12.10.7+merged+base+2.10.17+dfsg-0+deb11u47.7.0+dfsg-3+deb12u112.0.0+dfsg-0+deb13u113.4.0+dfsg-1
alpine/ansible>=2.8.0<2.8.2-r0
2.8.2-r0
alpine/ansible>=2.8.0<2.8.2-r0
2.8.2-r0
alpine/ansible>=2.8.0<2.8.2-r0
2.8.2-r0
alpine/ansible<2.6.18-r0
2.6.18-r0
alpine/ansible-base<2.8.2-r0
2.8.2-r0
alpine/ansible-base<2.8.2-r0
2.8.2-r0
alpine/ansible-base<2.8.2-r0
2.8.2-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/ansible-engine to a version that resolves this vulnerability.

    Fixed in 2.6.18
  2. Upgrade

    Upgrade redhat/ansible-engine to a version that resolves this vulnerability.

    Fixed in 2.7.12
  3. Upgrade

    Upgrade redhat/ansible-engine to a version that resolves this vulnerability.

    Fixed in 2.8.2
  4. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.8.2
  5. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.7.12
  6. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.6.18
  7. Upgrade

    Upgrade debian/ansible to a version that resolves this vulnerability.

    Fixed in 2.10.7+merged+base+2.10.17+dfsg-0+deb11u1Fixed in 2.10.7+merged+base+2.10.17+dfsg-0+deb11u4Fixed in 7.7.0+dfsg-3+deb12u1Fixed in 12.0.0+dfsg-0+deb13u1Fixed in 13.4.0+dfsg-1
  8. Upgrade

    Upgrade alpine/ansible to a version that resolves this vulnerability.

    Fixed in 2.8.2-r0
  9. Upgrade

    Upgrade alpine/ansible to a version that resolves this vulnerability.

    Fixed in 2.6.18-r0
  10. Upgrade

    Upgrade alpine/ansible-base to a version that resolves this vulnerability.

    Fixed in 2.8.2-r0
  11. Upgrade

    Upgrade ansible to a version that resolves this vulnerability.

    Fixed in 2.6.18
  12. Upgrade

    Upgrade ansible to a version that resolves this vulnerability.

    Fixed in 2.7.12
  13. Upgrade

    Upgrade ansible to a version that resolves this vulnerability.

    Fixed in 2.8.2

Event History

Jun 5, 2019
Data Sourced
07:52 AM
DescriptionSeverityAffected Software
Jul 30, 2019
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·10:12 PM
Data Sourced
via MITRE·10:12 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software
Jul 31, 2019
Advisory Published
via GitHub·04:22 AM
Data Sourced
via GitHub·04:22 AM
DescriptionSeverityWeaknessAffected Software
Feb 16, 2021
Data Sourced
via Red Hat·09:51 PM
DescriptionSeverityAffected Software
Apr 19, 2022
Data Sourced
03:36 PM
Weakness
Data Sourced
via NVD·03:36 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·03:36 PM
Affected Software
Sep 4, 2024
Advisory Published
via GitHub·08:45 PM
Event
via GitHub·08:45 PM
Nov 21, 2024
Updated
via NVD·04:18 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·02:10 AM
Affected Software
Nov 17, 2026
Updated
via OSV·06:30 AM
Affected Software

Frequently Asked Questions

1

What is the vulnerability ID for this flaw in Ansible templating?

The vulnerability ID for this flaw in Ansible templating is CVE-2019-10156.

2

What is the severity of CVE-2019-10156?

The severity of CVE-2019-10156 is medium (severity value of 4).

3

Which versions of Ansible are affected by CVE-2019-10156?

Versions before 2.6.18, 2.7.12, and 2.8.2 of Ansible are affected by CVE-2019-10156.

4

How can an attacker exploit the vulnerability in CVE-2019-10156?

An attacker can exploit the vulnerability in CVE-2019-10156 by taking advantage of unintended variable substitution, which can lead to information disclosure.

5

Is there a fix available for CVE-2019-10156?

Yes, the fix for CVE-2019-10156 is available in Ansible versions 2.6.18, 2.7.12, and 2.8.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203