{"id":"CVE-2023-40033","aliases":["CVE-2023-40033","GHSA-67c6-q4j4-hccg"],"related":[],"kind":"vulnerability","state":"published","title":"Server-Side Request Forgery via Avatar upload in flarum","summary":"Flarum is an open source forum software. Flarum is affected by a vulnerability that allows an attacker to conduct a Blind Server-Side Request Forgery (SSRF) attack or disclose any file on the server, even with a basic user account on any Flarum forum. By uploading a file containing a URL and spoofing the MIME type, an attacker can manipulate the application to execute unintended actions. The vulnerability is due to the behavior of the `intervention/image` package, which attempts to interpret the supplied file contents as a URL, which then fetches its contents. This allows an attacker to exploit the vulnerability to perform SSRF attacks, disclose local file contents, or conduct a blind oracle attack. This has been patched in Flarum version 1.8.0. Users are advised to upgrade. Users unable to upgrade may disable PHP's `allow_url_fopen` which will prevent the fetching of external files via URLs as a temporary workaround for the SSRF aspect of the vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Flarum is an open source forum software. Flarum is affected by a vulnerability that allows an attacker to conduct a Blind Server-Side Request Forgery (SSRF) attack or disclose any file on the server, even with a basic user account on any Flarum forum. By uploading a file containing a URL and spoofing the MIME type, an attacker can manipulate the application to execute unintended actions. The vulnerability is due to the behavior of the `intervention/image` package, which attempts to interpret the supplied file contents as a URL, which then fetches its contents. This allows an attacker to exploit the vulnerability to perform SSRF attacks, disclose local file contents, or conduct a blind oracle attack. This has been patched in Flarum version 1.8.0. Users are advised to upgrade. Users unable to upgrade may disable PHP's `allow_url_fopen` which will prevent the fetching of external files via URLs as a temporary workaround for the SSRF aspect of the vulnerability.","source":"cvelist"},{"lang":"en","text":"## Impact\nThe Flarum forum software is affected by a vulnerability that allows an attacker to conduct a Blind SSRF attack or disclose any file on the server, even with a basic user account on any Flarum forum. By uploading a file containing a URL and spoofing the MIME type, an attacker can manipulate the application to execute unintended actions. The vulnerability is due to the behavior of the `intervention/image` package, which attempts to interpret the supplied file contents as a URL, which then fetches its contents. This allows an attacker to exploit the vulnerability to perform SSRF attacks, disclose local file contents, or conduct a blind oracle attack.\n\n### Patches\nThis has been patched in Flarum **v1.8**.\n\n## Workarounds\nAs a temporary workaround for the SSRF aspect of the vulnerability, one can disable PHP's `allow_url_fopen` which will prevent the fetching of external files via URLs.\n\n### Credits\nAdam Kues - [Assetnote](https://assetnote.io/)","format":"markdown","source":"ghsa"}],"published":"2023-08-16T20:34:11.445Z","modified":"2026-09-10T03:49:57.375Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"}],"cwes":["CWE-98","CWE-918"],"affected":[{"ranges":[{"version":"< 1.8.0","status":"affected"}],"vendor":"flarum","product":"framework","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.8.0"}],"ecosystem":"Packagist","package":"flarum/core","purl":"pkg:composer/flarum/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.8.0"}],"ecosystem":"Packagist","package":"flarum/framework","purl":"pkg:composer/flarum/framework","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.8.0"}],"vendor":"flarum","product":"flarum","cpe":"cpe:2.3:a:flarum:flarum:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/flarum/framework/security/advisories/GHSA-67c6-q4j4-hccg","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/flarum/framework/commit/d1059c1cc79fe61f9538f3da55e8f42abbede570","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40033","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/flarum/framework","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-02T15:56:22.975Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-40033","url":"https://www.cve.org/CVERecord?id=CVE-2023-40033","licence":"CVE Terms of Use","modified":"2024-10-02T16:00:40.870Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-67c6-q4j4-hccg","url":"https://github.com/advisories/GHSA-67c6-q4j4-hccg","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:57.375Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-40033","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40033","licence":"Public domain","modified":"2026-06-17T06:15:51.270Z"}],"updatedAt":"2026-11-25T22:58:27.191Z","epss":{"score":0.00547,"percentile":0.39427,"date":"2026-11-30T12:00:22.000Z"}}