This advisory affects plugins that expose the October\Rain\Database\Attach\File::fromData
as a public interface. This vulnerability does not affect vanilla installations of October CMS since this method is not exposed or used by the system internally or externally.
When the developer allows the user to specify their own filename in the fromData
method, an unauthenticated user can perform remote code execution (RCE) by exploiting a race condition in the temporary storage directory.
The issue has been patched in Build 476 (v1.0.476) and v1.1.12 and v2.2.15.
Apply https://github.com/octobercms/library/commit/fe569f3babf3f593be2b1e0a4ae0283506127a83 to your installation manually if unable to upgrade to Build 476 (v1.0.476) or v1.1.12 or v2.2.15.
Credits to: - DucNT, HungTD and GiangVQ from RedTeam@VNG Security Response Center.
If you have any questions or comments about this advisory: - Email us at hello@octobercms.com
{ "nvd_published_at": "2022-07-12T20:15:00Z", "github_reviewed_at": "2022-07-13T21:42:45Z", "severity": "HIGH", "github_reviewed": true, "cwe_ids": [ "CWE-362" ] }