{"id":"CVE-2021-23126","details":"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.","aliases":["BIT-joomla-2021-23126"],"modified":"2026-03-14T10:46:35.451437Z","published":"2021-03-04T18:15:13.207Z","references":[{"type":"ADVISORY","url":"https://developer.joomla.org/security-centre/841-20210301-core-insecure-randomness-within-2fa-secret-generation.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/joomla/joomla-cms","events":[{"introduced":"acb7a6384561a8d5917fa9854c85f52cddec9550"},{"fixed":"aadf6979f8b99308c3621ea3af2ca98e678a477d"}],"database_specific":{"versions":[{"introduced":"3.2.0"},{"fixed":"3.9.25"}]}}],"versions":["3","3.2.0","3.2.1","3.2.2","3.2.3","3.2.4","3.3.0","3.3.0.beta","3.3.0.beta2","3.3.0.rc","3.3.1","3.3.2","3.3.3","3.3.4","3.3.5","3.3.6","3.4.0","3.4.0-beta1","3.4.0-beta2","3.4.0-beta3","3.4.0-rc","3.4.1","3.4.1-rc","3.4.1-rc2","3.4.2","3.4.2-rc","3.4.3","3.4.4","3.4.4-rc","3.4.4-rc2","3.4.5","3.4.6","3.4.7","3.4.8","3.4.8-rc","3.5.0","3.5.0-beta","3.5.0-beta2","3.5.0-beta3","3.5.0-beta4","3.5.0-beta5","3.5.0-rc","3.5.0-rc2","3.5.0-rc3","3.5.0-rc4","3.5.1","3.5.1-rc","3.5.1-rc2","3.6.0","3.6.0-alpha","3.6.0-beta1","3.6.0-beta2","3.6.0-rc","3.6.0-rc2","3.6.1","3.6.1-rc1","3.6.1-rc2","3.6.2","3.6.3","3.6.3-rc1","3.6.3-rc2","3.6.3-rc3","3.6.4","3.6.5","3.7.0","3.7.0-alpha1","3.7.0-beta1","3.7.0-beta2","3.7.0-beta3","3.7.0-beta4","3.7.0-rc1","3.7.0-rc2","3.7.0-rc3","3.7.0-rc4","3.7.1","3.7.1-rc1","3.7.1-rc2","3.7.2","3.7.3","3.7.3-beta1","3.7.3-rc1","3.7.3-rc2","3.7.4","3.7.4-beta1","3.7.4-rc1","3.8.0","3.8.0-beta1","3.8.0-beta2","3.8.0-beta3","3.8.0-beta4","3.8.0-rc1","3.8.1","3.8.1-rc","3.8.10","3.8.11","3.8.11-rc","3.8.12","3.8.12-rc","3.8.13","3.8.2","3.8.2-rc","3.8.3","3.8.3-rc","3.8.4","3.8.4-rc","3.8.4-rc2","3.8.5","3.8.5-rc","3.8.6","3.8.6-rc1","3.8.7","3.8.7-rc","3.8.8","3.8.8-rc","3.8.9","3.8.9-rc","3.9.0","3.9.0-alpha","3.9.0-beta","3.9.0-beta2","3.9.0-beta3","3.9.0-beta4","3.9.0-rc","3.9.0-rc2","3.9.1","3.9.1-rc","3.9.10","3.9.11","3.9.11-rc","3.9.12","3.9.12-rc","3.9.13","3.9.13-rc","3.9.13-rc2","3.9.14","3.9.14-rc","3.9.15","3.9.15-rc","3.9.16","3.9.16-rc","3.9.17","3.9.17-rc","3.9.18","3.9.19","3.9.19-rc","3.9.2","3.9.2-rc","3.9.20","3.9.20-rc","3.9.21","3.9.21-rc","3.9.22","3.9.22-rc","3.9.23","3.9.23-rc","3.9.23-rc2","3.9.24","3.9.24-rc","3.9.24-rc2","3.9.25-rc","3.9.3","3.9.3-rc","3.9.4","3.9.4-rc","3.9.5","3.9.5-rc","3.9.6","3.9.6-rc","3.9.6-rc2","3.9.7","3.9.7-rc","3.9.8","3.9.9","3.9.9-rc","issues-241-257"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23126.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}