Every CVE Search/ Get API key

CVE-2021-23126

[20210301] - Core - Insecure randomness within 2FA secret generation

5.3 MediumFix available

An issue was discovered in Joomla! 3.2.0 through 3.9.24. Usage of the insecure rand() function within the process of generating the 2FA secret.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

1.11%Up 0.7 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 5.3

An issue was discovered in Joomla! 3.2.0 through 3.9.24. Usage of the insecure rand() function within the process of generating the 2FA secret.

Record
CVE-2021-23126
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:P/I:N/A:N
Weakness
CWE-338
Updated
2026-11-02
CVE List No score

[20210301] - Core - Insecure randomness within 2FA secret generation

An issue was discovered in Joomla! 3.2.0 through 3.9.24. Usage of the insecure rand() function within the process of generating the 2FA secret.

Record
CVE-2021-23126
Updated
2026-11-02
EUVDEUVD-2021-10244 No score

An issue was discovered in Joomla! 3.2.0 through 3.9.24. Usage of the insecure rand() function within the process of generating the 2FA secret.

Record
EUVD-2021-10244
Updated
2026-11-02
GitHub AdvisoriesGHSA-429x-phj9-4788 5.3

An issue was discovered in Joomla! 3.2.0 through 3.9.24. Usage of the insecure rand() function...

An issue was discovered in Joomla! 3.2.0 through 3.9.24. Usage of the insecure rand() function within the process of generating the 2FA secret.

Record
GHSA-429x-phj9-4788
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-326
Updated
2026-11-02
OSV 5.3

An issue was discovered in Joomla! 3.2.0 through 3.9.24. Usage of the insecure rand() function within the process of generating the 2FA secret.

Record
CVE-2021-23126
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Updated
2026-11-02
OSVBIT-joomla-2021-23126 No score

[20210301] - Core - Insecure randomness within 2FA secret generation

An issue was discovered in Joomla! 3.2.0 through 3.9.24. Usage of the insecure rand() function within the process of generating the 2FA secret.

Record
BIT-joomla-2021-23126
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
joomla
Bitnami
3.2.0 up to 3.9.25
3.9.25

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-23126 is a medium vulnerability (CVSS 5.3) in Joomla Joomla\!, published March 4, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.11%, the 66th percentile. Fixed in joomla 3.9.25.

References

MoveEnter Open