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-38759

CVE-2021-38759: Raspberry Pi OS Lite Auth Bypass Flaw

CVE-2021-38759 is an authentication bypass vulnerability in Raspberry Pi OS Lite caused by a default password for the pi account. Attackers can exploit this to gain administrator access. This article covers technical details.

Published: February 25, 2026

CVE-2021-38759 Overview

CVE-2021-38759 is an Insecure Default Configuration vulnerability affecting Raspberry Pi OS through version 5.10. The operating system ships with a well-known default password ("raspberry") for the "pi" user account. If administrators fail to change this default credential during initial setup, remote attackers can leverage this weakness to gain administrator privileges on the device, leading to complete system compromise.

Critical Impact

Attackers can gain full administrator privileges on Raspberry Pi devices using the widely-known default credentials, enabling complete system takeover, data theft, botnet recruitment, and lateral movement within networks.

Affected Products

  • Raspberry Pi OS Lite (all versions through 5.10)
  • Raspberry Pi OS (all versions through 5.10)
  • Any Raspberry Pi device running the affected OS with unchanged default credentials

Discovery Timeline

  • 2021-12-07 - CVE-2021-38759 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-38759

Vulnerability Analysis

This vulnerability stems from CWE-1188 (Insecure Default Initialization of Resource), where Raspberry Pi OS is distributed with hardcoded default credentials that are publicly documented and widely known. The default user account pi with password raspberry has been a standard configuration since the early releases of Raspberry Pi OS (formerly Raspbian).

The vulnerability enables network-based exploitation without requiring any prior authentication or user interaction. An attacker who can reach an exposed SSH service on a Raspberry Pi device can attempt authentication using these default credentials. Upon successful login, the attacker gains access to an account that typically has sudo privileges, effectively granting root-level access to the system.

This issue is particularly severe in IoT and edge computing environments where Raspberry Pi devices are deployed at scale, often with minimal security hardening. The vulnerability has drawn significant attention, leading Raspberry Pi Foundation to eventually remove the default user account in April 2022.

Root Cause

The root cause is the inclusion of a hardcoded default password for the pi user account in the Raspberry Pi OS image. This design decision was originally made to simplify the initial setup experience for hobbyists and educators. However, this convenience creates a significant security risk when devices are deployed in production environments or exposed to untrusted networks without password changes.

The pi user account is configured by default with sudo access, meaning successful authentication provides an attacker with the ability to execute commands as root. Combined with the network-accessible nature of SSH (enabled by default in many configurations), this creates a trivially exploitable attack surface.

Attack Vector

The attack can be executed remotely over the network. An attacker identifies Raspberry Pi devices through network scanning, looking for SSH services (typically on port 22) or by fingerprinting the device through its MAC address vendor prefix. Once a target is identified, the attacker simply attempts SSH authentication using the username pi and password raspberry.

Successful exploitation provides immediate shell access with the ability to escalate to root privileges via sudo. From there, attackers can install malware, establish persistence, exfiltrate data, or use the compromised device as a pivot point for further network attacks.

Detection Methods for CVE-2021-38759

Indicators of Compromise

  • Failed SSH authentication attempts followed by successful login to the pi account from unfamiliar IP addresses
  • Unexpected processes or services running under the pi user context
  • New cron jobs, systemd services, or startup scripts created by the pi user
  • Outbound network connections to suspicious IP addresses or command-and-control infrastructure
  • Modified system files or newly created files in /home/pi, /tmp, or other writable directories

Detection Strategies

  • Monitor SSH authentication logs (/var/log/auth.log) for successful logins to the pi account from unexpected source IPs
  • Implement network intrusion detection rules to alert on SSH traffic to Raspberry Pi devices from external networks
  • Deploy endpoint detection solutions to monitor for suspicious command execution or privilege escalation on Raspberry Pi devices
  • Use SentinelOne Singularity to detect post-exploitation activities such as malware installation, persistence mechanisms, and lateral movement

Monitoring Recommendations

  • Configure centralized log collection from all Raspberry Pi devices to enable correlation of authentication events
  • Establish baseline behavior for the pi account and alert on deviations such as unusual login times or command patterns
  • Implement network segmentation and monitor traffic crossing segment boundaries for Raspberry Pi device communications

How to Mitigate CVE-2021-38759

Immediate Actions Required

  • Change the default password for the pi account immediately on all Raspberry Pi devices using passwd pi
  • Audit all deployed Raspberry Pi devices to identify those still using default credentials
  • Disable the pi account entirely if not needed and create a new administrative account with a strong, unique password
  • Disable SSH access if not required, or restrict SSH access to trusted IP addresses using firewall rules
  • Update to the latest Raspberry Pi OS release (April 2022 or later) which removes the default pi user account

Patch Information

The Raspberry Pi Foundation addressed this vulnerability by removing the default user account in Raspberry Pi OS releases from April 2022 onwards. The updated OS image requires users to create a custom user account during initial setup, eliminating the default credential risk. Users should upgrade to the latest Raspberry Pi OS version and follow the Raspberry Pi Configuration Guide for security best practices.

Workarounds

  • Change the pi account password to a strong, unique value: sudo passwd pi
  • Disable password authentication for SSH and use key-based authentication only
  • Configure fail2ban or similar intrusion prevention tools to block brute-force attempts
  • Place Raspberry Pi devices behind a firewall and restrict SSH access to VPN or trusted networks only
bash
# Configuration example - Secure SSH configuration
# Edit /etc/ssh/sshd_config and apply these settings:

# Disable password authentication (use keys only)
PasswordAuthentication no

# Disable root login
PermitRootLogin no

# Restrict SSH to specific user
AllowUsers yourusername

# Restart SSH service to apply changes
sudo systemctl restart sshd

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechRaspberry Pi Os

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability33.94%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1188
  • Technical References
  • Packet Storm Security Advisory

  • Ars Technica Article

  • CNVD #2021-43968
  • Vendor Resources
  • Raspberry Pi Configuration Guide
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
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