EspoCRM
EspoCRM vulnerable to authenticated RCE via Formula with path traversal in attachment `sourceId`, exploitable by admin user
EspoCRM is an open source customer relationship management application. Prior to version 9.3.4, EspoCRM's built-in formula scripting engine allowing updating attachment's sourceId thus allowing an authenticated admin to overwrite the `sourceId` field on `Attachment` entities. Because `sourceId` is concatenated directly into a file path with no sanitization in `EspoUploadDir::getFilePath()`, an attacker can redirect any file read or write operation to an arbitrary path within the web server's `open_basedir` scope. Version 9.3.4 fixes the issue.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 9.3.4
Fixed in 9.3.4
Mitigation
Upgrade espocrm to 9.3.4 or later.
References
- Vendor advisory github.com/espocrm/espocrm/security/advisories…
Timeline
Days relative to CVE publicationFirst public PoC 29 days before publication; not in CISA KEV. First PoC: JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656 (created 24 Mar 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656 | 24 Mar 2026 −29 d | 0 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /client/x
- Query
c=c=idc={var}- Ports
- 8090
- Seen in
- 1 repo: JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656
- Evidence
- JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:101 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:109 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:98
POST /api/v1/Attachment
- Key headers
Espo-Authorization: {var}- Body markers
"name":"test.txt""type":"text/plain""role":"Attachment""relatedType":"Document""field":"file""isBeingUploaded""size""name":"ht.txt""isBeingUploaded":true"size":999999inapplication/json- Ports
- 8090
- Seen in
- 1 repo: JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656
- Evidence
- JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:44 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:69 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:46 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:71
POST /api/v1/Attachment/chunk/{var}
- Key headers
Espo-Authorization: {var}- Body markers
data:application/octet-stream;base64,PD9waHAgc3lzdGVtKCRfR0VUWyJjIl0pOyA/Pg==)data:text/plain;base64,CjxGaWxlc01hdGNoICJeeCQiPgpTZXRIYW5kbGVyIGFwcGxpY2F0aW9uL3gtaHR0cGQtcGhwCjwvRmlsZXNNYXRjaD4=)data:application/octet-stream;base64,PD9waHAgc3lzdGVtKCRfR0VUWyJjIl0pOyA/Pg==data:text/plain;base64,SetHandler application/x-httpd-phpFilesMatchinapplication/octet-stream- Ports
- 8090
- Seen in
- 1 repo: JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656
- Evidence
- JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:62 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:90 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:64 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:92
POST /api/v1/Formula/action/run
- Key headers
Espo-Authorization: {var}- Body markers
"expression""targetType""targetId""expression":"record\\update(\"Attachment\"sourceId../../client/x"targetType":null"targetId":null../../.htaccessinapplication/json- Ports
- 8090
- Seen in
- 1 repo: JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656
- Evidence
- JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:53 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:78 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:55 JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656/ESPOCRM-RCE-POC-CVE-2026-33656.sh:80
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/client/x\?(?:.*&)?c=.*c=id.*c=\{var\}
(?i)^/api/v1/Attachment(?:[?#].*)?$
(?i)^/api/v1/Attachment/chunk/[^/?#]*(?:[?#].*)?$
(?i)^/api/v1/Formula/action/run(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8090] (msg:"GG PoC-Monitor CVE-2026-33656 espocrm espocrm exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/client/x"; http.uri; content:"c="; http.uri; content:"c=id"; http.uri; content:"c={var}"; reference:url,poc.griffinguard.io/cve/CVE-2026-33656; classtype:web-application-attack; sid:9444903; rev:1;)
alert http any any -> $HOME_NET [8090] (msg:"GG PoC-Monitor CVE-2026-33656 espocrm espocrm exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/Attachment"; http.header_names; content:"Espo-Authorization"; nocase; http.request_body; content:"|22|name|22|:|22|test.txt|22|"; http.request_body; content:"|22|type|22|:|22|text/plain|22|"; http.request_body; content:"|22|role|22|:|22|Attachment|22|"; http.request_body; content:"|22|relatedType|22|:|22|Document|22|"; http.request_body; content:"|22|field|22|:|22|file|22|"; http.request_body; content:"|22|isBeingUploaded|22|"; http.request_body; content:"|22|size|22|"; http.request_body; content:"|22|name|22|:|22|ht.txt|22|"; http.request_body; content:"|22|isBeingUploaded|22|:true"; http.request_body; content:"|22|size|22|:999999"; reference:url,poc.griffinguard.io/cve/CVE-2026-33656; classtype:web-application-attack; sid:9156371; rev:1;)
alert http any any -> $HOME_NET [8090] (msg:"GG PoC-Monitor CVE-2026-33656 espocrm espocrm exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/Attachment/chunk/"; http.header_names; content:"Espo-Authorization"; nocase; http.request_body; content:"data:application/octet-stream|3b|base64,PD9waHAgc3lzdGVtKCRfR0VUWyJjIl0pOyA/Pg==)"; http.request_body; content:"data:text/plain|3b|base64,CjxGaWxlc01hdGNoICJeeCQiPgpTZXRIYW5kbGVyIGFwcGxpY2F0aW9uL3gtaHR0cGQtcGhwCjwvRmlsZXNNYXRjaD4=)"; http.request_body; content:"data:application/octet-stream|3b|base64,"; http.request_body; content:"PD9waHAgc3lzdGVtKCRfR0VUWyJjIl0pOyA/Pg=="; http.request_body; content:"data:text/plain|3b|base64,"; http.request_body; content:"SetHandler application/x-httpd-php"; http.request_body; content:"FilesMatch"; reference:url,poc.griffinguard.io/cve/CVE-2026-33656; classtype:web-application-attack; sid:9600343; rev:1;)
alert http any any -> $HOME_NET [8090] (msg:"GG PoC-Monitor CVE-2026-33656 espocrm espocrm exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/Formula/action/run"; http.header_names; content:"Espo-Authorization"; nocase; http.request_body; content:"|22|expression|22|"; http.request_body; content:"|22|targetType|22|"; http.request_body; content:"|22|targetId|22|"; http.request_body; content:"|22|expression|22|:|22|record|5c||5c|update(|5c||22|Attachment|5c||22|"; http.request_body; content:"sourceId"; http.request_body; content:"../../client/x"; http.request_body; content:"|22|targetType|22|:null"; http.request_body; content:"|22|targetId|22|:null"; http.request_body; content:"../../.htaccess"; reference:url,poc.griffinguard.io/cve/CVE-2026-33656; classtype:web-application-attack; sid:9057733; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: espocrm espocrm exploit attempt (CVE-2026-33656)
id: gg-pocmon-cve-2026-33656-9444903
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-33656. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-33656
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/client/x'
cs-uri-query|contains|all:
- 'c='
- 'c=id'
- 'c={var}'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.33656
title: espocrm espocrm exploit attempt (CVE-2026-33656)
id: gg-pocmon-cve-2026-33656-9156371
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-33656. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-33656
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/Attachment'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.33656
title: espocrm espocrm exploit attempt (CVE-2026-33656)
id: gg-pocmon-cve-2026-33656-9600343
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-33656. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-33656
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/Attachment/chunk/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.33656
title: espocrm espocrm exploit attempt (CVE-2026-33656)
id: gg-pocmon-cve-2026-33656-9057733
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-33656. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-33656
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/Formula/action/run'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.33656