Unauthenticated PHP code execution via unchecked sessions
Published Jan 11, 2023 · Updated Oct 21, 2025
Code injection in SugarCRM before 12.0 Hotfix 91155 allows remote attackers to execute PHP code through crafted EmailTemplates requests. The loadUser() method in include/MVC/SugarApplication.php fails to reject sessions with login errors, letting EmailTemplates AttachFiles place executable PHP in /cache/images/. No account is required, SugarIdentity-enabled instances are not exploitable, and execution requires the web server to permit the uploaded extension.
Summary
What happened
Code injection in SugarCRM before 12.0 Hotfix 91155 allows remote attackers to execute PHP code through crafted EmailTemplates requests. The loadUser() method in include/MVC/SugarApplication.php fails to reject sessions with login errors, letting EmailTemplates AttachFiles place executable PHP in /cache/images/. No account is required, SugarIdentity-enabled instances are not exploitable, and execution requires the web server to permit the uploaded extension.
The record
- CVE
- CVE-2023-22952
- Published
- Jan 11, 2023
- Updated
- Oct 21, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-20, CWE-94, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 11, 2023CVE publishedPublication date reported by the CVE source.
- Feb 2, 2023Exploitation reportedCISA Known Exploited Vulnerabilities Catalog entry
- Oct 21, 2025Record 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?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
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 12.x Remote Code Execution / Shell Uploadfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities Catalog entryknown exploited catalog
- Compromised SugarCRM hosts with PHP web shellshoneypot
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