CVE-2025-47776
PHP vulnerability analysis and mitigation

Overview

A vulnerability in MantisBT (CVE-2025-47776) was discovered affecting versions up to 2.27.1, disclosed on November 1, 2025. The vulnerability stems from an authentication bypass issue due to PHP type juggling, specifically in instances configured to use the MD5 login method. The flaw exists due to an incorrect use of loose comparison () instead of strict comparison (=) in the authentication code (GitHub Advisory).

Technical details

The vulnerability occurs due to PHP type juggling in the authentication mechanism where certain MD5 hashes are interpreted as numbers in scientific notation. The issue specifically affects the authdoespasswordmatch function in core/authenticationapi.php, where a loose comparison operator () was used instead of the strict comparison operator (=). This allows for type juggling vulnerabilities when comparing password hashes, particularly affecting hashes that match the regex pattern ^0+[Ee][0-9]+$ (GitHub Commit, Miggo).

Impact

The vulnerability allows an attacker who knows a victim's username to bypass authentication for accounts with password hashes that evaluate to zero. This can be achieved without knowledge of the actual password by using any password that produces a hash evaluating to zero. The attack bypasses the maximum failed login count protection ($gmaxfailedlogincount) as no password bruteforcing is required (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in MantisBT version 2.27.2. For systems that cannot immediately update, a workaround is available by checking the database for vulnerable accounts and changing their passwords. For MySQL databases, administrators can identify vulnerable accounts using the query: SELECT username, email FROM mantisusertable WHERE password REGEXP '^0+[Ee][0-9]+$' (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-2025-65854CRITICAL9.8
  • PHPPHP
  • mineadmin/mineadmin
NoNoDec 12, 2025
CVE-2024-58303HIGH8.6
  • PHPPHP
  • fof/pretty-mail
NoNoDec 11, 2025
CVE-2025-67719HIGH8.5
  • PHPPHP
  • ibexa/user
NoYesDec 11, 2025
CVE-2025-67648HIGH7.1
  • PHPPHP
  • shopware/shopware
NoYesDec 11, 2025
CVE-2025-67737LOW3.1
  • PHPPHP
  • azuracast/azuracast
NoYesDec 12, 2025

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