# CVE-2021-42840: SuiteCRM before 7.11.19 allows remote code execution via the system settings Log File Name setting.

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 58.6%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2021-10-22T18:20:23.000Z
- Modified: 2026-06-17T04:10:11.560Z
- Also known as: BIT-SUITECRM-2021-42840
- Weaknesses: CWE-434
- Assigned by: mitre

## Description

SuiteCRM before 7.11.19 allows remote code execution via the system settings Log File Name setting. In certain circumstances involving admin account takeover, logger_file_name 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- salesagility suitecrm: before 7.11.19
- suitecrm (Bitnami): before 7.11.19

## Every score

- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.0 High `AV:N/AC:L/Au:S/C:C/I:C/A:C`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/rapid7/metasploit-framework/commits/master/modules/exploits/linux/http/suitecrm_log_file_rce.rb> (exploit, third-party-advisory, web)
- <https://theyhack.me/SuiteCRM-RCE-2/> (exploit, third-party-advisory, web)
- <http://packetstormsecurity.com/files/165001/SuiteCRM-7.11.18-Remote-Code-Execution.html> (exploit, third-party-advisory, vdb-entry, web)
- <https://docs.suitecrm.com/admin/releases/7.11.x/#_7_11_19> (release-notes, vendor-advisory, web)
- <https://suitecrm.com/time-to-upgrade-suitecrm-7-11-19-7-10-30-lts-released/> (release-notes, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42840> (web)

## Sources

- CVE List: [CVE-2021-42840](https://www.cve.org/CVERecord?id=CVE-2021-42840), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-42840](https://nvd.nist.gov/vuln/detail/CVE-2021-42840), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-SUITECRM-2021-42840](https://osv.dev/vulnerability/BIT-SUITECRM-2021-42840), Apache-2.0, modified 2025-04-03

---

Page: https://cve.day/CVE-2021-42840 · Whole record: https://cve.day/CVE-2021-42840.json · Rebuilt by cve.day 2026-11-25T22:58:04.739Z
