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
    • 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-2026-27448

CVE-2026-27448: pyOpenSSL Auth Bypass Vulnerability

CVE-2026-27448 is an authentication bypass flaw in pyOpenSSL that allows attackers to bypass security callbacks through unhandled exceptions. This article covers the technical details, affected versions, and mitigation.

Published: March 20, 2026

CVE-2026-27448 Overview

CVE-2026-27448 is an authentication bypass vulnerability in pyOpenSSL, a Python wrapper around the OpenSSL library. Starting in version 0.14.0 and prior to version 26.0.0, if a user-provided callback to set_tlsext_servername_callback raised an unhandled exception, the connection would be incorrectly accepted instead of rejected. This behavior could allow attackers to bypass security-sensitive callback logic that applications depend on for connection validation.

Critical Impact

Applications relying on set_tlsext_servername_callback for security decisions may inadvertently accept malicious connections when callback exceptions occur, potentially bypassing authentication or authorization controls.

Affected Products

  • pyOpenSSL versions 0.14.0 through 25.x (prior to 26.0.0)
  • Python applications using Context.set_tlsext_servername_callback for security validation
  • TLS/SSL server implementations built with affected pyOpenSSL versions

Discovery Timeline

  • 2026-03-18 - CVE CVE-2026-27448 published to NVD
  • 2026-03-18 - Last updated in NVD database

Technical Details for CVE-2026-27448

Vulnerability Analysis

This vulnerability falls under CWE-636 (Not Failing Securely), where the pyOpenSSL library fails to handle exceptions in a secure manner. When a developer registers a callback function using Context.set_tlsext_servername_callback to implement custom TLS Server Name Indication (SNI) validation logic, any unhandled exception raised within that callback was silently swallowed by the library. Rather than treating the exception as a failure condition and rejecting the connection, pyOpenSSL proceeded with the TLS handshake as if the callback had completed successfully.

This design flaw is particularly dangerous because developers may implement security-critical logic within these callbacks—such as validating client certificates, checking server name allowlists, or enforcing multi-tenancy isolation. An attacker who can trigger an exception in the callback code (through malformed input, resource exhaustion, or other means) could potentially bypass these security controls entirely.

Root Cause

The root cause lies in pyOpenSSL's exception handling within the C callback wrapper that bridges OpenSSL's native callback mechanism with Python callback functions. Prior to version 26.0.0, exceptions raised in the Python callback were caught but not properly propagated as TLS errors. The library failed to invoke sys.excepthook to report the exception and did not return an appropriate TLS fatal alert to terminate the handshake. This "fail open" behavior violates secure coding principles that mandate systems should fail in a secure state when encountering unexpected conditions.

Attack Vector

An attacker exploiting this vulnerability requires network access to a TLS server using an affected pyOpenSSL version with security-sensitive SNI callback logic. The attack scenario involves:

  1. The attacker identifies a target application using pyOpenSSL with set_tlsext_servername_callback for security validation
  2. The attacker crafts TLS connection requests designed to trigger exception conditions in the callback (e.g., edge cases in domain parsing, unexpected character encodings, or resource constraints)
  3. When the callback raises an unhandled exception, the connection proceeds as if validation succeeded
  4. The attacker gains access that should have been denied by the callback's security logic

The fix in version 26.0.0 now properly handles exceptions by calling sys.excepthook and returning a fatal TLS alert to reject the connection:

python
import os
import socket
import sys
import typing
import warnings
from collections.abc import Sequence

Source: GitHub PyOpenSSL Commit

The changelog documents this behavioral change:

text
 ^^^^^^^^
 
 - Added ``OpenSSL.SSL.Connection.get_group_name`` to determine which group name was negotiated.
+- ``Context.set_tlsext_servername_callback`` now handles exceptions raised in the callback by calling ``sys.excepthook`` and returning a fatal TLS alert. Previously, exceptions were silently swallowed and the handshake would proceed as if the callback had succeeded.
 
 25.3.0 (2025-09-16)
 -------------------

Source: GitHub PyOpenSSL Changelog Entry

Detection Methods for CVE-2026-27448

Indicators of Compromise

  • Unexpected successful TLS connections from untrusted sources that should have been rejected by SNI callback logic
  • Application logs showing exceptions in SNI callback functions without corresponding connection terminations
  • Anomalous connection patterns where clients with malformed or unexpected SNI values successfully establish sessions

Detection Strategies

  • Review application logs for exceptions occurring during TLS handshake callbacks that did not result in connection failures
  • Audit pyOpenSSL version dependencies in requirements.txt, Pipfile, or poetry.lock files for versions between 0.14.0 and 25.x
  • Implement exception monitoring within set_tlsext_servername_callback handlers to detect and alert on unhandled exceptions
  • Use dependency scanning tools to identify affected pyOpenSSL versions across your application portfolio

Monitoring Recommendations

  • Enable comprehensive logging within TLS callback functions to capture all exception events with stack traces
  • Monitor for unusual patterns of successful connections that bypass expected validation criteria
  • Implement alerting for elevated exception rates in security-critical callback code paths
  • Deploy application performance monitoring (APM) to track callback execution anomalies

How to Mitigate CVE-2026-27448

Immediate Actions Required

  • Upgrade pyOpenSSL to version 26.0.0 or later to ensure exceptions in callbacks result in connection rejection
  • Audit all set_tlsext_servername_callback implementations for proper exception handling with explicit try/except blocks
  • Add comprehensive exception handling to all security-critical callback functions as a defense-in-depth measure
  • Review connection logs for potential past exploitation attempts during the vulnerable period

Patch Information

The vulnerability is addressed in pyOpenSSL version 26.0.0. The fix ensures that unhandled exceptions in set_tlsext_servername_callback now invoke sys.excepthook for proper error reporting and return a fatal TLS alert to reject the connection. Organizations should upgrade to version 26.0.0 or later. For detailed patch information, see the GitHub Security Advisory GHSA-vp96-hxj8-p424.

Workarounds

  • Wrap all callback logic in comprehensive try/except blocks that explicitly reject connections on any exception
  • Implement a fail-secure pattern by returning an error status from the callback when exceptions occur
  • Add logging within exception handlers to maintain visibility into callback failures
  • Consider implementing additional validation layers outside the callback mechanism as redundant security controls
bash
# Upgrade pyOpenSSL to patched version
pip install --upgrade pyOpenSSL>=26.0.0

# Verify installed version
pip show pyOpenSSL | grep Version

# For requirements.txt, update the dependency constraint
# pyOpenSSL>=26.0.0

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechPyopenssl

  • SeverityLOW

  • CVSS Score1.7

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/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-636
  • Technical References
  • GitHub PyOpenSSL Changelog Entry

  • GitHub PyOpenSSL Commit

  • GitHub Security Advisory GHSA-vp96-hxj8-p424
  • Related CVEs
  • CVE-2026-27459: pyOpenSSL Buffer Overflow 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