CVE-2021-32649: October/system Remote Code Execution Vulnerability
HIGHCVE-2021-32649 is a HIGH (CVSS 8.8) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting October/system libraries in the Packagist ecosystem. The issue involves october/system authenticated file write leads to remote code execution. Remediation is available by upgrading affected packages to version 1.1.6, 1.0.473.
CVE-2021-32649 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-32649
To remediate this vulnerability, upgrade all affected October/system 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/system to 1.1.6
Upgrade october/system to 1.0.473
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for october/system
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-32649, inspect your project dependencies for October/system:
inspect dependencies for october/system
Analyze the terminal output to locate any version of October/system in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.6), 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/system, 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-2021-32649 Affected October/system Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
october/system
|
Packagist |
≥ 1.1.0
< 1.1.6
|
1.1.6
|
|
october/system
|
Packagist |
< 1.0.473
|
1.0.473
|
References
Frequently Asked Questions
What is CVE-2021-32649?
Which October/system versions are affected?
What version fixes CVE-2021-32649?
Is october/system affected?
What is the CVSS score of CVE-2021-32649?
What CWE is associated with CVE-2021-32649?
How can I check Packagist dependencies for CVE-2021-32649?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wv23-pfj7-2mjj",
"modified" : "2022-08-11T16:54:35Z",
"published" : "2022-01-14T21:08:23Z",
"aliases" : [ "CVE-2021-32649" ],
"summary" : "October/System authenticated file write leads to remote code execution",
"details" : "### Impact\n\nAssuming an attacker with \"create, modify and delete website pages\" privileges in the backend is able to execute PHP code by running specially crafted Twig code in the template markup.\n\n### Patches\n\nIssue has been patched in Build 473 and v1.1.6\n\n### Workarounds\n\nApply https://github.com/octobercms/october/commit/167b592eed291ae1563c8fcc5b9b34a03a300f26 to your installation manually if you are unable to upgrade.\n\n### References\n\nCredits to:\n• David Miller\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [hello@octobercms.com](mailto:hello@octobercms.com)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "october/system"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0"
}, {
"fixed" : "1.1.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "october/system"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.473"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/octobercms/october/security/advisories/GHSA-wv23-pfj7-2mjj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32649"
}, {
"type" : "WEB",
"url" : "https://github.com/octobercms/october/commit/167b592eed291ae1563c8fcc5b9b34a03a300f26"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/octobercms/october"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74", "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-01-14T20:49:20Z",
"nvd_published_at" : "2022-01-14T15:15:00Z"
}
}