critical CVSS 9

CVE-2024-38529·PHP vulnerability

Admidio is a free, open source user management system for websites of organizations and groups. In Admidio before version 4.3.10, there is a Remote Code Execution Vulnerability in the Message module of the Admidio Application, where it is possible to upload a PHP file in the attachment. The uploaded file can be accessed publicly through the URL `{admidio_base_url}/adm_my_files/messages_attachments/{file_name}`. The vulnerability is caused due to the lack of file extension verification, allowing malicious files to be uploaded to the server and public availability of the uploaded file. This vulnerability is fixed in 4.3.10.

Severity
critical
Software
PHP
Fixed in
4.3.10
Published
2024-07-29

Affected versions

Until: 4.3.10

Fixed in: 4.3.10

How to fix this CVE

Upgrade Admidio to version 4.3.10 or later to patch the file upload validation flaw in the Message module. This update implements proper file extension filtering to prevent PHP and other executable files from being uploaded as message attachments. If you cannot upgrade immediately, restrict web server access to the adm_my_files/messages_attachments directory through your web server configuration or WAF rules.

sudo dnf update php php-common php-cli php-fpm -y

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST /admidio/index.php?page=messages.*upload|GET /adm_my_files/messages_attachments/[a-zA-Z0-9_-]+\.(php|phtml|php[345]|pht)

WAF mitigation (if patching is not yet possible)

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

Block POST requests to message upload endpoints with Content-Type application/x-php or file parameters containing .php extensions. Deny all GET requests to /adm_my_files/messages_attachments/ that end with executable file extensions (.php, .phtml, .php3, .php4, .php5, .pht, .phps). Implement whitelist-based file type validation requiring only approved document extensions (pdf, doc, docx, jpg, png, txt).

How to check if you are affected

  1. Check the installed Admidio version: grep -r "ADMIDIO_VERSION" /path/to/admidio/config/ 2>/dev/null | head -1
  2. List all files in the messages_attachments directory: find /path/to/admidio/adm_my_files/messages_attachments -type f -name '*.php' -o -name '*.phtml' -o -name '*.php3' -o -name '*.php4' -o -name '*.php5'
  3. Search web server access logs for requests to adm_my_files/messages_attachments followed by PHP execution attempts: grep -E 'messages_attachments.*\.(php|phtml|php[345])' /var/log/apache2/access.log /var/log/nginx/access.log 2>/dev/null
  4. Verify the fix by checking if file upload validation is enforced: grep -r 'ALLOWED.*EXTENSION\|file.*type.*check' /path/to/admidio/ 2>/dev/null | grep -i message

Indicators of compromise

  • POST requests to Admidio message upload functionality with PHP file payloads
  • GET requests accessing PHP files in /adm_my_files/messages_attachments/ directory
  • User-Agent patterns associated with automated exploitation frameworks attempting file uploads

FAQ

What is CVE-2024-38529?

CVE-2024-38529 is a critical remote code execution vulnerability in Admidio's Message module that allows authenticated users to upload executable PHP files as message attachments. These files become publicly accessible and can be executed by the web server, enabling attackers to gain full control of the application.

Is CVE-2024-38529 being actively exploited?

This vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits have been disclosed, but the critical severity and ease of exploitation make it a high-priority patch target.

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

This vulnerability affects Admidio versions prior to 4.3.10. All PHP versions running affected Admidio instances are at risk, regardless of PHP version.

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

Run: grep -r 'ADMIDIO_VERSION' /path/to/admidio/config/ and verify the version is 4.3.10 or later. Additionally, check for suspicious PHP files in the adm_my_files/messages_attachments directory using: find /path/to/admidio/adm_my_files/messages_attachments -name '*.php*'

Does Defensia detect CVE-2024-38529?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Admidio is running on a monitored server, CVE-2024-38529 will appear in your dashboard with remediation steps and version verification details.

Related PHP CVEs

CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical 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 "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.
CVE-2024-5932CVSS 10The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.
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-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.
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.

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-38529. Free for 1 server.

Get started free