LiveActive security incident?Get immediate response
CVE Record

CVE-2021-4240: phpservermon User.php generatePasswordResetToken predictable algorithm in random number generator

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.

LowCVSS 2.6Not KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

phpservermon had weak password reset token generation. An attacker meeting the required conditions could potentially predict reset tokens, creating limited confidentiality risk. Public exploit disclosure is reported, but the provided sources do not show CISA KEV listing or confirmed active exploitation.

Executive priority

Treat this as a low-priority but real hygiene fix. The impact is limited, but password reset weaknesses can undermine account trust. Patch during the next maintenance window, sooner if phpservermon is exposed to untrusted adjacent networks.

Technical view

CVE-2021-4240 affects generatePasswordResetToken in src/psm/Service/User.php. It is classified as CWE-331 for predictable random number generation. CVSS 3.1 is 2.6: adjacent vector, high complexity, low privileges, no user interaction, and low confidentiality impact. Patch commit 3daa804d5f56c55b3ae13bfac368bb84ec632193 is cited.

Likely exposure

Exposure is limited to organizations running phpservermon builds containing the vulnerable User.php implementation. The bundle does not identify exact affected versions or CPEs, so teams should compare deployed code or release lineage against the referenced patch.

Exploitation context

VulDB reports that exploit details were publicly disclosed and may be used. The bundle does not provide KEV status or cited confirmation of active exploitation. The CVSS vector indicates exploitation requires adjacent access, low privileges, and high complexity.

Researcher notes

The source bundle lacks exact affected version ranges, so validation should focus on code comparison to the cited commit. Do not assume broader products or versions are affected. Public disclosure is reported, but active exploitation is not established here.

Mitigation direction

  • Apply phpservermon patch commit 3daa804d5f56c55b3ae13bfac368bb84ec632193 or a release containing it.
  • Check phpservermon upstream advisories or release notes for supported fixed versions.
  • Review password reset activity where phpservermon is deployed.
  • Limit access to phpservermon administrative surfaces where operationally feasible.

Validation and detection

  • Inventory phpservermon deployments and identify the deployed source or package version.
  • Confirm src/psm/Service/User.php includes the referenced password reset token fix.
  • Verify password reset tokens are generated with non-predictable randomness after patching.
  • Check logs for abnormal password reset requests before remediation.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-331: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-4240 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Low
CVSS
2.6 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
2.6CVSS 3.1LowCVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N1.21.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

2.6Low
CVSS 3.1 vector shape for CVE-2021-4240Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
unspecifiedphpservermonn/aListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-331 · source CWE mapping

Insufficient Entropy

Insufficient Entropy represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.