cve.bz

CVE-2018-16837 Missing Encryption of Sensitive Data

7.8 highEPSS 0.4%Fix available

High (7.8). EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in ansible 2.5.11, 2.6.7, 2.7.1.

On this page
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.

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 31st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-311 Missing Encryption of Sensitive Data
CWE-214 Invocation of Process Using Visible Sensitive Information
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-16837 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16837?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16837?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-16837 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:ansible_engine2.0
redhat:ansible_engine2.5
redhat:ansible_engine2.6
redhat:ansible_engine2.7
redhat:ansible_tower3.3.0
debian:debian_linux8.0
debian:debian_linux9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hwrm-63v2-42g4PyPIansible>=2.7.0a1 <2.7.12.7.1
GHSA-hwrm-63v2-42g4PyPIansible>=2.6.0a1 <2.6.72.6.7
GHSA-hwrm-63v2-42g4PyPIansible<2.5.112.5.11
PYSEC-2018-44PyPIansible>=2.7 <2.7.1
>=2.6 <2.6.7
<2.5.11
2.7.1, 2.6.7, 2.5.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8ansible1.7.2+dfsg-2+deb8u1DLA-1576-1
Debian9ansible2.2.1.0-2+deb9u1DSA-4396-1
Debian12, 13, 14ansible2.7.1+dfsg-1DEBIAN-CVE-2018-16837
Ubuntu16.04:LTSansible2.0.0.2-2ubuntu1.3UBUNTU-CVE-2018-16837 USN-4072-1
Ubuntu18.04:LTSansible2.5.1+dfsg-1ubuntu0.1UBUNTU-CVE-2018-16837 USN-4072-1
UbuntuPro:14.04:LTSansibleno fix listedUBUNTU-CVE-2018-16837
Red Hatansible_engine:2.5::el7ansible, ansible-doc0:2.5.11-1.el7aeRHSA-2018:3461
Red Hatansible_engine:2.6::el7ansible0:2.6.7-1.el7aeRHSA-2018:3460
Red Hatansible_engine:2.7::el7ansible0:2.7.1-1.el7aeRHSA-2018:3463
Red Hatansible_engine:2::el7ansible0:2.7.1-1.el7aeRHSA-2018:3462
Red Hatopenstack:13::el7ansible0:2.6.11-1.el7aeRHSA-2019:0564
Red Hatopenstack:13::el7openstack-selinux0:0.8.17-2.el7ostRHSA-2019:0564
Red Hatopenstack:13::el7os-apply-config0:8.3.1-0.20180831234255.be699ba.el7ostRHSA-2019:0564
Red Hatopenstack:13::el7python-barbicanclient, python2-barbicanclient0:4.6.0-2.el7ostRHSA-2019:0564
Red Hatopenstack:13::el7python-docker0:2.4.2-2.el7RHSA-2019:0564
Red Hatopenstack:13::el7python-heat-tests-tempest, python2-heat-tests-tempest0:0.1.1-0.20180514163845.9d99219.el7ostRHSA-2019:0564
Red Hatopenstack:13::el7python-manila, openstack-manila, python-manila-tests and 1 more1:6.0.2-5.el7ostRHSA-2019:0564
Red Hatopenstack:13::el7python-novajoin0:1.0.22-1.el7ostRHSA-2019:0564
7 more for Red Hat in the JSON and on Red Hat's page.
SUSEHPE Helion OpenStack 8documentation-hpe-helion-openstack-user, documentation-hpe-helion-openstack-planning, documentation-hpe-helion-openstack-security and 3 more8.20201007-1.29.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8release-notes-hpe-helion-openstack8.20200922-3.23.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev3-14.32.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-ansible8.0+git.1596735237.54109b1-3.77.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-cinder8.0+git.1596129856.263f430-3.43.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-glance8.0+git.1593631779.76fa9b7-3.24.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-mq8.0+git.1593618123.678c32b-3.26.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-nova8.0+git.1601298847.dd01585-3.42.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-osconfig8.0+git.1595885113.93abcbc-3.49.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8python-Flask-Cors3.0.3-3.3.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8python-ardana-packager0.0.3-7.7.2SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-aodh5.1.1~dev7-12.28.1SUSE-SU-2020:3309-1
49 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.0ansible2.7.8-bp150.3.6.1openSUSE-SU-2019:1125-1
openSUSELeap 15.0, Leap 15.1ansible2.8.1-bp150.3.9.1openSUSE-SU-2019:1635-1
openSUSELeap 15.3ansible2.9.21-bp153.2.3.1openSUSE-SU-2022:0081-1
openSUSETumbleweedansible-1010.6.0-1.1openSUSE-SU-2024:14536-1
openSUSETumbleweedansible-1111.11.0-1.1openSUSE-SU-2025:15605-1
openSUSETumbleweedansible-1212.2.0-1.1openSUSE-SU-2025:15753-1
openSUSETumbleweedansible-1313.7.0-1.1openSUSE-SU-2026:10944-1
openSUSETumbleweedansible-1414.6.0-1.1openSUSE-SU-2026:12447-1
openSUSETumbleweedansible-99.8.0-1.1openSUSE-SU-2024:14244-1
Alpinev3.8ansible2.5.11-r0ALPINE-CVE-2018-16837
Alpinev3.9ansible2.7.1-r0ALPINE-CVE-2018-16837

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the version of ansible as shipped with Red Hat Ceph Storage 3, as it contains the vulnerable code which leaks the data when ssh-keygen is invoked with any arguments.

ProductPackageStateAdvisory
Red Hat Ansible Engine 2.5 for RHEL 7ansible-0:2.5.11-1.el7aeFixed 2018-11-05RHSA-2018:3461
Red Hat Ansible Engine 2.6 for RHEL 7ansible-0:2.6.7-1.el7aeFixed 2018-11-05RHSA-2018:3460
Red Hat Ansible Engine 2.7 for RHEL 7ansible-0:2.7.1-1.el7aeFixed 2018-11-05RHSA-2018:3463
Red Hat Ansible Engine 2 for RHEL 7ansible-0:2.7.1-1.el7aeFixed 2018-11-05RHSA-2018:3462
Red Hat OpenStack Platform 13.0 (Queens)ansible-0:2.6.11-1.el7aeFixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)openstack-ec2-api-0:6.0.1-0.20181123223255.1e25260.el7ostFixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)openstack-manila-1:6.0.2-5.el7ostFixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)openstack-selinux-0:0.8.17-2.el7ostFixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)openstack-tempest-1:18.0.0-6.el7ostFixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)os-apply-config-0:8.3.1-0.20180831234255.be699ba.el7ostFixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)python-barbicanclient-0:4.6.0-2.el7ostFixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)python-docker-0:2.4.2-2.el7Fixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)python-heat-tests-tempest-0:0.1.1-0.20180514163845.9d99219.el7ostFixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)python-novajoin-0:1.0.22-1.el7ostFixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)python-openstackclient-0:3.14.3-2.el7ostFixed 2019-03-14RHSA-2019:0564
Red Hat OpenStack Platform 13.0 (Queens)python-openstacksdk-0:0.11.3-2.el7ostFixed 2019-03-14RHSA-2019:0564
Red Hat Ceph Storage 2ansibleOut of support scope
Red Hat Ceph Storage 3ansibleWill not fix
Red Hat OpenStack Platform 10 (Newton)ansibleWill not fix
Red Hat Storage 3ansibleWill not fix
3 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-16837.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-311 (14).

References

Check your stackJSON