CVE-2023-40033

CVE-2023-40033 is a high-severity server-side request forgery (SSRF) vulnerability in flarum/core (composer), affecting versions < 1.8.0. It is fixed in 1.8.0.

Summary

Workarounds

As 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.

Credits

Adam Kues - Assetnote

Impact

The 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.

Untrusted input controls the target URL of a server-initiated request, which may reach internal services not otherwise accessible from outside. Typical impact: access to internal metadata services, internal APIs, or cloud credentials.

CVE-2023-40033 has a CVSS score of 7.1 (High). The vector is network-reachable, low privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.8.0); upgrading removes the vulnerable code path.

Affected versions

flarum/core (< 1.8.0) flarum/framework (< 1.8.0)

Security releases

flarum/core → 1.8.0 (composer) flarum/framework → 1.8.0 (composer)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

This has been patched in Flarum v1.8.

Frequently Asked Questions

  1. What is CVE-2023-40033? CVE-2023-40033 is a high-severity server-side request forgery (SSRF) vulnerability in flarum/core (composer), affecting versions < 1.8.0. It is fixed in 1.8.0. Untrusted input controls the target URL of a server-initiated request, which may reach internal services not otherwise accessible from outside.
  2. How severe is CVE-2023-40033? CVE-2023-40033 has a CVSS score of 7.1 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which packages are affected by CVE-2023-40033?
    • flarum/core (composer) (versions < 1.8.0)
    • flarum/framework (composer) (versions < 1.8.0)
  4. Is there a fix for CVE-2023-40033? Yes. CVE-2023-40033 is fixed in 1.8.0. Upgrade to this version or later.
  5. Is CVE-2023-40033 exploitable, and should I be worried? Whether CVE-2023-40033 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2023-40033 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2023-40033?
    • Upgrade flarum/core to 1.8.0 or later
    • Upgrade flarum/framework to 1.8.0 or later

Other vulnerabilities in flarum/core

CVE-2025-27794CVE-2024-21641CVE-2023-40033CVE-2023-27577CVE-2023-22489

Stop the waste.
Protect your environment with Kodem.