Hi everyone,
If your security team or vulnerability scanner has flagged a PHP CVE against Mattermost, here’s the short version: PHP CVEs don’t apply to Mattermost Server, and no admin action is needed.
Why
Mattermost is built on Go and TypeScript. Standard deployments, official Docker images, and official plugins don’t include a PHP interpreter or PHP libraries, so there’s nothing for a PHP vulnerability to affect. This applies to Server v9.0 and later. The Docker images use an Ubuntu base through v10.9 and a distroless Debian 12 base from v10.10.
If a scanner still flags PHP
- Check the flagged path. Look at the file path, package name, and image digest in the scanner report. The web app includes a JavaScript syntax-highlighting module that colors PHP code in messages. It doesn’t execute PHP, but scanners that match on component names can still flag it.
- Check the host and proxy. If the path is outside the Mattermost install directory or the official image, the PHP component belongs to something else. That could be the host OS, a custom base image, or another app behind the same reverse proxy. Fix it there, not by upgrading Mattermost. Custom images built on general-purpose bases, and shared VMs that run PHP apps, can carry PHP packages that the official image doesn’t.
- Stay on current patch releases. Mattermost’s own security fixes ship in patch releases, so upgrade to the latest patch for your version line regardless of any PHP CVE.
More info