CVE-2025-47776 — Vulnerability in mantisbt/mantisbt — CVE Details
MantisBT vulnerable to authentication bypass for some passwords due to PHP type juggling
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.63%). Schedule for your next planned update.
Does your project use an affected mantisbt/mantisbt version?
Paste your composer.lock to check it for CVE-2025-47776 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Due to an incorrect use of loose (==) instead of strict (===) comparison in the authentication code, PHP type juggling will cause interpretation of certain MD5 hashes as numbers, specifically those matching scientific notation.
Impact
On MantisBT instances configured to use the MD5 login method, user accounts having a password hash evaluating to zero (i.e. matching regex ^0+[Ee][0-9]+$) are vulnerable, allowing an attacker knowing the victim's username to login without knowledge of their actual password, using any other password having a hash evaluating to zero, for example comito5 (0e579603064547166083907005281618).
No password bruteforcing for individual users is needed, thus $g_max_failed_login_count does not protect against the attack.
Patches
Workarounds
Check the database for vulnerable accounts, and change those users' passwords, e.g. for MySQL:
SELECT username, email FROM mantis_user_table WHERE password REGEXP '^0+[Ee][0-9]+$'
References
Credits
Thanks to Harry Sintonen / Reversec for discovering and reporting the issue.
Advisory Timeline
- First published November 3, 2025 (388 days ago).
- Last revised March 6, 2026 — 122 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "mantisbt/mantisbt:^2.27.2"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| mantisbt/mantisbt Packagist · Affected: 2.10.0, 2.10.1, 2.11.0, 2.11.1 (+68 more) | 2.27.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-305
- CWE-697
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/mantisbt/mantisbt/security/advisories/GHSA-4v8w-gg5j-ph37WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-47776ADVISORY
- https://github.com/mantisbt/mantisbt/commit/966554a19cf1bdbcfbfb3004766979faa748f9a2WEB
- https://github.com/mantisbt/mantisbtPACKAGE
- https://github.com/mantisbt/mantisbt/blob/0fb502dd613991e892ed2224ac5ea3e40ba632bc/core/authentication_api.php#L782WEB
- https://mantisbt.org/bugs/view.php?id=35967WEB
Frequently Asked Questions
- What is CVE-2025-47776?
- MantisBT vulnerable to authentication bypass for some passwords due to PHP type juggling. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2025-47776?
- CVE-2025-47776 affects mantisbt/mantisbt. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-47776 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 44.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-52847CRITICAL
MantisBT: Reflected XSS in admin/install.php
- CVE-2026-47156CRITICAL
MantisBT: SOAP API Authentication Bypass with Privilege Escalation to Administrator
- CVE-2026-30849CRITICAL
MantisBT is vulnerable to authentication bypass through the SOAP API on MySQL
- CVE-2026-52881CRITICAL
MantisBT: Reflected XSS in admin/install.php via unescaped printf
- CVE-2026-103035HIGH
TeamPass folder re-parenting authorization bypass
- CVE-2026-40596HIGH
MantisBT is Vulnerable to XSS leading to account takeover via updating a user's font family preference
- CVE-2026-110782HIGH
SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)