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

Low 2.6 Published Updated

Attackers can predict session tokens due to a weak random number generator, potentially bypassing authentication in phpservermon.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-4241?

CVE-2021-4241 is a low-severity vulnerability in unspecified phpservermon, published on 15 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-330, CWE-331

Which versions are affected by CVE-2021-4241?

2 open source packages ship an affected version, including phpservermon/phpservermon. It affects 1 product.

PackageAffectedFixed in
phpservermon/phpservermon PackagistAll versions3.6.0
phpservermon/phpservermon PackagistAll versions3.6.0

Products include Phpservermonitor Php Server Monitor.

How do I fix CVE-2021-4241?

Upgrade phpservermon/phpservermon to 3.6.0 or later.

Is CVE-2021-4241 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-4241 exists.

Sources

Also known as GHSA-hc4j-7mqg-cxjj.

Is CVE-2021-4241 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free