CVE-2021-42840: Malicious File Upload

Published Oct 22, 2021
·
Updated

SuiteCRM before 7.11.19 allows remote code execution via the system settings Log File Name setting. In certain circumstances involving admin account takeover, loggerfilename can refer to an attacker-controlled PHP file under the web root, because only the all-lowercase PHP file extensions were blocked. NOTE: this issue exists because of an incomplete fix for CVE-2020-28328.

Affected Software

1 affected component
SalesAgility SuiteCRM<7.11.19

Event History

Oct 22, 2021
CVE Published
via MITRE·06:20 PM
Data Sourced
via MITRE·06:20 PM
Description
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2021-42840?

CVE-2021-42840 is a vulnerability in SuiteCRM before version 7.11.19 that allows remote code execution through a system settings Log File Name setting.

2

How severe is CVE-2021-42840?

CVE-2021-42840 has a severity rating of 8.8 (Critical).

3

Which software versions are affected by CVE-2021-42840?

SuiteCRM versions up to and exclusive of 7.11.19 are affected by CVE-2021-42840.

4

How can an attacker exploit CVE-2021-42840?

An attacker can exploit CVE-2021-42840 by taking over an admin account and then using the logger_file_name setting to reference an attacker-controlled PHP file under the web root.

5

Are there any references available for CVE-2021-42840?

Yes, you can find references for CVE-2021-42840 at the following links: [Packet Storm](http://packetstormsecurity.com/files/165001/SuiteCRM-7.11.18-Remote-Code-Execution.html), [SuiteCRM Documentation](https://docs.suitecrm.com/admin/releases/7.11.x/#_7_11_19), [Metasploit Framework](https://github.com/rapid7/metasploit-framework/commits/master/modules/exploits/linux/http/suitecrm_log_file_rce.rb).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203