Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-42840

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-42840
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:46 UTC · Revision 1

Source evidence

CVE-2021-42840

core-osv · Original source

Published 22 Oct 2021, 19:15 UTC

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.

osv:CVE-2021-42840
Complete source record
{
  "id": "072e3b84f06ae27328cd763418135891fa88962ccfcdb568cc4c78a5999ff7a6",
  "url": "https://osv.dev/vulnerability/CVE-2021-42840",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-42840",
    "summary": "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.",
    "evidence": "osv:CVE-2021-42840",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-42840",
      "aliases": [
        "BIT-suitecrm-2021-42840",
        "CVE-2021-42840"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/SuiteCRM/SuiteCRM",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9cb957e4f41562eb44f6ce8c982e2a3c169fc951"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:salesagility:suitecrm:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "7.11.19"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v7.11.18",
            "v7.11.17",
            "v7.11.16",
            "v7.11.15",
            "v7.11.14",
            "v7.11.13",
            "v7.11.12",
            "v7.11.11",
            "v7.11.8",
            "v7.11.7",
            "v7.11.6",
            "v7.11.5",
            "v7.11.4",
            "v7.11.3",
            "v7.11.2",
            "v7.10.12",
            "v7.11.1",
            "v7.11.0",
            "v7.10.11",
            "v7.10.10",
            "v7.10.5",
            "v7.10.7",
            "v7.10.4",
            "v7.10.6",
            "v7.10.1",
            "v7.10.3",
            "v7.10.2",
            "v7.10.0",
            "v7.9.14",
            "v7.9.13",
            "v7.9.12",
            "v7.9.11",
            "v.7.9.11",
            "v7.9.10",
            "v7.9.8",
            "v7.9.4",
            "7.9.6",
            "v7.9.5",
            "v7.9.3",
            "v7.9.1",
            "v7.9.0",
            "v7.9.0-rc",
            "v7.9.0-beta",
            "v7.8.2",
            "v7.8.1",
            "v7.8.0",
            "v7.8.0-rc",
            "v7.8.0-beta.2",
            "v7.8.0-beta",
            "v7.7.4",
            "v7.7.3",
            "v7.7.2",
            "v7.7",
            "v7.7-rc2",
            "v7.7-rc",
            "v7.7-beta2",
            "v7.7-beta1",
            "v7.6.1",
            "v7.6",
            "v7.5.1",
            "v7.5-beta.2",
            "v7.4.3",
            "v7.5-beta",
            "v7.4.1",
            "v7.4.2",
            "v7.3.2",
            "v7.3.1",
            "v7.3",
            "v7.3-beta",
            "v7.2",
            "v7.2.1",
            "v7.1.3",
            "v7.2beta2",
            "v7.1.4",
            "v7.2beta",
            "v7.1.2",
            "v7.1.1",
            "v7.1",
            "v7.0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-42840.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:21.569824817Z",
      "provider": "osv",
      "references": [
        "https://docs.suitecrm.com/admin/releases/7.11.x/#_7_11_19",
        "https://github.com/rapid7/metasploit-framework/commits/master/modules/exploits/linux/http/suitecrm_log_file_rce.rb",
        "https://suitecrm.com/time-to-upgrade-suitecrm-7-11-19-7-10-30-lts-released/",
        "https://theyhack.me/SuiteCRM-RCE-2/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:salesagility:suitecrm:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "salesagility:suitecrm",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "7.11.19"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-42840",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 430516,
  "published_at": "2021-10-22T19:15:08.173+00:00"
}