CVE-2022-25481
About
ThinkPHP Framework v5.0.24 was discovered to be configured without the PATHINFO parameter. This allows attackers to access all system environment parameters from index.php. NOTE: this is disputed by a third party because system environment exposure is an intended feature of the debugging mode.
Rainforest analyst review
This entry is disputed, and that shapes everything. The claim is that ThinkPHP 5.0.24 configured without the PATHINFO parameter lets attackers read all system environment variables via index.php. But the description itself carries a third-party dispute noting that system environment exposure is an intended feature of debugging mode — meaning the "vulnerability" may simply be debug mode behaving as designed on a system that shouldn't have debug mode on in production.
Read honestly, the realistic risk is not a framework flaw but a misconfiguration: running a debugging feature in an environment where its information disclosure isn't acceptable. If debug mode is off in production — as it should be — there's nothing to exploit here. The information a debug page exposes can aid an attacker's reconnaissance, but that's a hardening lapse, not a remotely exploitable defect, and the dispute is a strong signal to rank this well below its 7.5 label rather than treat it as a genuine unauthenticated leak.
Our angle is to fold this into configuration-hardening checks and deflate the score. Where ThinkPHP is in use, the actionable question isn't "are we on 5.0.24" but "is debug mode disabled in production," which is a control we should be enforcing regardless of this CVE. We'd flag any app exposing debug output as a hygiene finding, note the dispute prominently so it doesn't crowd out real bugs, and rank it low — a reminder to verify production settings, not a fire to fight.
References
Related CVEs
Frequently asked questions
What is CVE-2022-25481?
ThinkPHP Framework v5.0.24 was discovered to be configured without the PATHINFO parameter. This allows attackers to access all system environment parameters from index.php. NOTE: this is disputed by a third party because system environment exposure is an intended feature of the debugging mode.
How severe is CVE-2022-25481?
CVE-2022-25481 carries a CVSS 3.1 base score of 7.5, rated high. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 75 out of 100, in the high band.
How is CVE-2022-25481 exploited?
According to the CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N): attack vector Network, attack complexity Low, privileges required None, user interaction None. Impact on confidentiality High, integrity None and availability None.
Which products are affected by CVE-2022-25481?
Public advisories list the following as affected: thinkphp. Check the references on this page for the exact versions each vendor confirms.
How do I fix CVE-2022-25481?
Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.
Empower Your Security Strategy with Rainforest
Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.
