Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113643 Overview
CVE-2026-113643 is an authorization bypass vulnerability in EspoCRM versions up to 9.3.10 and 10.0.10. The flaw resides in the ImageSourceProvider::get function within application/Espo/Tools/Pdf/Dompdf/ImageSourceProvider.php, part of the PDF Rendering Pipeline. Manipulation of the ID argument allows an authenticated remote attacker to bypass authorization controls and access image resources they should not be able to view. The issue is classified under CWE-285: Improper Authorization. EspoCRM has released a patch under commit 91a9edbcedb9c7aa8e3d3ac81d8a7acccb99bca2 to address the issue.
Critical Impact
Authenticated remote attackers can bypass authorization checks in EspoCRM's PDF rendering pipeline by manipulating image resource IDs, potentially exposing restricted record data referenced in PDF templates.
Affected Products
- EspoCRM versions up to and including 9.3.10
- EspoCRM versions up to and including 10.0.10
- Component: PDF Rendering Pipeline (application/Espo/Tools/Pdf/Dompdf/ImageSourceProvider.php)
Discovery Timeline
- 2026-10-20 - CVE-2026-113643 published to the National Vulnerability Database (NVD)
- 2026-10-20 - Last updated in NVD database
- Patch commit - 91a9edbcedb9c7aa8e3d3ac81d8a7acccb99bca2 published to the EspoCRM GitHub repository
Technical Details for CVE-2026-113643
Vulnerability Analysis
The vulnerability affects EspoCRM's PDF generation pipeline, which uses Dompdf to render templates referenced via image sources. The ImageSourceProvider::get method accepts an ID parameter that identifies the image resource to load during template rendering. The method fails to properly validate whether the authenticated user has authorization to access the record associated with the supplied ID. An attacker with a valid low-privileged account can craft requests referencing image IDs belonging to records they are not permitted to view. The PDF rendering pipeline then embeds restricted content into the output, resulting in disclosure of otherwise protected image resources.
Root Cause
The root cause is improper authorization [CWE-285]. The ImageSourceProvider::get function trusted the inbound ID without enforcing the EspoCRM access-control layer that normally governs record visibility. The patch introduces a dedicated BeforeSaveValidation hook under Espo\Classes\RecordHooks\Template and formalizes template field constants (FIELD_BODY, FIELD_HEADER, FIELD_FOOTER) in application/Espo/Entities/Template.php so that template image references are validated against the acting user's permissions.
Attack Vector
Exploitation requires network access to an EspoCRM instance and valid low-privileged credentials. No user interaction is required beyond submitting a crafted request to the PDF rendering endpoint. An attacker enumerates or guesses image resource IDs tied to restricted records, then triggers PDF generation to retrieve embedded image data outside their authorization scope.
// Patch excerpt: new BeforeSaveValidation hook enforcing template image checks
// Source: https://github.com/espocrm/espocrm/commit/91a9edbcedb9c7aa8e3d3ac81d8a7acccb99bca2
+<?php
+namespace Espo\Classes\RecordHooks\Template;
+
+// New hook class added to validate PDF template image sources
+// before save, preventing unauthorized ID references in
+// ImageSourceProvider::get during PDF rendering.
// Patch excerpt: application/Espo/Entities/Template.php
// Source: https://github.com/espocrm/espocrm/commit/91a9edbcedb9c7aa8e3d3ac81d8a7acccb99bca2
class Template extends Entity
{
- public const ENTITY_TYPE = 'Template';
+ public const string ENTITY_TYPE = 'Template';
+ /** @since 10.1.0 */
+ public const string FIELD_BODY = 'body';
+ /** @since 10.1.0 */
+ public const string FIELD_HEADER = 'header';
+ /** @since 10.1.0 */
+ public const string FIELD_FOOTER = 'footer';
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-113643
Indicators of Compromise
- Unexpected PDF generation requests from low-privileged user accounts targeting records they do not own.
- Anomalous access patterns to the ImageSourceProvider code path or PDF export endpoints referencing IDs outside the user's typical scope.
- Repeated enumeration-style requests varying only in the image ID parameter.
Detection Strategies
- Review EspoCRM web server access logs for repetitive PDF rendering requests with sequential or iterated ID parameter values.
- Correlate PDF generation events with the acting user's record-visibility scope; flag requests referencing records the user has never accessed through the standard UI.
- Enable application-level auditing on the Template entity and PDF export workflow to attribute image fetches to specific authenticated sessions.
Monitoring Recommendations
- Instrument the PDF rendering pipeline with structured logging that captures the authenticated user, requested image ID, and resolved record owner.
- Forward EspoCRM application and web server logs to a centralized analytics platform for correlation across users and endpoints.
- Baseline normal PDF export volume per role and alert on deviations consistent with authorization probing.
How to Mitigate CVE-2026-113643
Immediate Actions Required
- Upgrade EspoCRM to a release that includes commit 91a9edbcedb9c7aa8e3d3ac81d8a7acccb99bca2 or later.
- Audit user accounts and remove unused or over-privileged accounts that could be leveraged to exploit the authorization bypass.
- Review historical PDF export logs for signs of past exploitation against sensitive records.
Patch Information
The vendor has published a fix in commit 91a9edbcedb9c7aa8e3d3ac81d8a7acccb99bca2 in the EspoCRM GitHub repository. Additional details are available in GHSA-r277-qh74-r86f and GHSA-w46f-mj7x-v5c6. Vulnerability tracking is also published at VulDB CVE-2026-113643.
Workarounds
- Restrict access to the PDF generation functionality to trusted roles until the patch is applied.
- Place EspoCRM behind a web application firewall (WAF) rule set that detects enumeration patterns on the PDF export endpoint.
- Temporarily disable PDF templates that reference image resources tied to sensitive records.
# Example: pull the fixed commit from the upstream repository
git clone https://github.com/espocrm/espocrm.git
cd espocrm
git checkout 91a9edbcedb9c7aa8e3d3ac81d8a7acccb99bca2
# Follow the official EspoCRM upgrade procedure to deploy the patched code.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

