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

CVE-2026-26065: Calibre-ebook Path Traversal Vulnerability

CVE-2026-26065 is a path traversal flaw in Calibre-ebook versions 9.2.1 and below that enables arbitrary file writes, potentially leading to code execution. This article covers technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-26065 Overview

CVE-2026-26065 is a critical Path Traversal vulnerability affecting Calibre, the popular cross-platform e-book manager used for viewing, converting, editing, and cataloging e-books. The vulnerability exists in the PDB (Palm Database) readers, specifically in both 132-byte and 202-byte header variants, allowing attackers to write arbitrary files with arbitrary extensions and content to any location where the user has write permissions.

The vulnerability enables malicious actors to craft specially formatted PDB e-book files that, when processed by Calibre, can write files outside the intended extraction directory. Files are written in binary write mode (wb), which silently overwrites existing files without warning, significantly increasing the potential for damage.

Critical Impact

This vulnerability allows arbitrary file writes that can lead to code execution through overwriting critical system or application files, and Denial of Service through corruption of important files on the victim's system.

Affected Products

  • Calibre versions 9.2.1 and below
  • All platforms (Windows, macOS, Linux) running vulnerable Calibre versions
  • Systems processing untrusted PDB e-book files

Discovery Timeline

  • 2026-02-20 - CVE-2026-26065 published to NVD
  • 2026-02-20 - Last updated in NVD database

Technical Details for CVE-2026-26065

Vulnerability Analysis

This Path Traversal vulnerability (CWE-22) exists in Calibre's PDB reader components. The flaw stems from inadequate validation of file paths extracted from PDB e-book metadata. When processing image files embedded within PDB format e-books, the application fails to properly sanitize filenames, allowing directory traversal sequences (such as ../) to escape the intended extraction container.

The vulnerability affects two distinct reader implementations: reader132.py for 132-byte PDB headers and reader202.py for 202-byte headers. Both implementations suffered from the same fundamental flaw—trusting user-controlled filename data from the PDB file structure without proper path validation.

The local attack vector requires user interaction, as a victim must open a maliciously crafted PDB file. However, given Calibre's widespread use for managing e-book libraries and its integration with various e-book sources, the attack surface is significant.

Root Cause

The root cause is insufficient input validation in the PDB image extraction routines. When extracting images from PDB files, the vulnerable code directly used the image name from the file metadata to construct the output path without verifying that the resulting path remained within the intended output directory. This allowed attackers to include path traversal sequences in image names, causing files to be written to arbitrary locations.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious PDB e-book file containing embedded images with path traversal sequences in their names. When a victim opens this file with a vulnerable version of Calibre, the application extracts the images to locations outside the intended directory.

Potential attack scenarios include:

  • Overwriting configuration files to achieve code execution on application restart
  • Replacing executable files or scripts in user-accessible locations
  • Corrupting critical user documents causing data loss
  • Planting malicious files in startup directories for persistence

The security patch introduces a new image_dest() function that validates extracted image paths remain within the container directory:

python
    def image_dest(self, name, cwd):
        base = os.path.abspath(cwd)
        if not base.endswith(os.sep):
            base += os.sep
        ans = os.path.abspath(os.path.join(base, name))
        if os.path.commonprefix([ans, base]) != base:
            ans = ''
        return ans

Source: GitHub Commit

The fix in reader202.py ensures all image extractions use the validated destination path:

python
        if not os.path.exists(os.path.join(output_dir, 'images/')):
            os.makedirs(os.path.join(output_dir, 'images/'))
        images = []
        with CurrentDir(os.path.join(output_dir, 'images/')) as cwd:
            for i in range(self.header_record.non_text_offset, len(self.sections)):
                name, img = self.get_image(i)
                name = as_unicode(name or b'')
                if name and (dest := self.image_dest(name, cwd)):
                    images.append(name)
                    with open(dest, 'wb') as imgf:
                        self.log.debug(f'Writing image {name} to images/')
                        imgf.write(img)

Source: GitHub Commit

Detection Methods for CVE-2026-26065

Indicators of Compromise

  • Unexpected file modifications outside of Calibre's library directories during e-book import operations
  • PDB files containing image entries with path traversal sequences (../, ..\\, or absolute paths)
  • Newly created or modified files in system directories coinciding with Calibre usage
  • Unexpected application crashes or configuration changes after opening PDB files

Detection Strategies

  • Monitor file system activity during Calibre e-book import operations for writes outside the library directory
  • Implement file integrity monitoring on critical system files and startup directories
  • Scan incoming PDB files for path traversal patterns in embedded metadata
  • Deploy endpoint detection rules to alert on suspicious file writes correlating with Calibre process activity

Monitoring Recommendations

  • Enable detailed logging for Calibre operations, particularly e-book import and conversion activities
  • Monitor for the creation of files with unusual extensions in system directories
  • Implement behavioral analysis to detect Calibre writing files to unexpected locations
  • Review and audit recently imported PDB files from untrusted sources

How to Mitigate CVE-2026-26065

Immediate Actions Required

  • Upgrade Calibre to version 9.3.0 or later immediately
  • Avoid opening PDB e-book files from untrusted sources until the upgrade is complete
  • Review systems for signs of exploitation if untrusted PDB files have been recently processed
  • Consider restricting Calibre's file system access using application sandboxing where available

Patch Information

The vulnerability has been addressed in Calibre version 9.3.0. The fix introduces path validation in the image_dest() function for both PDB reader variants, ensuring extracted images cannot escape the intended container directory. The patch is available in the official GitHub commit.

For detailed information about the security issue, refer to the GitHub Security Advisory.

Workarounds

  • Avoid processing PDB format e-books from untrusted sources until patched
  • Run Calibre in a sandboxed environment or container with restricted file system access
  • Use a dedicated user account with minimal privileges for running Calibre
  • Convert untrusted PDB files using an isolated system before importing into your primary library
bash
# Example: Run Calibre with restricted file system access using firejail (Linux)
firejail --private=~/calibre-sandbox calibre

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechCalibre

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2026-33206: Calibre E-book Path Traversal Vulnerability

  • CVE-2026-30853: Calibre-ebook Path Traversal Vulnerability

  • CVE-2026-26064: Calibre Path Traversal Vulnerability

  • CVE-2026-25636: Calibre Path Traversal Vulnerability
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