{"id":"CVE-2023-27577","published":"2023-03-10T20:56:58Z","modified":"2025-02-25T14:58:55Z","title":"Path Traversal Vulnerability in `LESS` Parser allows reading of sensitive server files in flarum","vendor":"flarum","product":"framework","tier":"tail","description":{"text":"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.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00876,"percentile":0.56666,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/flarum/framework/security/advisories/GHSA-vhm8-wwrf-3gcw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/flarum/framework/commit/1761660c98ea5a3e9665fb8e6041d1f2ee62a444","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":11.33},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"flarum","affectedVersions":[{"vendor":"flarum","product":"framework","versions":["< 1.7.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-25T14:29:52.626830Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"flarum/core","vulnerableRanges":["<1.7.0"],"patched":["1.7.0"],"from":["GHSA-vhm8-wwrf-3gcw"],"provenance":"source"}],"summary":{"text":"The Flarum framework (versions prior to 1.7.0) contains a path traversal flaw in its LESS parser, which reads files from paths supplied in the custom LESS setting. An attacker who has already compromised an administrator account can supply an absolute file path in that setting to make the parser read sensitive files on the server, with the accessible scope determined by the permissions of the running Flarum process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:20:58Z"},"euvd":{"id":"EUVD-2023-1112","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-flarum-framework-cve-2023-27577","children":[{"from":"CVE-2023-27577","to":"CVE-2026-41887","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-xjvc-pw2r-6878","via":"reference","url":"https://github.com/flarum/framework/security/advisories/GHSA-vhm8-wwrf-3gcw"},{"kind":"same-code","provenance":"machine","files":["framework/core/src/Forum/ValidateCustomLess.php"],"commits":["https://github.com/flarum/framework/commit/1761660c98ea5a3e9665fb8e6041d1f2ee62a444","https://github.com/flarum/framework/commit/2d90a1f19f0e46f8c7e1b07c48ba74b5e38f8410"],"basis":"shared function","functions":["whenSettingsSaving"]}]}],"packageHistory":[{"cve":"CVE-2022-41938","published":"2022-11-19","fixed":"1.6.2","kev":false},{"cve":"CVE-2023-22488","published":"2023-01-12","fixed":"1.6.3","kev":false},{"cve":"CVE-2023-22489","published":"2023-01-13","fixed":"1.6.3","kev":false,"link":{"from":"CVE-2023-22489","to":"CVE-2023-27577","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:flarum/core","fromFixed":"1.6.3","toFixed":"1.7.0","daysApart":56}]}},{"cve":"CVE-2023-27577","published":"2023-03-10","fixed":"1.7.0","kev":false},{"cve":"CVE-2023-40033","published":"2023-08-16","fixed":"1.8.0","kev":false,"link":{"from":"CVE-2023-27577","to":"CVE-2023-40033","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:flarum/core","fromFixed":"1.7.0","toFixed":"1.8.0","daysApart":159}]}},{"cve":"CVE-2024-21641","published":"2024-01-05","fixed":"1.8.5","kev":false},{"cve":"CVE-2025-27794","published":"2025-03-12","fixed":"1.8.10","kev":false}],"package":"Packagist:flarum/core"}}