Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. october/system
  4. ›
  5. CVE-2022-35944

CVE-2022-35944: Improper Control of Generation of Code ('Code Injection')

October 13, 2022

October is a self-hosted Content Management System (CMS) platform based on the Laravel PHP Framework. This vulnerability only affects installations that rely on the safe mode restriction, commonly used when providing public access to the admin panel. Assuming an attacker has access to the admin panel and permission to open the “Editor” section, they can bypass the Safe Mode (cms.safe_mode) restriction to introduce new PHP code in a CMS template using a specially crafted request. The issue has been patched in versions 2.2.34 and 3.0.66.

References

  • github.com/advisories/GHSA-x4q7-m6fp-4v9v
  • github.com/octobercms/october/security/advisories/GHSA-x4q7-m6fp-4v9v

Code Behaviors & Features

Detect and mitigate CVE-2022-35944 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.2.34, all versions starting from 3.0.0 before 3.0.66

Fixed versions

  • 2.2.34
  • 3.0.66

Solution

Upgrade to versions 2.2.34, 3.0.66 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/october/system/CVE-2022-35944.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.