Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-3447

CVE-2021-3447: Red Hat Ansible Information Disclosure Flaw

CVE-2021-3447 is an information disclosure vulnerability in Red Hat Ansible that exposes credentials in plain-text logs on managed nodes. This article covers the technical details, affected versions, and mitigation strategies.

Published: February 25, 2026

CVE-2021-3447 Overview

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 that Ansible provides to mask sensitive data. An attacker can take advantage of this information to steal those credentials, provided they have access to the log files containing them. The highest threat from this vulnerability is to data confidentiality.

Critical Impact

Credentials and secrets logged in plain-text can be harvested by attackers with local access to log files on managed nodes or controller systems, leading to potential credential theft and lateral movement.

Affected Products

  • Red Hat Ansible Automation Platform (versions before 1.2.2)
  • Red Hat Ansible Tower (versions before 3.8.2)
  • Fedora 32, 33, and 34

Discovery Timeline

  • 2021-04-01 - CVE-2021-3447 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-3447

Vulnerability Analysis

This vulnerability is classified as CWE-532 (Insertion of Sensitive Information into Log File). The fundamental issue lies in how several Ansible modules handle credential parameters during task execution. When Ansible playbooks are executed, especially in verbose mode, the affected modules fail to properly sanitize output containing sensitive information such as passwords, API keys, tokens, and other secrets.

Ansible provides a no_log feature specifically designed to prevent sensitive data from appearing in logs. However, certain modules were not properly implementing this protection, resulting in credentials being written to log files on managed nodes and displayed on the controller node's output. This creates a significant risk in environments where multiple administrators have access to systems running Ansible, or where log files are aggregated to centralized logging systems.

The vulnerability requires local access to exploit, meaning an attacker would need access to the log files on either managed nodes or the Ansible controller. While this limits the attack surface, organizations with shared infrastructure or insufficient access controls on log storage systems are particularly at risk.

Root Cause

The root cause is the failure of several Ansible modules to properly implement the no_log directive for parameters containing sensitive information. This oversight in the module development process allowed credential parameters to bypass the logging sanitization mechanism, resulting in plain-text credential exposure in system logs and verbose output.

Attack Vector

The attack requires local access to systems where Ansible logs are stored. An attacker with read access to log files on managed nodes or the Ansible controller node can extract credentials that were logged in plain-text. This is particularly dangerous in scenarios where:

  • Logs are shipped to centralized logging systems accessible by multiple users
  • Managed nodes have shared access among different teams
  • Ansible is run in verbose mode for debugging purposes
  • Log retention policies keep sensitive data accessible for extended periods

The vulnerability is exploited by simply reading log files that contain the exposed credentials, making it trivial to harvest once access to the logs is obtained.

Detection Methods for CVE-2021-3447

Indicators of Compromise

  • Unexpected access to Ansible log files on managed nodes or controller systems
  • Log file access patterns indicating credential harvesting (bulk reads of Ansible logs)
  • Use of harvested credentials from unexpected source systems or at unusual times
  • Unauthorized access to systems using credentials that were only used in Ansible playbooks

Detection Strategies

  • Monitor file access events on Ansible log directories (/var/log/ansible/, .ansible/ user directories)
  • Implement log integrity monitoring to detect unauthorized log file access
  • Audit authentication events for credentials that appear in Ansible playbook tasks
  • Deploy SentinelOne agents on Ansible controllers and managed nodes to detect suspicious file access patterns

Monitoring Recommendations

  • Enable file integrity monitoring on systems running Ansible to detect unauthorized log access
  • Configure alerts for bulk log file reads or copies from Ansible-related directories
  • Implement centralized logging with access controls that limit who can view raw log data
  • Review Ansible execution logs regularly for unintentionally exposed sensitive parameters

How to Mitigate CVE-2021-3447

Immediate Actions Required

  • Upgrade Red Hat Ansible Automation Platform to version 1.2.2 or later
  • Upgrade Red Hat Ansible Tower to version 3.8.2 or later
  • Review and rotate any credentials that may have been exposed in logs
  • Audit existing log files for credential exposure and securely delete affected logs
  • Restrict access to Ansible log files using appropriate file permissions

Patch Information

Red Hat has released security updates addressing this vulnerability. The patched versions are Red Hat Ansible Automation Platform 1.2.2 and Red Hat Ansible Tower 3.8.2. For detailed information, refer to the Red Hat Bug Report #1939349. Fedora users should apply the updates available through the Fedora Package Announcements. Debian users can reference the Debian LTS Announcement for applicable updates.

Workarounds

  • Explicitly add no_log: true to all tasks that handle sensitive parameters as a defensive measure
  • Avoid running Ansible in verbose mode (-v, -vv, -vvv) in production environments
  • Implement strict file permissions on log directories to limit read access
  • Consider implementing log scrubbing solutions to remove credentials before storage
  • Use Ansible Vault for credential management to minimize direct credential handling in playbooks
bash
# Example: Securing Ansible log directories
chmod 700 /var/log/ansible
chmod 600 /var/log/ansible/*

# Ensure tasks handling credentials use no_log
# In your playbook, add no_log directive:
# - name: Authenticate to service
#   uri:
#     url: "https://api.example.com/auth"
#     user: "{{ api_user }}"
#     password: "{{ api_password }}"
#   no_log: true

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechRedhat Ansible

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-532
  • Technical References
  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • Red Hat Bug Report #1939349
  • Related CVEs
  • CVE-2024-0690: Ansible Information Disclosure Vulnerability

  • CVE-2020-1736: Ansible Engine Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English