Unauthenticated code execution via serialized REST data
Published Jun 20, 2025 · Updated May 14, 2026
PHP object injection in SugarCRM releases before 6.5.24, 6.7.13, 7.5.2.5, 7.6.2.2, and 7.7.1.0 allows remote attackers to execute code. SugarRestSerialize.php passes the unsanitized rest_data parameter to PHP unserialize(), permitting crafted object declarations to enter application scope. No authentication or user interaction is required, and a malicious SugarCacheFile object can write executable PHP under the web-accessible custom directory.
Summary
What happened
PHP object injection in SugarCRM releases before 6.5.24, 6.7.13, 7.5.2.5, 7.6.2.2, and 7.7.1.0 allows remote attackers to execute code. SugarRestSerialize.php passes the unsanitized rest_data parameter to PHP unserialize(), permitting crafted object declarations to enter application scope. No authentication or user interaction is required, and a malicious SugarCacheFile object can write executable PHP under the web-accessible custom directory.
The record
- CVE
- CVE-2025-25034
- Published
- Jun 20, 2025
- Updated
- May 14, 2026
- Vendor
- SugarCRM
- Product
- SugarCRM
- Classifications
- CWE-502, CAPEC-586, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 13, 2024Exploitation reportedShadowserver exploitation telemetry
- Jun 20, 2025CVE publishedPublication date reported by the CVE source.
- May 14, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=6.5.0 <6.5.23
- Affected versionversion=6.7.0 <6.7.12
- Affected versionversion=7.5.0 <7.5.2.4
- Affected versionversion=7.6.0 <7.6.2.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- SugarCRM REST Unserialize PHP Code Execution Metasploit modulefunctional · demonstrated
- SugarCRM 6.5.23 PHP object injection exploitproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- VulnCheck KEV listingknown exploited catalog
- Shadowserver exploitation telemetryreported exploitation
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo