CVE-2026-33740

EspoCRM: Email importEml can import and delete another user's attachment by raw fileId

Published Apr 13, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
EspoCRM is an open source customer relationship management application. In versions 9.3.3 and below, the POST /api/v1/Email/importEml endpoint contains an Insecure Direct Object Reference (IDOR) vulnerability 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 to read another user's .eml attachment contents by importing them as a new email into the attacker's mailbox, while the original victim attachment record is deleted as a side effect of the import flow. This is inconsistent with the standard attachment download path, which enforces ACL checks before returning file data, and is practically exploitable because attachment IDs are commonly exposed in normal UI and API workflows such as stream payloads and download links. This issue is fixed in version 9.3.4.

Analysis

AI-generated

Technical impact

EspoCRM contains an IDOR flaw in the POST /api/v1/Email/importEml endpoint that allows any authenticated user with Email:create and Import permissions to provide a fileId and read the contents of another user’s .eml attachment. The endpoint also deletes the original attachment record as part of the import flow, which violates the standard permission checks applied to attachment download. This results in confidential data exposure and accidental loss of attachment data for the victim.

Affected Systems

The vulnerability is present in EspoCRM versions 9.3.3 and earlier. Version 9.3.4 and later contain a fix that enforces proper access control on attachment retrieval.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate severity. Exploitation requires a legitimate Authenticated user who has the Email:create and Import permissions, which limits the attack surface to users with those rights. No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog. However, attachment IDs are frequently exposed in normal UI and API workflows, making the IDOR practically exploitable for users who meet the permission criteria.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the 9.3.4 patch or later immediately.
  • If patching cannot be done promptly, restrict the Email:create and Import permissions to trusted users or disable the importEml endpoint until the vulnerability is fixed.
  • Verify that the IDOR is no longer present by attempting to access another user’s attachment ID with the same permissions after applying the fix.

Generated by OpenCVE AI on April 13, 2026 at 22:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:espocrm:espocrm:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Espocrm
Espocrm espocrm
Vendors & Products Espocrm
Espocrm espocrm
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description EspoCRM is an open source customer relationship management application. In versions 9.3.3 and below, the POST /api/v1/Email/importEml endpoint contains an Insecure Direct Object Reference (IDOR) vulnerability 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 to read another user's .eml attachment contents by importing them as a new email into the attacker's mailbox, while the original victim attachment record is deleted as a side effect of the import flow. This is inconsistent with the standard attachment download path, which enforces ACL checks before returning file data, and is practically exploitable because attachment IDs are commonly exposed in normal UI and API workflows such as stream payloads and download links. This issue is fixed in version 9.3.4.
Title EspoCRM: Email importEml can import and delete another user's attachment by raw fileId
Weaknesses CWE-639
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 14, 2026, 3:50 PM
Reserved
Mar 23, 2026, 5:34 PM
Status
Analyzed
Published
Apr 13, 2026, 9:16 PM
Modified
Jun 17, 2026, 10:38 AM