CVE-2026-56446·PHP vulnerability
MISP allowed a site administrator to configure an arbitrary filesystem path for the NDJSON error log used by JsonLogTool. Because log entries can include attacker-controlled content, an authenticated attacker with site administrator privileges could direct log output to a PHP file in a web-accessible directory and inject PHP code through logged data. Accessing the resulting file could lead to remote code execution with the privileges of the web server process. The fix restricts log destinations to existing directories beneath APP/tmp/logs or /var/log, requires absolute paths, rejects stream wrappers and traversal-related input, and limits filenames to .log or .ndjson extensions while disallowing executable extension segments.
- Severity
- high
- Software
- PHP
- Fixed in
- 2.5.42
- Published
- 2026-06-22
Affected versions
Until: 2.5.42
Fixed in: 2.5.42
How to fix this CVE
Update PHP to version 2.5.42 or later to remediate CVE-2026-56446, which allows authenticated administrators to write PHP code to log files in web-accessible directories. The patch restricts log destinations to safe directories, enforces absolute paths, blocks stream wrappers and directory traversal, and limits file extensions to .log and .ndjson. Restart your web server after applying the update to ensure the fix is active.
sudo dnf update phpDefensia detects this vulnerability
How to check if you are affected
- Step 1: Run `php -v` to check the installed PHP version and confirm it is below 2.5.42
- Step 2: Check if MISP is installed and running on this server with `dpkg -l | grep -i misp` or `rpm -qa | grep -i misp`
- Step 3: Review web server logs (e.g., `/var/log/apache2/access.log` or `/var/log/nginx/access.log`) and MISP application logs for suspicious log file path manipulation or references to PHP files being written to web roots
- Step 4: After updating, verify the fix with `php -v` and confirm the version matches 2.5.42 or later, then restart Apache/Nginx with `sudo systemctl restart apache2` or `sudo systemctl restart nginx`
FAQ
What is CVE-2026-56446?
CVE-2026-56446 is a privilege escalation and code execution vulnerability in MISP where site administrators can configure arbitrary filesystem paths for NDJSON error logs, then inject PHP code through logged data to achieve remote code execution when the resulting file is accessed.
Is CVE-2026-56446 being actively exploited?
No, CVE-2026-56446 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploit code is available.
What versions of PHP are affected by CVE-2026-56446?
All versions of PHP used by MISP up to and including version 2.5.41 are affected; version 2.5.42 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-56446?
Run `php -v` to check your version; if it reports 2.5.41 or earlier, your server is vulnerable. Additionally, check `/opt/misp/app/tmp/logs/` or `/var/log/` for unexpectedly placed PHP files or suspicious .ndjson log destinations.
Does Defensia detect CVE-2026-56446?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP is installed on a monitored server, CVE-2026-56446 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-56446. Free for 1 server.
Get started free