# Poweradmin: The email second factor is an mt_rand() six-digit code verified with no attempt limit or lockout, so an attacker holding the password can brute-force it within the validity window

High severity, published 2026-11-20. Update poweradmin/poweradmin to the fixed version of your branch (4.2.6, 4.3.5, 4.4.1): composer update poweradmin/poweradmin.

Canonical URL: https://buzzphp.com/security/ghsa-9657-8vc2-7g2p · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.4) |
| Published | 2026-11-20 |
| Updated | 2026-11-20 |
| CVE | [CVE-2026-115463](https://nvd.nist.gov/vuln/detail/CVE-2026-115463) |
| GHSA | [GHSA-9657-8vc2-7g2p](https://github.com/advisories/GHSA-9657-8vc2-7g2p) |
| Weakness | CWE-307, CWE-338 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| poweradmin/poweradmin | >= 4.0.0, < 4.2.6 or >= 4.3.0, < 4.3.5 or >= 4.4.0, < 4.4.1 | 4.2.6, 4.3.5, 4.4.1 |

## What to do

Update poweradmin/poweradmin to the fixed version of your branch (4.2.6, 4.3.5, 4.4.1): composer update poweradmin/poweradmin.

Check which version you run with `composer show poweradmin/poweradmin`, and every affected package with `composer audit`.

## About this advisory

Summary

The email second factor is an mtrand() six-digit code verified with no attempt limit or lockout

The email second factor is a six-digit code drawn from mtrand() and verified with no attempt limit, so an attacker who already has the password can brute-force it inside its validity window.

lib/Domain/Service/MfaService.php, in generateEmailVerificationCode():

That is a 900,000-value space, and mtrand() is a Mersenne Twister rather than a CSPRNG, so it is not appropriate for a security token in the first place. PHP provides randomint() for exactly this.

The bigger problem is that nothing limits guesses. lib/Application/Controller/MfaVerifyController.php calls:



## Links

- [GHSA-9657-8vc2-7g2p on GitHub](https://github.com/advisories/GHSA-9657-8vc2-7g2p)
- [CVE-2026-115463 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-115463)
- [All Composer security advisories](https://buzzphp.com/security)
