{"id":"CVE-2021-4240","published":"2022-11-15T00:00:00Z","modified":"2025-04-15T13:14:03Z","title":"phpservermon User.php generatePasswordResetToken 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. 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.","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.01066,"percentile":0.65572,"provenance":"source"},"cwes":[{"id":"CWE-331","name":"Insufficient Entropy"}],"references":[{"url":"https://huntr.dev/bounties/2-phpservermon/phpservermon/","tags":[]},{"url":"https://github.com/phpservermon/phpservermon/commit/3daa804d5f56c55b3ae13bfac368bb84ec632193","tags":[]},{"url":"https://vuldb.com/?id.213717","tags":[]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":13.11},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"unspecified","ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-14T16:57:36.575882Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpservermon/phpservermon","vulnerableRanges":["<3.6.0"],"patched":["3.6.0"],"from":["GHSA-97w9-gcc7-vr8g"],"provenance":"source"}],"summary":{"text":"The flaw is a predictable algorithm in the random number generator used by the generatePasswordResetToken function in src/psm/Service/User.php of phpservermon, which makes the generated password reset tokens weak. An attacker with adjacent network access and low-privilege authentication, under high attack complexity and without user interaction, could potentially predict these tokens to affect the confidentiality of user account data, with no impact on integrity or availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:09Z"},"euvd":{"id":"EUVD-2022-7294","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-unspecified-phpservermon-cve-2018-18921","parents":[{"from":"CVE-2018-18921","to":"CVE-2021-4240","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/includes/psmconfig.inc.php"],"commits":["https://github.com/phpservermon/phpservermon/commit/30150714a8af0c82259b733f604fce54c0dcbf40","https://github.com/phpservermon/phpservermon/commit/3daa804d5f56c55b3ae13bfac368bb84ec632193"],"basis":"rarely changed file"}]}],"children":[{"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"}]}]}}