Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-4240
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:58 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-4240
Complete source record
{
"id": "45f6bd14383236e27ef770807270aeb1e0a4bc16b25eaecfb7cc350cf31f63a0",
"url": "https://osv.dev/vulnerability/CVE-2021-4240",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-4240",
"summary": "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.",
"evidence": "osv:CVE-2021-4240",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-4240",
"aliases": [
"CVE-2021-4240",
"GHSA-97w9-gcc7-vr8g"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/phpservermon/phpservermon",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "3daa804d5f56c55b3ae13bfac368bb84ec632193"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "3daa804d5f56c55b3ae13bfac368bb84ec632193"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v3.4.2",
"v3.4.1",
"v3.4.0",
"v3.3.1",
"v3.3.0",
"v3.2.2",
"v3.2.1",
"v3.2.0-rc1",
"v3.0.0",
"v2.1.0",
"v2.0.1",
"v2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4240.json"
}
}
],
"modified": "2026-10-20T10:55:00.441792386Z",
"provider": "osv",
"references": [
"https://vuldb.com/?id.213717",
"https://github.com/phpservermon/phpservermon/commit/3daa804d5f56c55b3ae13bfac368bb84ec632193",
"https://huntr.dev/bounties/2-phpservermon/phpservermon/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-4240",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386664,
"published_at": "2022-11-15T23:15:10.233+00:00"
}