# CVE-2021-27913: Use of a Broken or Risky Cryptographic Algorithm

- Severity: Low 3.5 (CVSS:3.1, scored by Mautic) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- 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): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-30T15:55:21.646Z
- Modified: 2026-07-08T06:27:22.904Z
- Also known as: GHSA-x7g2-wrrp-r6h3
- Weaknesses: CWE-327, CWE-338
- Assigned by: Mautic

## Description

The function mt_rand is used to generate session tokens, this function is cryptographically flawed due to its nature being one pseudorandomness, an attacker can take advantage of the cryptographically insecure nature of this function to enumerate session tokens for accounts that are not under his/her control This issue affects: Mautic Mautic versions prior to 3.3.4; versions prior to 4.0.0.

(As written by CVE List.)

## Affected

- Mautic Mautic: from unspecified before 3.3.4; from unspecified before 4.0.0
- mautic/core (Packagist): before 3.3.4; from 4.0.0-alpha1 before 4.0.0
- acquia mautic: before 3.3.4; 4.0.0

## Every score

- Mautic: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/mautic/mautic/security/advisories/GHSA-x7g2-wrrp-r6h3> (exploit, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27913> (advisory)
- <https://github.com/mautic/mautic/commit/d1cad766a2de74e6c6b89d6d78c2a5f2e36ba91c> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/mautic/core/CVE-2021-27913.yaml> (web)
- <https://github.com/mautic/mautic> (package)

## Sources

- CVE List: [CVE-2021-27913](https://www.cve.org/CVERecord?id=CVE-2021-27913), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-x7g2-wrrp-r6h3](https://github.com/advisories/GHSA-x7g2-wrrp-r6h3), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-27913](https://nvd.nist.gov/vuln/detail/CVE-2021-27913), Public domain, modified 2026-06-17

---

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