# CVE-2026-33740: EspoCRM: Email importEml can import and delete another user's attachment by raw fileId

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2026-04-13T20:37:28.831Z
- Modified: 2026-06-17T10:38:01.073Z
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- espocrm espocrm: < 9.3.4; before 9.3.4

## References

- <https://github.com/espocrm/espocrm/security/advisories/GHSA-wr7j-hxf8-hc4w> (exploit, mitigation, vendor-advisory)
- <https://github.com/espocrm/espocrm/commit/88e3ba6a7b5cab5dbc2298e2a093d3aa383aa95f> (exploit, patch)
- <https://github.com/espocrm/espocrm/releases/tag/9.3.4> (exploit, release-notes)

## Sources

- CVE List: [CVE-2026-33740](https://www.cve.org/CVERecord?id=CVE-2026-33740), CVE Terms of Use, modified 2026-04-14
- NVD: [CVE-2026-33740](https://nvd.nist.gov/vuln/detail/CVE-2026-33740), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33740 · Whole record: https://cve.day/CVE-2026-33740.json · Rebuilt by cve.day 2026-11-25T22:59:18.643Z
