CVE-2021-27913
PHP vulnerability analysis and mitigation

Overview

CVE-2021-27913 is a security vulnerability discovered in Mautic, affecting versions prior to 3.3.4 and versions prior to 4.0.0. The vulnerability involves the use of the mt_rand function for generating session tokens, which is cryptographically flawed due to its pseudorandom nature (GitHub Advisory).

Technical details

The vulnerability stems from the implementation of session token generation using the mt_rand() function in PHP. The function's pseudorandom nature makes it cryptographically insecure, allowing potential enumeration of session tokens. The vulnerability has been assigned a CVSS v3.1 score with the following metrics: Attack Vector: Network, Attack Complexity: Low, Privileges Required: Low, User Interaction: Required, Scope: Unchanged, Confidentiality: None, Integrity: None, Availability: Low (GitHub Advisory).

Impact

The vulnerability could allow an attacker to takeover accounts at random by enumerating and using access tokens. This security flaw potentially compromises the session management system of affected Mautic installations (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Mautic versions 3.3.4 and 4.0.0. Users are advised to upgrade to these or later versions to mitigate the security risk (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23622HIGH8.7
  • PHPPHP
  • alextselegidis/easyappointments
NoNoJan 15, 2026
CVE-2026-23493HIGH8.6
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026
CVE-2026-23496MEDIUM5.4
  • PHPPHP
  • pimcore/web2print-tools-bundle
NoYesJan 15, 2026
CVE-2026-23495MEDIUM4.3
  • PHPPHP
  • pimcore/admin-ui-classic-bundle
NoYesJan 15, 2026
CVE-2026-23494MEDIUM4.3
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management