CVE-2021-4241 json
phpservermon User.php setUserLoggedIn predictable algorithm in random number generator
published 2022-11-15 3 y ago modified 2026-06-17 4 mo ago also GHSA-hc4j-7mqg-cxjj , EUVD-2022-7360
- cvss
- 2.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
A vulnerability, which was classified as problematic, was found in phpservermon. Affected is the function setUserLoggedIn 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 bb10a5f3c68527c58073258cb12446782d223bc3. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-213744.
Patch / fix
- packagist phpservermon/phpservermon 3.6.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.85% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.dev https://huntr.dev/bounties/1-phpservermon/phpservermon/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 2.6 | CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | phpservermon/phpservermon | <3.6.0 |
3.6.0 |
Affected products
- unspecified phpservermon
Classification
References
-
github.com
/phpservermon/phpservermon/commit/bb10a5f3c68527c58073258cb12446782d223bc3
web, patch, third-party-advisory
-
huntr.dev
/bounties/1-phpservermon/phpservermon/
exploit, patch, third-party-advisory
-
vuldb.com
/?id.213744
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-4241
advisory
-
github.com
/phpservermon/phpservermon
package
-
huntr.dev
/bounties/1-phpservermon/phpservermon
web
Sources
- CVE List CVE-2021-4241
- GitHub Advisory GHSA-hc4j-7mqg-cxjj
- NVD CVE-2021-4241
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.