medium CVSS 4.9 EPSS 0.33%

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 -y

Defensia 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

  1. 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
  2. Verify cms.safe_mode status: Search your config files for `cms.safe_mode` setting using `grep -r 'safe_mode' config/ | grep -i cms`
  3. Search application logs for suspicious INI parsing activity: `grep -i 'parse_ini\|\${.*}' storage/logs/*.log` to detect potential variable interpolation attempts
  4. 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

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-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-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-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.

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