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-2025-1795

CVE-2025-1795: Email Address Folding Vulnerability

CVE-2025-1795 is an information disclosure flaw in email address folding that causes separating commas to be incorrectly unicode-encoded, leading to header misinterpretation by mail servers.

Updated: January 22, 2026

CVE-2025-1795 Overview

CVE-2025-1795 is an Improper Encoding or Escaping of Output vulnerability in Python's email library. During address list folding, when a separating comma ends up on a folded line that needs to be unicode-encoded, the separator itself is incorrectly unicode-encoded. The expected behavior is that the separating comma remains a plain comma character. This improper encoding can result in address headers being misinterpreted by some mail servers, potentially causing email delivery issues or security implications in email-handling applications.

Critical Impact

Mail servers may misinterpret encoded address headers, potentially leading to emails being delivered to unintended recipients or failing to deliver entirely. Applications relying on Python's email library for address parsing and formatting may produce malformed headers.

Affected Products

  • Python CPython (multiple versions)
  • Debian Linux (via Python packages)
  • Applications using Python's email module for header value parsing

Discovery Timeline

  • 2023-01-13 - Issue initially reported via GitHub Issue #100884
  • 2025-02-28 - CVE-2025-1795 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-1795

Vulnerability Analysis

The vulnerability exists in Python's email/_header_value_parser.py module, which handles the parsing and encoding of email headers. When processing address lists that contain multiple recipients separated by commas, the library performs "folding" to ensure headers comply with line length requirements specified in RFC 5322.

The issue occurs during the encoding process when a list separator (comma) appears on a line that requires unicode encoding. The ListSeparator terminal, defined as ValueTerminal(',', 'list-separator'), was being processed through the encoded-word transformation when it should have remained as a literal ASCII comma.

This behavior violates RFC 2047, which specifies that certain structural characters in email headers must not be encoded. When a comma separator is incorrectly encoded (e.g., as =?utf-8?q?=2C?=), receiving mail servers may fail to recognize it as a delimiter, potentially concatenating addresses or misrouting messages.

Root Cause

The root cause is the missing as_ew_allowed = False attribute on the ListSeparator terminal in the header value parser. Without this flag, the encoding logic would include the comma separator in encoded-word sequences when the surrounding content required unicode encoding. The as_ew_allowed attribute controls whether a terminal can be included in an RFC 2047 encoded-word, and list separators should explicitly be excluded.

Attack Vector

This is a network-accessible vulnerability that requires specific conditions to trigger:

  1. An attacker crafts email addresses containing unicode characters that, when combined with other recipients, cause the comma separator to fall on a folded line
  2. The Python email library encodes the entire line including the separator
  3. The malformed header is sent to a mail server that interprets the encoded comma as part of an address rather than a delimiter

While exploitation requires low privileges and specific conditions, the impact is limited to potential information disclosure through misdirected emails or denial of service through delivery failures.

python
# Security patch from Lib/email/_header_value_parser.py
# Source: https://github.com/python/cpython/commit/09fab93c3d857496c0bd162797fab816c311ee48

# up other parse trees.  Maybe should have  tests for that, too.
DOT = ValueTerminal('.', 'dot')
ListSeparator = ValueTerminal(',', 'list-separator')
+ListSeparator.as_ew_allowed = False
RouteComponentMarker = ValueTerminal('@', 'route-component-marker')

#

The fix adds ListSeparator.as_ew_allowed = False to explicitly prevent the comma separator from being included in encoded-word sequences, ensuring it always remains as a plain ASCII comma in the output.

Detection Methods for CVE-2025-1795

Indicators of Compromise

  • Email headers containing encoded comma separators in address lists (e.g., =?utf-8?q?=2C?= instead of plain ,)
  • Mail server logs showing parsing errors for recipient lists with unicode content
  • Bounce messages indicating malformed headers from downstream mail servers
  • Unexpected email delivery behavior when sending to multiple recipients with international characters

Detection Strategies

  • Monitor outbound email headers for encoded structural characters (commas, semicolons) that should remain unencoded
  • Implement regex patterns to detect RFC 2047 encoded-word sequences containing encoded ASCII delimiters
  • Review application logs for email delivery failures related to header parsing
  • Audit Python environments to identify vulnerable versions of the email module

Monitoring Recommendations

  • Deploy email header validation checks in mail transfer agents to flag suspicious encoding patterns
  • Configure logging to capture raw email headers for forensic analysis
  • Monitor mail queue sizes for unexpected growth that could indicate delivery failures
  • Set up alerts for increased bounce rates that may indicate header parsing issues

How to Mitigate CVE-2025-1795

Immediate Actions Required

  • Update Python to a patched version that includes the fix for email/_header_value_parser.py
  • Review applications using Python's email library for address list handling
  • Validate outbound email headers in development and staging environments
  • Consider implementing application-level validation of email headers before sending

Patch Information

The vulnerability has been addressed through commits to multiple Python branches. The fix sets ListSeparator.as_ew_allowed = False to prevent the comma separator from being unicode-encoded during header folding.

Relevant patches are available via:

  • Python Security Announcement
  • Debian LTS Security Announcement
  • GitHub Pull Request #100885
  • GitHub Pull Request #119099

Workarounds

  • Implement custom header encoding logic that preserves list separators as literal characters
  • Pre-validate email address lists to ensure commas are not positioned on folding boundaries
  • Use ASCII-only email addresses where possible to avoid triggering unicode encoding
  • Add post-processing checks to verify headers before transmission to mail servers
bash
# Verify Python version and check for vulnerable email module
python3 --version
python3 -c "import email._header_value_parser as hvp; print('as_ew_allowed' in dir(hvp.ListSeparator))"

# Update Python via system package manager (Debian/Ubuntu)
sudo apt update && sudo apt upgrade python3

# For pip-based environments, ensure latest Python patch level
pyenv update && pyenv install --list | grep -E "^  3\.(11|12|13)"

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechN/A

  • SeverityLOW

  • CVSS Score2.3

  • EPSS Probability0.59%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-116
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Issue Discussion

  • GitHub Pull Request Review

  • GitHub Pull Request Review

  • Python Security Announcement Thread

  • Debian LTS Security Announcement
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF 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