8.7high
Malcolm vulnerable to RCE via unrestricted .php upload to the file-upload component
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.36% (higher than 32% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Malcolm is a network traffic analysis tool suite. The file-upload component (FilePond PHP backend) accepts uploads at `POST /server/php/submit.php` and stores them in a directory served by the same nginx and php-fpm instance. The allow-list that should restrict accepted file types is an empty array by default (`file-upload/php/config.php:16`), so the type check is a no-op and every extension is accepted. The filename sanitizer keeps the `.php` extension intact. Committed files land in `/var/www/upload/server/php/files` (`file-upload/php/config.php:7`), and the component's nginx routes any URL ending in `.php` to php-fpm. An authenticated `GET /server/php/files/<name>.php` then executes the uploaded code as `www-data`. Prior to version 26.06.1, in RBAC mode, the upload endpoint is reachable by the granular `ROLE_UPLOAD` role (`nginx/lua/nginx_auth_helpers.lua:71`), a role intended only for submitting capture files. As a result, a user holding the upload-only role runs arbitrary PHP as `www-data` inside the file-upload container. Version 26.06.1 fixes the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cisagov Malcolm | < 26.06.1 Not affected: 26.06.1 | CVE List |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub_M | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Malcolm is a network traffic analysis tool suite. The file-upload component (FilePond PHP backend) accepts uploads at `POST /server/php/submit.php` and stores them in a directory served by the same nginx and php-fpm instance. The allow-list that should restrict accepted file types is an empty array by default (`file-upload/php/config.php:16`), so the type check is a no-op and every extension is accepted. The filename sanitizer keeps the `.php` extension intact. Committed files land in `/var/www/upload/server/php/files` (`file-upload/php/config.php:7`), and the component's nginx routes any URL ending in `.php` to php-fpm. An authenticated `GET /server/php/files/<name>.php` then executes the uploaded code as `www-data`. Prior to version 26.06.1, in RBAC mode, the upload endpoint is reachable by the granular `ROLE_UPLOAD` role (`nginx/lua/nginx_auth_helpers.lua:71`), a role intended only for submitting capture files. As a result, a user holding the upload-only role runs arbitrary PHP as `www-data` inside the file-upload container. Version 26.06.1 fixes the issue.
NVD (es)
Malcolm es un conjunto de herramientas de análisis de tráfico de red. El componente de carga de archivos (backend PHP de FilePond) acepta cargas en POST /server/php/submit.php y las almacena en un directorio servido por la misma instancia de nginx y php-fpm. La lista de permitidos que debería restringir los tipos de archivo aceptados es un array vacío por defecto (file-upload/php/config.php:16), por lo que la verificación de tipo es una operación nula y cada extensión es aceptada. El saneador de nombres de archivo mantiene la extensión .php intacta. Los archivos confirmados aterrizan en /var/www/upload/server/php/files (file-upload/php/config.php:7), y el nginx del componente enruta cualquier URL que termine en .php a php-fpm. Un GET /server/php/files/[name].php autenticado luego ejecuta el código cargado como www-data. Antes de la versión 26.06.1, en modo RBAC, el endpoint de carga es accesible por el rol granular ROLE_UPLOAD (nginx/lua/nginx_auth_helpers.lua:71), un rol destinado solo para enviar archivos de captura. Como resultado, un usuario con el rol de solo carga ejecuta PHP arbitrario como www-data dentro del contenedor de carga de archivos. La versión 26.06.1 corrige el problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-55676 changed 2026-10-02 | CVE Terms of Use |
| NVD | CVE-2026-55676 changed 2026-10-24 | Public domain |