{"id":"CVE-2021-4241","published":"2022-11-15T00:00:00Z","modified":"2025-04-15T13:13:56Z","title":"phpservermon User.php setUserLoggedIn predictable algorithm in random number generator","vendor":"unspecified","product":"phpservermon","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01022,"percentile":0.64307,"provenance":"source"},"cwes":[{"id":"CWE-331","name":"Insufficient Entropy"}],"references":[{"url":"https://huntr.dev/bounties/1-phpservermon/phpservermon/","tags":[]},{"url":"https://github.com/phpservermon/phpservermon/commit/bb10a5f3c68527c58073258cb12446782d223bc3","tags":[]},{"url":"https://vuldb.com/?id.213744","tags":[]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":12.86},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"unspecified","ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-14T16:57:32.388492Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpservermon/phpservermon","vulnerableRanges":["<3.6.0"],"patched":["3.6.0"],"from":["GHSA-hc4j-7mqg-cxjj"],"provenance":"source"}],"summary":{"text":"The phpservermon product has a flaw in the setUserLoggedIn function of its src/psm/Service/User.php file, where a random number generator relies on a predictable algorithm, leading to insufficient entropy. An attacker with adjacent network access and low privileges can exploit it, though the attack is high-complexity and requires an authenticated account.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:19Z"},"euvd":{"id":"EUVD-2022-7360","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-unspecified-phpservermon-cve-2018-18921","parents":[{"from":"CVE-2021-4240","to":"CVE-2021-4241","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/psm/Service/User.php"],"commits":["https://github.com/phpservermon/phpservermon/commit/3daa804d5f56c55b3ae13bfac368bb84ec632193","https://github.com/phpservermon/phpservermon/commit/bb10a5f3c68527c58073258cb12446782d223bc3"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.66,"basis":"same product + CWE + description similarity"}]}]}}