EspoCRM Server-Side Request Forgery Vulnerability in Attachment API

Vulnerability

A server-side request forgery (SSRF) vulnerability has been identified in EspoCRM versions 9.3.3 and prior. This vulnerability allows authenticated users to bypass internal host validation by using alternative IPv4 representations, such as octal notation. The issue arises because the validation function relies on PHP's filter_var to validate IP addresses, which does not recognize these alternative formats. As a result, the validation incorrectly allows requests to loopback-only services, potentially accessing internal resources from the application runtime. The vulnerability has been confirmed in the '/api/v1/Attachment/fromImageUrl' endpoint, where the fetched response can be stored as an attachment.

Impact

Exploitation of this vulnerability allows authenticated users to bypass internal host restrictions, enabling the application to make requests to loopback-only services. The fetched responses can be stored as attachments, potentially facilitating access to local-only services and other internal resources reachable from the application runtime.

Reproduction

To reproduce this vulnerability, an authenticated user can send a POST request to the '/api/v1/Attachment/fromImageUrl' endpoint. The request must include a URL pointing to a loopback-only service, using an alternative IPv4 representation in octal notation. Once the request is processed, the application will create an attachment from the fetched response, confirming that the SSRF vulnerability has been successfully exploited.

Remediation

Users can upgrade to EspoCRM version 9.3.4, which addresses this vulnerability.

Added: Apr 13, 2026, 8:22 PM
Updated: Apr 13, 2026, 8:22 PM

Vulnerability Rating

Custom Algorithm
spread
3.1
impact
1.3
exploitability
6.0
remediation
7.7
relevance
5.8
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.