CVE-2023-27577: Flarum - Path Traversal
- Cve: CVE-2023-27577
- Name: Flarum - Path Traversal
- Description: flarum is a forum software package for building communities. In versions prior to 1.7.0 an admin account which has already been compromised by an attacker may use a vulnerability in the `LESS` parser which can be exploited to read sensitive files on the server through the use of path traversal techniques. An attacker can achieve this by providing an absolute path to a sensitive file in the custom `LESS` setting, which the `LESS` parser will then read. For example, an attacker could use the following code to read the contents of the `/etc/passwd` file on a linux machine. The scope of what files are vulnerable will depend on the permissions given to the running flarum process. The vulnerability has been addressed in version `1.7`. Users should upgrade to this version to mitigate the vulnerability. Users unable to upgrade may mitigate the vulnerability by ensuring that their admin accounts are secured with strong passwords and follow other best practices for account security. Additionally, users can limit the exposure of sensitive files on the server by implementing appropriate file permissions and access controls at the operating system level.
- Impact: Attackers with admin access can read sensitive server files, potentially leading to information disclosure or further system compromise.
- Remediation: Upgrade to version 1.7 or later. If upgrade isn't possible, secure admin accounts with strong passwords and implement proper file permissions and access controls.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure, file_system_read
- Requirement type: admin_privileges
- Requirements: Attacker needs to have compromised admin account
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00851
- Epss percentile: 0.58952
- Assignee: [email protected]
- Published at: 2023-03-10T21:15:15Z
- Age in days: 1355
- Modified at: 2026-06-17T05:45:30Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-27577
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/flarum/framework/commit/1761660c98ea5a3e9665fb8e6041d1f2ee62a444 | nvd | Patch |
| https://github.com/flarum/framework/security/advisories/GHSA-vhm8-wwrf-3gcw | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| flarum:flarum | < 1.7.0 | no | nvd | /v1/products/flarum/flarum |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| flarum/framework | commit, fix, security_advisory | yes | /v1/repositories/flarum/framework |
| flarum/flarum-core | package, releases | yes | /v1/repositories/flarum/flarum-core |
Index
- Repositories: 7
- Repositories high signal: 7
- Checked, none or zero: packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 1037
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports