CVE-2026-25125·PHP vulnerability
October is a Content Management System (CMS) and web platform. Versions prior to 3.7.14 and 4.1.10 contain a server-side information disclosure vulnerability in the INI settings parser. Because PHP's parse_ini_string() function supports ${} syntax for environment variable interpolation, attackers with Editor access could inject patterns such as ${APP_KEY} or ${DB_PASSWORD} into CMS page settings fields, causing sensitive environment variables to be resolved, stored in the template, and returned to the attacker when the page was reopened. This could enable exfiltration of credentials and secrets (database passwords, AWS keys, application keys), potentially leading to further attacks such as database access or cookie forgery. The vulnerability is only relevant when cms.safe_mode is enabled, as direct PHP injection is already possible otherwise. This issue has been fixed in versions 3.7.14 and 4.1.10. If users are unable to immediately upgrade, they can workaround this issue by restricting Editor tool access to fully trusted administrators only, and ensuring database and cloud service credentials are not accessible from the web server's network.
- Severity
- medium
- Software
- PHP
- Fixed in
- 4.1.10
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.33% — higher than 24% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 4.0.0
Until: 4.1.10
Fixed in: 4.1.10
How to fix this CVE
Upgrade October CMS to version 4.1.10 or later to patch the environment variable interpolation vulnerability in the INI settings parser. If immediate upgrade is not feasible, restrict Editor tool access to trusted administrators only and ensure sensitive credentials (database passwords, AWS keys, application secrets) are not accessible from the web server environment. Verify that cms.safe_mode is enabled in your October CMS configuration, as this is the prerequisite for the vulnerability to be exploitable.
sudo dnf update php php-common php-cli php-fpm -yDefensia detects this vulnerability
WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement WAF rules to block HTTP POST/PUT requests to CMS settings endpoints that contain ${...} patterns in request bodies, particularly targeting form fields for page settings, template configuration, or INI-related configuration pages.How to check if you are affected
- Check your October CMS version: Log in to the admin panel and navigate to Settings > System > About, or run `grep -i version config/app.php | head -1` in the October CMS root directory
- Verify cms.safe_mode status: Search your config files for `cms.safe_mode` setting using `grep -r 'safe_mode' config/ | grep -i cms`
- Search application logs for suspicious INI parsing activity: `grep -i 'parse_ini\|\${.*}' storage/logs/*.log` to detect potential variable interpolation attempts
- Verify the patched version is installed: After upgrading, confirm the version is 4.1.10 or later by checking the same version file and restarting PHP-FPM with `sudo systemctl restart php-fpm`
FAQ
What is CVE-2026-25125?
This is an environment variable disclosure flaw in October CMS where the INI settings parser incorrectly resolves ${} syntax patterns (like ${APP_KEY} or ${DB_PASSWORD}), allowing editors to extract sensitive configuration values that would normally be protected from user access.
Is CVE-2026-25125 being actively exploited?
No, according to CISA KEV data, this vulnerability is not currently being actively exploited in the wild, and no public exploits are available. However, organizations should still prioritize patching due to the severity of credential exposure.
What versions of October CMS are affected by CVE-2026-25125?
October CMS versions 4.0.0 through 4.1.9 are vulnerable. Version 4.1.10 and later, as well as 3.7.14 and later in the 3.x branch, contain the fix.
How do I check if my server is vulnerable to CVE-2026-25125?
Run `grep -i version config/app.php` in your October CMS directory and verify the version is 4.1.10 or higher; also confirm that cms.safe_mode is enabled with `grep 'cms.safe_mode' config/cms.php`.
Does Defensia detect CVE-2026-25125?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If October CMS or PHP is installed on a monitored server, CVE-2026-25125 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-25125. Free for 1 server.
Get started free