high CVSS 7.2

CVE-2024-49774·PHP vulnerability

SuiteCRM is an open-source, enterprise-ready Customer Relationship Management (CRM) software application. SuiteCRM relies on the blacklist of functions/methods to prevent installation of malicious MLPs. But this checks can be bypassed with some syntax constructions. SuiteCRM uses token_get_all to parse PHP scripts and check the resulted AST against blacklists. But it doesn't take into account all scenarios. This issue has been addressed in versions 7.14.6 and 8.7.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Severity
high
Software
PHP
Fixed in
8.7.1
Published
2024-11-05

Affected versions

From: 8.0.0

Until: 8.7.1

Fixed in: 8.7.1

How to fix this CVE

SuiteCRM versions 8.0.0 through 8.7.0 contain a bypass vulnerability in the PHP function blacklist mechanism used to prevent malicious module installation. Attackers can use alternative PHP syntax constructions to circumvent the AST parsing checks and execute prohibited functions. Upgrade to SuiteCRM 8.7.1 or later immediately, and review any recently installed modules for suspicious activity.

sudo dnf check-update php && sudo dnf upgrade php

Defensia detects this vulnerability

How to check if you are affected

  1. Check SuiteCRM version: Log into the SuiteCRM admin panel and navigate to Admin > System Settings > System Information to view the current version number.
  2. Verify affected version: Confirm if your installation is between 8.0.0 and 8.7.0 inclusive; versions 7.x and 8.7.1+ are not vulnerable.
  3. Review module installation logs: Examine the SuiteCRM log directory (typically /var/www/suitecrm/logs/) for module_loader.log and look for failed or unusual module installations with obfuscated syntax patterns.
  4. Validate patch application: After upgrading, re-check Admin > System Information to confirm version is 8.7.1 or higher and verify no pending module installations remain in the queue.

FAQ

What is CVE-2024-49774?

CVE-2024-49774 is a security bypass vulnerability in SuiteCRM that allows attackers to circumvent the PHP function blacklist by using alternative syntax constructions when installing modules. The token_get_all parser fails to catch all obfuscated code patterns, enabling installation of malicious plugins that execute forbidden functions.

Is CVE-2024-49774 being actively exploited?

No, CVE-2024-49774 is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public exploit code has been released. However, the vulnerability requires only admin-level privileges and poses a significant insider threat risk.

What versions of PHP are affected by CVE-2024-49774?

CVE-2024-49774 affects SuiteCRM versions 8.0.0 through 8.7.0. Version 7.14.6 and earlier (7.x branch) are patched, as is the fixed 8.7.1 release and all subsequent versions.

How do I check if my server is vulnerable to CVE-2024-49774?

Run `curl -s http://your-suitecrm-domain/index.php | grep -i 'SuiteCRM' | head -5` to find version hints in the page source, or access the admin panel directly. Alternatively, check the file `/index.php` for the version constant: `grep -r 'SUITECRM_VERSION' /var/www/suitecrm/`.

Does Defensia detect CVE-2024-49774?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP and SuiteCRM are installed on a monitored server within the vulnerable version range, CVE-2024-49774 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-49774. Free for 1 server.

Get started free