# CVE-2021-4240: phpservermon User.php generatePasswordResetToken predictable algorithm in random number generator

- Priority: **Routine**
- Reason: Not severe (CVSS 2.6, adjacent network); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-11-15 · Modified: 2025-04-15
- Record: https://cvemate.com/vulnerability/CVE-2021-4240 · JSON: https://cvemate.com/vulnerability/CVE-2021-4240/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 1.066%, percentile 65.864%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- phpservermonitor php\_server\_monitor: na
- unspecified phpservermon: n/a

## References

- <https://huntr.dev/bounties/2-phpservermon/phpservermon/>
- <https://github.com/phpservermon/phpservermon/commit/3daa804d5f56c55b3ae13bfac368bb84ec632193>
- <https://vuldb.com/?id.213717>

---

Data as of 2026-12-05T04:58:59.970Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
