high CVSS 8.8

CVE-2025-54366·PHP vulnerability

FreeScout is a lightweight free open source help desk and shared inbox built with PHP (Laravel framework). In versions 1.8.185 and below, there is a critical deserialization vulnerability in the /conversation/ajax endpoint that allows authenticated users with knowledge of the APP_KEY to achieve remote code execution. The vulnerability occurs when the application processes the attachments_all and attachments POST parameters through the insecure Helper::decrypt() function, which performs unsafe deserialization of user-controlled data without proper validation. This flaw enables attackers to create arbitrary objects and manipulate their properties, leading to complete compromise of the web application. This is fixed in version 1.8.186.

Severity
high
Software
PHP
Fixed in
1.8.86
Published
2025-07-26

Affected versions

Until: 1.8.86

Fixed in: 1.8.86

How to fix this CVE

FreeScout users must upgrade to version 1.8.186 or later immediately to patch a critical PHP deserialization vulnerability in the conversation AJAX endpoint. Authenticated attackers with knowledge of your APP_KEY can exploit unsafe parameter handling to execute arbitrary code on your server. Apply the update through your FreeScout admin panel or by pulling the latest release from the official repository.

sudo dnf update php

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST /conversation/ajax HTTP/1.1.*attachments_all=.*[A-Za-z0-9+/]{20,}.*|POST /conversation/ajax HTTP/1.1.*attachments=.*O:[0-9]+:"[a-zA-Z_][a-zA-Z0-9_]*"

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Block or rate-limit POST requests to /conversation/ajax that contain base64-encoded payloads or PHP serialized objects in the attachments_all or attachments parameters. Additionally, restrict access to this endpoint to authenticated sessions only and require valid CSRF tokens.

How to check if you are affected

  1. Check your FreeScout version by navigating to Settings > About in the admin panel or running: grep -i 'version' /path/to/freescout/config/app.php
  2. Verify the vulnerable endpoint is accessible by testing: curl -i https://your-freescout-domain/conversation/ajax (should require authentication)
  3. Search web server logs for POST requests to /conversation/ajax with base64-encoded or serialized attachments_all or attachments parameters: grep -E 'POST.*conversation/ajax.*attachments' /var/log/apache2/access.log /var/log/nginx/access.log
  4. Confirm the patch by checking the FreeScout version displays 1.8.186 or higher in the admin panel, or run: grep -i 'version' /path/to/freescout/composer.json

FAQ

What is CVE-2025-54366?

This is a PHP object injection vulnerability in FreeScout's conversation endpoint that processes unserialized user input without validation. Authenticated attackers can instantiate arbitrary PHP objects and modify their properties to achieve remote code execution.

Is CVE-2025-54366 being actively exploited?

No, this CVE is not currently listed on the CISA Known Exploited Vulnerabilities catalog, and no public exploit code is available. However, the vulnerability is trivial to exploit for anyone with authentication credentials and the APP_KEY, so immediate patching is still critical.

What versions of FreeScout are affected by CVE-2025-54366?

All versions up to and including 1.8.185 are vulnerable. The issue is resolved in version 1.8.186 and all subsequent releases.

How do I check if my FreeScout installation is vulnerable to CVE-2025-54366?

Log into the FreeScout admin panel and navigate to Settings > About to verify your installed version. If it shows 1.8.185 or below, your system is vulnerable.

Does Defensia detect CVE-2025-54366?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If FreeScout or PHP is installed on a monitored server, CVE-2025-54366 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-2025-54366. Free for 1 server.

Get started free