thinkphp: Exposure of Resource to Wrong Sphere
CVE-2022-25481 is a high-severity exposure of resource to wrong sphere vulnerability in thinkphp, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. There is no confirmed exploitation so far. EPSS estimates a 4.75% chance of exploitation within 30 days, which is in the top 7.98% of all scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of thinkphp you run against the affected versions below, and install the vendor's latest release.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- NoneNothing can be modified.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | NVD |
| CVSS 3.1 | 4.0 | Medium | CISA (ADP) |
| CVSS 2.0 | 5.0 | Medium | NVD |
Official description
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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Exposure of Resource to Wrong Sphere
The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.
More Exposure of Resource to Wrong Sphere vulnerabilities (CWE-668)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: poc, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Technical write-ups (may include proof of concept)
- github.com/Lyther/VulnDiscover/blob/master/Web/ThinkPHP_InfoLeak.mdExploit, Third Party Advisory
Other vulnerabilities in thinkphp
- 7.5 High severity
- 9.8 Critical severity
- 9.8 Critical severity
- 9.8 Critical severity
- 9.8 Critical severity
- 8.8 High severity
ThinkPHP Remote Code Execution Exploited
Recent Exposure of Resource to Wrong Sphere vulnerabilities
- 9.8 Critical severity
- 7.3 High severity
- 8.1 High severity
- 9.8 Critical severity
- 7.5 High severity
- 8.8 High severity
Spotted an error? Tell us.