Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker obtains admin credentials
-
DeliveryAuthenticates to Flarum admin API
-
ExploitCrafts malicious theme color setting with @import directive
-
InstallSubmits POST /api/settings with injected payload
-
C2Setting stored in database
-
ExecuteLESS compiler interpolates setting into source
-
ImpactLESS parser executes @import (inline) directive
-
Step 8File contents or SSRF response embedded in forum.css
-
Step 9Attacker retrieves public forum.css and extracts sensitive data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must be an authenticated administrator with permission to modify theme settings via the POST /api/settings API endpoint. No special forum configuration is required; theme color settings and custom LESS config variables are enabled by default in Flarum installations. The vulnerability affects any setting registered as a LESS config variable through Extend\Settings::registerLessConfigVar(), including the built-in theme_primary_color and theme_secondary_color. The attack does not require user interaction and the injected @import directive is processed automatically during CSS compilation on the next settings save or forum rebuild. The LESS parser must honor @import (inline) syntax for exploitation to succeed, which is standard LESS behavior. Authentication requirement: administrator-level privilege (PR:H per CVSS vector). Exploitation is limited to administrators and does not affect unauthenticated users or lower-privilege forum members. |
| Impact | CVSS 4.9 with vector AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N indicates network-accessible exploitation requiring high-privilege authentication (admin) with high confidentiality impact but no integrity or availability impact. The seemingly low CVSS score of 4.9 understates real-world risk because it reflects the requirement for admin credentials, yet this is a privilege-escalation vulnerability: an administrator is not intended to have host-level file read access or internal network reach. The exploitation conditions are concrete and verifiable: only authenticated administrators can submit the malicious settings via POST /api/settings, and the attack is deterministic (AC:L). The lack of user interaction (UI:N) and narrow scope (S:U) are accurate. However, the impact is severe in practice because successful exploitation exposes .env files with database credentials, OAuth secrets, API keys, and enables SSRF to AWS IMDSv1 and internal services. No KEV or public POC is referenced in the input data, but the vulnerability is well-documented with a working example payload (theme_primary_color: '#4D698E;@import (inline) /etc/passwd;'), demonstrating immediate and straightforward exploitation. Risk priority depends on forum administrator account security posture; if admin accounts are compromised or if untrusted users hold admin roles, exploitation is highly likely. |
| Exploit ScenarioDerived | A threat actor with valid administrator credentials (either compromised account or malicious insider) submits a POST request to /api/settings with a crafted theme_primary_color value containing @import (inline) '/etc/passwd'; or similar file path. Flarum stores the malicious setting, interpolates it into LESS source on the next CSS compile, and the LESS parser executes the @import directive. The target file's contents are embedded into the compiled forum.css, which is publicly served to all users. The attacker retrieves forum.css and extracts sensitive data (credentials, API keys, environment variables) or uses @import to trigger SSRF requests to internal services and cloud metadata endpoints. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Authenticated administrators in Flarum can read arbitrary files and trigger server-side request forgery via LESS injection in theme color settings. The vulnerability exploits an incomplete patch for CVE-2023-27577 that restricted @import and data-uri() only in the custom_less setting but failed to apply the same restrictions to other LESS config variables such as theme_primary_color and theme_secondary_color. An attacker with admin credentials can inject arbitrary @import directives into compiled forum.css, exposing sensitive files or making outbound HTTP requests to internal networks and cloud metadata endpoints. Vendor-released patches: Flarum 1.8.16 and 2.0.0-rc.1.
RemediationAI
Vendor-released patch: Flarum 1.8.16 for the 1.x branch and 2.0.0-rc.1 for the 2.x branch. Upgrade via composer update flarum/core to the patched versions immediately. The fix extends the existing @import and data-uri() validation to all settings registered as LESS config variables, not just custom_less. If immediate upgrade is not possible, the primary workaround is to restrict admin account privileges and enforce strong, unique passwords to prevent account compromise; however, this does not prevent exploitation by legitimately trusted administrators. Alternative mitigations include disabling theme customization features temporarily (if the forum software permits) or restricting the PHP process to a read-only filesystem root to limit local file inclusion impact, though this requires careful testing and may affect forum functionality. See https://github.com/flarum/framework/commit/2d90a1f19f0e46f8c7e1b07c48ba74b5e38f8410 for technical patch details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Flarum uses LESS (Leaner Style Sheets), a CSS preprocessor that supports @import directives and data-uri() functions. The vulnerability stems from the fact that theme color settings and any custom LESS config variables registered via Extend\Settings::registerLessConfigVar() are interpolated verbatim into LESS source code at compile time without sanitization. The underlying LESS parser honors @import (inline) '<path>' syntax, which allows file inclusion and HTTP requests. The previous patch for CVE-2023-27577 only validated the custom_less setting itself but neglected to apply the same validation to other settings that feed into LESS compilation. This is a path traversal and SSRF vulnerability (CWE-22) enabled by insufficient input validation on LESS preprocessor features.
Know when Flarum gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Flarum is open-source forum software. Prior to versions 1.8.16 and 2.0.0-rc.1, Flarum's patch for CVE-2023-27577 restricted the @import and data-uri() LESS features in the custom_less setting, but the same restriction was never applied to other settings registered as LESS config variables (for example theme_primary_color and theme_secondary_color, as well as any key registered via Extend\Settings::registerLessConfigVar()). Those values are interpolated verbatim into the LESS source at compile time, allowing an authenticated administrator to craft a theme-color value that injects an arbitrary @import directive into the compiled forum.css. Because the underlying LESS parser honours @import (inline) '<path>', an attacker can read arbitrary files reachable by the PHP process (local file inclusion) or trigger outbound HTTP(S) requests (server-side request forgery). This issue has been patched in versions 1.8.16 and 2.0.0-rc.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp
Unauthenticated account takeover in the FriendsOfFlarum OAuth extension (fof/oauth) for Flarum, affecting versions prior
Flarum is a forum software for building communities. Rated critical severity (CVSS 10.0), this vulnerability is remotely
Account takeover in Flarum forum software before 1.8.16 lets remote unauthenticated attackers reuse expired password res
Flarum before 0.1.0-beta.9 allows CSRF against all POST endpoints, as demonstrated by changing admin settings. Rated hig
Flarum is a forum software for building communities. Rated medium severity (CVSS 4.3), this vulnerability is remotely ex
Session persistence after password change in Flarum before 1.8.16 allows an attacker who already holds a valid session t
User/Command/ConfirmEmailHandler.php in Flarum before 0.1.0-beta.8 mishandles invalidation of user email tokens. Rated h
Flarum is an open source forum software. Rated high severity (CVSS 7.1), this vulnerability is remotely exploitable, low
Unauthenticated information disclosure in Flarum Extension Manager 2.0.0-beta.1 through 2.0.0-beta.7 allows remote attac
Flarum is open-source forum software. Rated medium severity (CVSS 6.8), this vulnerability is remotely exploitable, no a
Flarum is a forum software for building communities. Rated medium severity (CVSS 5.4), this vulnerability is remotely ex
EUVD-2026-28804
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB