CVE-2026-25125: October/rain October Rain Has Environment Variable Vulnerability
MODERATECVE-2026-25125 is a MODERATE (CVSS 4.9) october rain has environment variable vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting October/rain libraries in the Packagist ecosystem. The issue involves october rain has environment variable exfiltration via ini parser interpolation. Remediation is available by upgrading affected packages to version 4.1.10, 3.7.14.
CVE-2026-25125 at a Glance
Security Impact
CVSS: 4.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-25125
To remediate this vulnerability, upgrade all affected October/rain dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade october/rain to 4.1.10
Upgrade october/rain to 3.7.14
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for october/rain
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-25125, inspect your project dependencies for October/rain:
inspect dependencies for october/rain
Analyze the terminal output to locate any version of October/rain in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.10), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In October/rain, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-25125 Affected October/rain Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
october/rain
|
Packagist |
≥ 4.0.0
< 4.1.10
|
4.1.10
|
|
october/rain
|
Packagist |
< 3.7.14
|
3.7.14
|
References
Frequently Asked Questions
What is CVE-2026-25125?
Which October/rain versions are affected?
What version fixes CVE-2026-25125?
Is october/rain affected?
What is the CVSS score of CVE-2026-25125?
What CWE is associated with CVE-2026-25125?
How can I check Packagist dependencies for CVE-2026-25125?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g6v3-wv4j-x9hg",
"modified" : "2026-05-08T20:41:58Z",
"published" : "2026-04-14T22:29:41Z",
"aliases" : [ "CVE-2026-25125" ],
"summary" : "October Rain has Environment Variable Exfiltration via INI Parser Interpolation",
"details" : "A server-side information disclosure vulnerability was identified in the INI settings parser. PHP's `parse_ini_string()` function supports `${}` syntax for environment variable interpolation. Attackers with Editor access could inject `${APP_KEY}`, `${DB_PASSWORD}`, or similar patterns into CMS page settings fields, causing sensitive environment variables to be resolved and stored in the template. These values were then returned to the attacker when the page was reopened.\n\n### Impact\n- Exfiltration of sensitive environment variables (APP_KEY, DB credentials, AWS keys, etc.)\n- Could enable further attacks: database access, cookie forgery, AWS resource access\n- Requires authenticated backend access with Editor permissions\n- Only relevant when `cms.safe_mode` is enabled (otherwise direct PHP injection is already possible)\n\n### Patches\nThe vulnerability has been patched in v3.7.14 and v4.1.10. All users are encouraged to upgrade to the latest patched version.\n\n### Workarounds\nIf upgrading immediately is not possible:\n- Restrict Editor tool access to fully trusted administrators only\n- Ensure database and cloud service credentials are not accessible from the web server's network\n\n### References\n- Reported by Pentest-Tools.com",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "october/rain"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.10"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.1.9"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "october/rain"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.7.14"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.7.13"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/octobercms/october/security/advisories/GHSA-g6v3-wv4j-x9hg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25125"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/octobercms/october"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-14T22:29:41Z",
"nvd_published_at" : "2026-04-14T21:16:25Z"
}
}