SugarCRM (WorkFlow module) PHP Code Injection Vulnerability

• Affected Versions:

All versions prior to and

• Vulnerability Description:

User input passed through the $_POST[‘base_module’] parameter to the “Save” action of the WorkFlow module is not properly sanitized before being used to write data into the workflow.php file. This can be exploited to inject and execute arbitrary PHP code. Successful exploitation of this vulnerability requires admin privileges.

• Solution:

Update to versions,, or later.

• Disclosure Timeline:

[09/10/2017] – Vendor notified

[28/03/2018] – Fixed versions released and security advisory published

[31/12/2018] – Publication of this advisory

• CVE Reference:

The Common Vulnerabilities and Exposures project ( has not assigned a CVE identifier for this vulnerability.

• Credits:

Vulnerability discovered by Egidio Romano.

• Other References: