CVE-2022-24800
JSON

8.1high

Race Condition in October CMS upload process

Severity
8.1high CVSS:3.1 by GitHub_M
Exploit likelihood
1.44% (higher than 73% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-8v7h-cpc2-r8jp

Description

October/System is the system module for October CMS, a self-hosted CMS platform based on the Laravel PHP Framework. Prior to versions 1.0.476, 1.1.12, and 2.2.15, 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. This vulnerability affects plugins that expose the `October\Rain\Database\Attach\File::fromData` as a public interface and does not affect vanilla installations of October CMS since this method is not exposed or used by the system internally or externally. The issue has been patched in Build 476 (v1.0.476), v1.1.12, and v2.2.15. Those who are unable to upgrade may apply with patch to their installation manually as a workaround.

Affected

Product or packageVersionsReported by
octobercms october< 1.0.476, >= 1.1.0, < 1.1.12, >= 2.0.0, < 2.2.15, before 1.0.476, from 1.1.0 before 1.1.12, from 2.0.0 before 2.2.15CVE List, NVD
october/system (Packagist)before 1.0.476, from 1.1.0 before 1.1.12, from 2.0.0 before 2.2.15GitHub Advisory Database

All scores

GitHub_M8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

CWE-362

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

October/System is the system module for October CMS, a self-hosted CMS platform based on the Laravel PHP Framework. Prior to versions 1.0.476, 1.1.12, and 2.2.15, 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. This vulnerability affects plugins that expose the `October\Rain\Database\Attach\File::fromData` as a public interface and does not affect vanilla installations of October CMS since this method is not exposed or used by the system internally or externally. The issue has been patched in Build 476 (v1.0.476), v1.1.12, and v2.2.15. Those who are unable to upgrade may apply with patch to their installation manually as a workaround.

GitHub Advisory Database
Impact

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.

Patches

The issue has been patched in Build 476 (v1.0.476) and v1.1.12 and v2.2.15.

Workarounds

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.

References

Credits to:

  • DucNT, HungTD and GiangVQ from RedTeam@VNG Security Response Center.
For more information

If you have any questions or comments about this advisory:

NVD (es)

October/System es el módulo de sistema para October CMS, una plataforma CMS auto-alojada basada en el framework PHP Laravel. En versiones anteriores a 1.0.476, 1.1.12 y 2.2.15, cuando el desarrollador permite al usuario especificar su propio nombre de archivo en el método "fromData", un usuario no autenticado puede llevar a cabo una ejecución de código remota (RCE) al explotar una condición de carrera en el directorio de almacenamiento temporal. Esta vulnerabilidad afecta a plugins que exponen el método "October\Rain\Database\Attach\File::fromData" como una interfaz pública y no afecta a las instalaciones vainilla de October CMS, ya que este método no está expuesto ni es usado por el sistema interna o externamente. El problema ha sido parcheado en la Build 476 (v1.0.476), v1.1.12 y v2.2.15. Aquellos que no puedan actualizar pueden aplicar el parche a su instalación manualmente como mitigación

References

Sources

SourceRecordLicence
CVE ListCVE-2022-24800 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-8v7h-cpc2-r8jp changed 2023-11-08CC-BY-4.0
NVDCVE-2022-24800 changed 2026-06-17Public domain