The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2022-48565

CVE-2022-48565: Python plistlib XXE Vulnerability

CVE-2022-48565 is an XML External Entity (XXE) flaw in Python's plistlib module affecting versions through 3.9.1. This vulnerability allows XML entity exploitation. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 25, 2026

CVE-2022-48565 Overview

An XML External Entity (XXE) vulnerability was discovered in Python through version 3.9.1, affecting the plistlib module. This module, used for parsing Apple property list (plist) files, accepted entity declarations in XML plist files, making it susceptible to XXE attacks. Successful exploitation could allow attackers to read arbitrary files, perform server-side request forgery (SSRF), or cause denial of service conditions on affected systems.

Critical Impact

Unauthenticated remote attackers can exploit this XXE vulnerability via network access to compromise confidentiality, integrity, and availability of systems running vulnerable Python versions.

Affected Products

  • Python versions through 3.9.1
  • Debian Linux 10.0
  • Systems using the plistlib module for XML plist parsing

Discovery Timeline

  • 2023-08-22 - CVE-2022-48565 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-48565

Vulnerability Analysis

The vulnerability exists in Python's plistlib module, which is used to read and write Apple plist files in XML format. The module's XML parser did not properly restrict the processing of external entity declarations within plist files. XML External Entity (XXE) attacks exploit this weakness by injecting malicious external entity references into XML documents.

When the plistlib module parses a specially crafted plist file containing external entity declarations, the XML parser resolves these entities, potentially allowing attackers to:

  • Read sensitive files from the local filesystem (e.g., /etc/passwd, configuration files)
  • Perform Server-Side Request Forgery (SSRF) by forcing the server to make HTTP requests to internal resources
  • Cause denial of service through recursive entity expansion (billion laughs attack)
  • Exfiltrate data to attacker-controlled servers

The vulnerability is classified as CWE-611 (Improper Restriction of XML External Entity Reference), indicating the core issue is insufficient validation of XML input containing entity declarations.

Root Cause

The root cause is the improper configuration of the underlying XML parser used by the plistlib module. By default, many XML parsers allow the processing of Document Type Definitions (DTDs) and external entity references. The plistlib module failed to disable these dangerous features when parsing plist XML files, allowing malicious entity declarations to be processed.

The fix involves configuring the XML parser to reject any entity declarations in XML plist files, effectively blocking XXE attack vectors at the parsing stage.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious plist file containing XXE payloads with external entity declarations
  2. Delivering the malicious plist to a target application that uses Python's plistlib.load() or plistlib.loads() functions
  3. When the application parses the plist, the XXE payload executes, potentially exposing sensitive data

Common attack scenarios include applications that accept user-uploaded plist files, process plist data from untrusted sources, or parse plist configurations from network endpoints.

Detection Methods for CVE-2022-48565

Indicators of Compromise

  • Unusual file read operations targeting sensitive system files like /etc/passwd, /etc/shadow, or application configuration files
  • Unexpected outbound network connections from Python processes to unknown external hosts
  • Log entries showing XML parsing errors related to entity declarations or DTD processing
  • Presence of plist files containing <!DOCTYPE> or <!ENTITY> declarations in uploaded or processed content

Detection Strategies

  • Monitor Python application logs for XML parsing exceptions or warnings related to entity processing
  • Implement network monitoring for SSRF indicators such as internal network reconnaissance from application servers
  • Deploy file integrity monitoring on sensitive configuration files and system directories
  • Use web application firewalls (WAF) configured to detect XXE payloads in incoming requests

Monitoring Recommendations

  • Audit Python application dependencies and track usage of plistlib module across the environment
  • Implement centralized logging for Python applications processing XML or plist content
  • Configure alerts for unusual Python process behavior including excessive file read operations or network connections
  • Review application code for instances of plistlib.load() and plistlib.loads() handling untrusted input

How to Mitigate CVE-2022-48565

Immediate Actions Required

  • Upgrade Python to a patched version that addresses this vulnerability (versions after 3.9.1 with the security fix applied)
  • Review all applications using the plistlib module for processing untrusted plist content
  • Implement input validation to reject plist files containing DTD or entity declarations before parsing
  • Consider using alternative plist parsing methods that enforce strict security controls

Patch Information

The vulnerability has been addressed in Python with changes to the plistlib module that no longer accept entity declarations in XML plist files. For detailed information about the fix, refer to the Python Bug Report #42051. Distribution-specific patches are available through:

  • Debian LTS Advisory September 2023
  • Debian LTS Advisory October 2023
  • Fedora package announcements for affected Python versions
  • NetApp Security Advisory NTAP-20231006-0007

Workarounds

  • If upgrading is not immediately possible, implement application-level defenses by validating plist content before parsing
  • Use the defusedxml library as a wrapper for XML parsing operations to automatically block XXE attacks
  • Configure network segmentation to limit the impact of potential SSRF exploitation
  • Restrict application permissions to minimize the impact of file disclosure attacks
bash
# Verify Python version and check for vulnerable plistlib
python3 --version

# Install defusedxml as an additional protection layer
pip install defusedxml

# Check if your application uses plistlib
grep -r "import plistlib" /path/to/application/
grep -r "from plistlib" /path/to/application/

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechPython

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability7.27%

  • 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-611
  • Technical References
  • Debian LTS Advisory September 2023

  • Debian LTS Advisory October 2023

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20231006-0007
  • Vendor Resources
  • Python Bug Report #42051
  • Related CVEs
  • CVE-2025-13462: Python tarfile Module Parsing Vulnerability

  • CVE-2026-2297: CPython Information Disclosure Vulnerability

  • CVE-2025-13836: Python Python DOS Vulnerability

  • CVE-2026-0994: Google Protobuf Python DoS 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