Craft CMS versions 5.0.0-RC1 through 5.10.5 contain an authorization vulnerability allowing users with only viewCategories permission to modify the category structure. This occurs because the system incorrectly uses the view permission to authorize structural changes, enabling reordering and re-parenting of categories without proper save permission. Modifying category structure changes category URIs and can disrupt navigation menus. The issue is fixed in version 5.10.6.
Craft CMS versions 4.0.0-RC1 before 4.18.2 and 5.0.0-RC1 before 5.10.6 contain a theoretical path traversal weakness in the ensurePathIsContained function of the Local file system class. The vulnerability arises because path validation occurs before normalization, which may allow paths to resolve outside the intended directory. The vendor states the issue is not directly exploitable and no exploit scenarios have been found. The fix is recommended for hardening purposes.
Craft CMS versions 4.0.0-RC1 through before 4.18.2 and 5.0.0-RC1 through before 5.10.6 contain an arbitrary file read vulnerability. This occurs because the create() Twig function's class instantiation blocklist does not include SplFileObject, allowing an authenticated administrator with allowAdminChanges=true to instantiate SplFileObject in a non-sandboxed template context. This can lead to arbitrary files on the server, such as .env files containing sensitive credentials, being read and rendered in entry titles.
Craft CMS versions from 4.0.0-RC1 before 4.18.2 and from 5.0.0-RC1 before 5.10.6 contain an authenticated remote code execution vulnerability in the control panel element-search condition handling. The vulnerability arises because a JSON string in condition.config is not properly cleansed after decoding, allowing special Yii configuration keys to be interpreted and executed. An attacker with an authenticated control panel session and a valid CSRF token can exploit this to execute operating system commands as the PHP/web user.
A broken access control vulnerability exists in TYPO3 CMS backend and Install Tool due to ineffective referrer enforcement starting from version 13.0. This allows requests originating from any script running on the TYPO3 instance's own domains, such as frontend pages, to be accepted by backend and Install Tool endpoints. Attackers who can execute JavaScript on these domains, for example via cross-site scripting, could invoke these endpoints with the privileges of an authenticated user. The vulnerability affects TYPO3 CMS versions 13.0.0 through 13.4.33 and 14.0.0 through 14.3.5. A patch is available to address this issue.
### Problem
The referrer enforcement introduced with [TYPO3-CORE-SA-2020-006](https://news.typo3.com/security/advisory/typo3-core-sa-2020-006) ([CVE-2020-11069](https://www.cve.org/CVERecord?id=CVE-2020-11069)) became ineffective in TYPO3 v13.0, where TYPO3 CMS started serving the backend and Admin Tool applications from the site's main entry script instead of the dedicated typo3/ directory.
Whether a request originated from the backend or Install Tool itself was determined by comparing the referrer against the directory of the entry script, which since then is the site root. As a consequence, requests originating from any script running on one of the TYPO3 instance's own domains, such as a frontend page, were accepted by backend routes and Install Tool endpoints.
Attackers able to execute JavaScript on one of those domains, for instance by exploiting a cross-site scripting vulnerability, could invoke these endpoints via Fetch/XHR with the privileges of an authenticated victim's user session.
### Solution
Update to TYPO3 versions 13.4.34 LTS, 14.3.6 LTS that fix the problem described.
### Credits
Thanks to Hổ Cao Từ for reporting this issue, and to TYPO3 core & security team member Benjamin Franzke for fixing it.
CodeIgniter versions prior to 4.7.4 contain a file upload validation vulnerability in the `is_image` and `mime_in` rules that allows bypassing extension checks. This can lead to remote code execution if applications save uploaded files using client-supplied filenames in web-accessible directories where PHP execution is possible. The vulnerability is fixed in version 4.7.4.
CodeIgniter 4 versions prior to 4.7.4 have a path traversal vulnerability in the UploadedFile::move() method when called without a second argument. The method uses the client-provided filename without sanitization, allowing attackers to write files outside the intended directory by supplying filenames with path traversal sequences. The vulnerability is fixed in version 4.7.4, which sanitizes the default filename. Applications explicitly passing client filenames as the second argument remain responsible for sanitization.
A critical SQL injection vulnerability exists in CodeIgniter 4's Query Builder deleteBatch() method when used with where() conditions. The vulnerability arises because bound values from the WHERE clause are directly substituted into the SQL query without proper escaping or quoting. This allows user-controlled input passed to where() before deleteBatch() to be interpreted as SQL code, enabling injection attacks. The issue affects versions from 4.3.0 up to but not including 4.7.4. A fix is available in version 4.7.4. Workarounds include strict input validation and avoiding user-controlled input in where() when using deleteBatch().
CodeIgniter versions prior to 4.7.4 contain a vulnerability in the IncomingRequest::isSecure() method, which trusts the X-Forwarded-Proto and Front-End-Https headers from incoming requests. An attacker can spoof these headers to make the application incorrectly treat an HTTP request as secure. This affects applications relying on isSecure() or similar HTTPS enforcement logic. The vulnerability is mitigated by upgrading to version 4.7.4 or later. Workarounds include enforcing HTTPS redirects outside the application and ensuring reverse proxies strip or overwrite these headers.
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. From 5.0.0 until 5.8.4, Smarty's stream: resource-name handling does not adequately restrict which PHP stream wrappers and filter chains can be referenced from a template, allowing a php://filter-wrapped resource name to be used to read the contents of arbitrary local files accessible to the PHP process. An attacker able to author or influence a template's resource reference could exploit this to disclose sensitive file contents outside the intended template/config scope. This issue is fixed in version 5.8.4.
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to 5.8.2 (and 4.5.7 on the 4.x line), Security::_checkDir() does not fully resolve symbolic links before validating that a requested path lies within a configured secure directory. An attacker able to place or reference a symlink within a directory Smarty treats as trusted (e.g., a template or config directory) could use it to point outside the intended secure directory, bypassing the containment check and reading arbitrary files accessible to the PHP process. This issue is fixed in versions 5.8.2 and 4.5.7.
Craft CMS passkey login functionality improperly handles WebAuthn assertions by accepting replayed requestOptions and failing to update the stored credential counter. This allows an attacker who captures a successful passkey login request body to replay it and create additional authenticated sessions for the victim user, effectively bypassing WebAuthn's replay protections and enabling account/session takeover.
league/commonmark is a PHP library for parsing and rendering CommonMark Markdown. From 0.6.0 until 2.9.0, specially crafted Markdown lines can cause the parser to have quadratic time complexity when converting, because several parsing paths repeatedly rescan growing portions of a line to translate between character positions and byte positions, and the Autolink extension can also copy and validate the remaining line at every URL-like prefix, allowing an attacker who can submit Markdown for conversion to consume disproportionate CPU time with a comparatively small request. This issue is fixed in 2.9.0.
league/commonmark is a PHP library for parsing and rendering CommonMark Markdown. From 1.5.0 until 2.9.0, the AttributesExtension's href and src unsafe-link filter can be bypassed by embedding control bytes, such as a tab, carriage return, line feed, or leading C0 control character, in a javascript: URL that browsers discard before parsing the scheme, causing the browser to still execute the script even when the unsafe-link filter is enabled. This issue is fixed in 2.9.0.
Craft CMS versions 4.0.0-RC1 up to but not including 4.18.2, and 5.0.0-RC1 up to but not including 5.10.6, contain a vulnerability in the Twig `create()` function that allows an admin user to read arbitrary files on the server. This is possible because the `create()` function can instantiate PHP classes like SplFileObject, which is not blocked, enabling file reads from non-sandboxed template contexts such as entry type title and URI formats. Exploitation requires admin access and the configuration setting `allowAdminChanges` to be true, which is typically disabled in production. The vulnerability exposes sensitive files like `.env` containing security keys and database credentials. The Twig sandbox blocks this function in system email templates, limiting the attack surface. A patch is available for this vulnerability.
Craft CMS versions 4.0.0-RC1 through before 4.18.2 and 5.0.0-RC1 through before 5.10.6 contain a vulnerability where authenticated users with control panel access can leak secret environment variables. This occurs because environment variables are interpolated into Twig templates even when the Twig sandbox is enabled, allowing secrets to be extracted via blind error-based techniques. The vulnerability enables attackers to incrementally exfiltrate sensitive secrets such as the CRAFT_SECURITY_KEY, database credentials, and API keys, potentially leading to session forgery and privilege escalation.
Craft CMS contains an authorization bypass vulnerability allowing users with only viewCategories permission to modify the category structure via the structures/move-element action. This flaw permits reordering and re-parenting categories without saveCategories permission, affecting category URLs and navigation integrity. Verified in version 5.10.5 and related to prior authorization bypasses fixed in earlier versions. No confidentiality or remote code execution impact is present.
A missing authorization check in Craft CMS allows any authenticated control panel user with only the base access permission to retrieve aggregate user registration metrics. The endpoint /actions/charts/get-new-users-data does not enforce the expected 'viewUsers' permission, exposing time-series counts of new user registrations by group and date. No personally identifiable information is disclosed, and the impact is limited to revealing user group sizes and registration trends.
Craft CMS contains a theoretical path traversal vulnerability in the Local file system class's ensurePathIsContained function due to the order of path validation and normalization. Although no exploitable scenario has been identified, the issue could allow desanitization of file paths. A fix is available and recommended for hardening purposes.