Arbitrary Code Injection Affecting october/october package, versions <3.7.14>=4.0.0, <4.1.10


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-OCTOBEROCTOBER-16066791
  • published15 Apr 2026
  • disclosed14 Apr 2026
  • creditUnknown

Introduced: 14 Apr 2026

CVE-2026-25125  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade october/october to version 3.7.14, 4.1.10 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection in the INI settings parser when environment variable interpolation is processed via the parse_ini_string function. An attacker with Editor permissions can retrieve sensitive environment variables by injecting patterns such as ${APP_KEY} or ${DB_PASSWORD} into CMS page settings fields, which are then resolved and stored in the template. These values are subsequently exposed to the attacker upon reopening the page. This is only exploitable if cms.safe_mode is enabled and the attacker has authenticated backend Editor access.

Workaround

This vulnerability can be mitigated 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.

References

CVSS Base Scores

version 4.0
version 3.1