CVE-2022-25481Thinkphp
High 7.5 No auth needed
Follow: this CVE · Thinkphp · Thinkphp We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 3.7% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- Mar 21, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Thinkphp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | topthink/framework |
≤ 5.0.24 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-69wp-xwm7-69wm). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| thinkphp | thinkphp | 5.0.24 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory