# CVE-2021-23126: [20210301] - Core - Insecure randomness within 2FA secret generation

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.12%, higher than 67% of CVEs (2026-12-01)
- Published: 2021-03-04T17:37:14.262Z
- Modified: 2026-09-08T08:48:01.943Z
- Also known as: BIT-JOOMLA-2021-23126
- Weaknesses: CWE-338
- Assigned by: Joomla

## Description

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.

(As written by CVE List.)

## Affected

- Joomla! Project Joomla! CMS: 3.2.0-3.9.24
- joomla joomla!: from 3.2.0 before 3.9.25
- joomla (Bitnami): from 3.2.0 before 3.9.25

## Every score

- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://developer.joomla.org/security-centre/841-20210301-core-insecure-randomness-within-2fa-secret-generation.html> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23126> (web)

## Sources

- CVE List: [CVE-2021-23126](https://www.cve.org/CVERecord?id=CVE-2021-23126), CVE Terms of Use, modified 2026-02-25
- NVD: [CVE-2021-23126](https://nvd.nist.gov/vuln/detail/CVE-2021-23126), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-JOOMLA-2021-23126](https://osv.dev/vulnerability/BIT-JOOMLA-2021-23126), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-23126 · Whole record: https://cve.day/CVE-2021-23126.json · Rebuilt by cve.day 2026-11-25T22:58:00.138Z
