phpservermon User.php generatePasswordResetToken predictable algorithm in random number generator
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
A vulnerability, which was classified as problematic, was found in phpservermon. This affects the function generatePasswordResetToken of the file src/psm/Service/User.php. The manipulation leads to use of predictable algorithm in random number generator. The exploit has been disclosed to the public and may be used. The name of the patch is 3daa804d5f56c55b3ae13bfac368bb84ec632193. It is recommended to apply a patch to fix this issue. The identifier VDB-213717 was assigned to this vulnerability.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| unspecified | phpservermon | all versions | — | No fix listed | CNA |
| — | phpservermon/phpservermon (Packagist) | before 3.6.0 | 3.6.0 | Patch available | GHSA-97w9-gcc7-vr8g |
- phpservermon Vendorunspecified Affected all versions Fixed in — No fix listed CNA
- phpservermon/phpservermon (Packagist) Vendor— Affected before 3.6.0 Fixed in 3.6.0 Patch available GHSA-97w9-gcc7-vr8g
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:phpservermonitor:php_server_monitor:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | PHP Server Monitor |
- cpe:2.3:a:phpservermonitor:php_server_monitor:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·PHP Server Monitor
Remediation
- Fix · GHSA-97w9-gcc7-vr8g phpservermon/phpservermon (Packagist) Fixed in 3.6.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-4240
- 2026-10-03 Alias added: GHSA-97w9-gcc7-vr8g
References
More Php Server Monitor vulnerabilities
- TI-2021-03100 phpservermon User.php setUserLoggedIn predictable algorithm in random number generator CVSS 3.1MEDIUM 5.3
- TI-2018-13402 PHP Server Monitor before 3.3.2 has CSRF, as demonstrated by a Delete action. CVSS 3.0MEDIUM 6.5
- TI-2021-02976 CRLF Injection in phpservermon/phpservermon CVSS 3.1MEDIUM 5.4
Sources
- CVE-2021-4240 · CVE Program
- CVE-2021-4240 · NVD
- FIRST EPSS
- GHSA-97w9-gcc7-vr8g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences