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-2026-33740

CVE-2026-33740: EspoCRM Auth Bypass Vulnerability

CVE-2026-33740 is an authentication bypass flaw in EspoCRM allowing unauthorized access to email attachments via IDOR. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 17, 2026

CVE-2026-33740 Overview

EspoCRM is an open source customer relationship management (CRM) application that is widely used for managing customer data, sales pipelines, and business communications. CVE-2026-33740 is an Insecure Direct Object Reference (IDOR) vulnerability affecting versions 9.3.3 and below. The vulnerability exists in the POST /api/v1/Email/importEml endpoint where the attacker-supplied fileId parameter is used to fetch any attachment directly from the repository without verifying that the current user has authorization to access it.

Any authenticated user with Email:create and Import permissions can exploit this vulnerability to read another user's .eml attachment contents by importing them as a new email into the attacker's mailbox. As a side effect of the import flow, the original victim's attachment record is deleted. This behavior is inconsistent with the standard attachment download path, which enforces ACL checks before returning file data.

Critical Impact

Authenticated attackers can access and read other users' email attachments, leading to unauthorized data disclosure and potential deletion of victim attachments.

Affected Products

  • EspoCRM versions 9.3.3 and below
  • EspoCRM installations with Email:create and Import permissions enabled for users

Discovery Timeline

  • 2026-04-13 - CVE CVE-2026-33740 published to NVD
  • 2026-04-13 - Last updated in NVD database

Technical Details for CVE-2026-33740

Vulnerability Analysis

The vulnerability stems from a missing authorization check in the email import functionality. When a user sends a POST request to the /api/v1/Email/importEml endpoint with a fileId parameter, the application retrieves the corresponding attachment directly from the repository without validating whether the requesting user has permission to access that specific file.

This creates an authorization bypass where attachment IDs, which are commonly exposed in normal UI and API workflows such as stream payloads and download links, can be leveraged by malicious authenticated users to access files belonging to other users. The standard attachment download path correctly enforces Access Control List (ACL) checks before returning file data, making this inconsistency a clear security oversight.

Root Cause

The root cause is CWE-639: Authorization Bypass Through User-Controlled Key. The fileId parameter in the importEml endpoint directly references attachment objects without implementing proper ownership or permission validation. The import service trusts user-supplied attachment identifiers and performs operations on them without verifying the caller's authorization level.

Attack Vector

The attack vector is network-based and requires low-privilege authenticated access. An attacker with basic Email:create and Import permissions can enumerate or observe attachment IDs through normal application usage, then craft malicious API requests to the vulnerable endpoint to import other users' email attachments into their own mailbox.

php
// Security patch in application/Espo/Tools/Email/Api/PostImportEml.php
// Source: https://github.com/espocrm/espocrm/commit/88e3ba6a7b5cab5dbc2298e2a093d3aa383aa95f

 use Espo\Core\Api\ResponseComposer;
 use Espo\Core\Exceptions\BadRequest;
 use Espo\Core\Exceptions\Forbidden;
+use Espo\Core\Exceptions\NotFound;
+use Espo\Entities\Attachment;
 use Espo\Entities\Email;
 use Espo\Entities\User;
+use Espo\ORM\EntityManager;
 use Espo\Tools\Email\ImportEmlService;

The patch introduces proper entity management and authorization exceptions (NotFound, Forbidden) along with Attachment entity handling via the EntityManager to validate attachment access before processing import requests.

Detection Methods for CVE-2026-33740

Indicators of Compromise

  • Unusual volume of POST requests to /api/v1/Email/importEml from a single user account
  • API requests containing fileId parameters referencing attachments not owned by the requesting user
  • Unexpected attachment deletions reported by users whose files were targeted
  • Audit logs showing email imports with attachment IDs inconsistent with user's own uploads

Detection Strategies

  • Implement API request logging and monitoring for the /api/v1/Email/importEml endpoint
  • Cross-reference fileId values in import requests against attachment ownership records
  • Deploy anomaly detection rules to identify users accessing abnormally high numbers of distinct attachment IDs
  • Enable verbose logging for email import operations to capture authorization context

Monitoring Recommendations

  • Configure alerts for failed authorization attempts following application patching
  • Monitor for patterns of sequential or enumerated fileId access attempts
  • Review access logs for authenticated users attempting to import attachments outside their organizational scope
  • Implement real-time dashboards tracking email import API usage patterns

How to Mitigate CVE-2026-33740

Immediate Actions Required

  • Upgrade EspoCRM to version 9.3.4 or later immediately
  • Audit recent email import activity logs for signs of exploitation
  • Review user permissions and restrict Email:create and Import capabilities to trusted users only
  • Consider temporarily disabling the email import feature if patching cannot be performed immediately

Patch Information

EspoCRM has released version 9.3.4 which addresses this vulnerability. The fix implements proper authorization checks in the PostImportEml.php API handler to validate that the requesting user has permission to access the specified attachment before processing the import.

The security patch is available via:

  • GitHub Commit 88e3ba6
  • EspoCRM Release 9.3.4
  • GitHub Security Advisory GHSA-wr7j-hxf8-hc4w

Workarounds

  • Restrict access to the email import functionality by modifying role permissions to remove Import capability from non-essential users
  • Implement web application firewall (WAF) rules to rate-limit or block requests to /api/v1/Email/importEml
  • Deploy network-level access controls to limit API access to trusted IP ranges
  • Enable additional authentication requirements for sensitive email operations
bash
# Example: Restrict Import permission via EspoCRM role configuration
# Navigate to Administration > Roles > [Role Name]
# Set Email Import permission to "no" for non-administrative roles
# 
# Alternative: Use .htaccess to restrict endpoint access
<Location "/api/v1/Email/importEml">
    Require ip 10.0.0.0/8
    Require ip 192.168.0.0/16
</Location>

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechEspocrm

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-639
  • Technical References
  • GitHub Commit Update

  • GitHub Release Version 9.3.4

  • GitHub Security Advisory GHSA-wr7j-hxf8-hc4w
  • Related CVEs
  • CVE-2020-37094: EspoCRM Authentication Bypass Vulnerability

  • CVE-2026-33733: EspoCRM Path Traversal Vulnerability

  • CVE-2026-33656: EspoCRM Path Traversal Vulnerability

  • CVE-2026-33534: EspoCRM SSRF 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