CVE-2021-42840 File upload in n/a

High 8.8 Published Updated

Attackers with admin access can achieve remote code execution by uploading a PHP file via the log file name setting due to incomplete extension filtering.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-42840?

CVE-2021-42840 is a high-severity vulnerability in Salesagility Suitecrm, published on 22 Oct 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-434

Which versions are affected by CVE-2021-42840?

1 open source package ship an affected version, including suitecrm. It affects 1 product.

PackageAffectedFixed in
suitecrm BitnamiAll versions7.11.19

Products include Salesagility Suitecrm.

How do I fix CVE-2021-42840?

Upgrade suitecrm to 7.11.19 or later.

Is CVE-2021-42840 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-42840 exists.

Public exploit code: 1 Metasploit module and 1 Exploit-DB entry.

All Salesagility Suitecrm vulnerabilities

Sources

Also known as BIT-suitecrm-2021-42840, GHSA-9rqh-fr4c-99v2.

Is CVE-2021-42840 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free