Pheditor: Authentication Bypass in Forced Password-Change Flow via Unverified Current Password
Critical severity. Published 24 July 2026. Update pheditor/pheditor to 2.0.8 or later: composer update pheditor/pheditor.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| pheditor/pheditor (opens in a new tab) | < 2.0.8 | 2.0.8 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show pheditor/pheditor
composer auditAdvisory details
| Severity | CriticalCVSS 10 |
|---|---|
| Published | |
| Updated | |
| GHSA | GHSA-f25v-x6vr-962g (opens in a new tab) |
| Weakness | CWE-1392 |
What the advisory says
Summary
The forced password-change flow, triggered when the stored password is still the default (admin), does not verify that the password submitted by the client actually matches the current password. Any non-empty value in pheditorpassword is enough to reach the password-change form, and submitting pheditornewpassword / pheditorconfirmpassword in the same request is enough to set an arbitrary new password and obtain an authenticated session — without ever proving knowledge of the current password.
Root Cause
pheditor.php line 163:
This checks whether the stored PASSWORD constant is still the default value. It does not check whether the submitted pheditorpassword matches it.
Source: GHSA-f25v-x6vr-962g (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- Pheditor: Terminal command-allowlist bypass via argument injection leads to RCE — surviving vector after the metacharacter-sanitization fixes (high, 24 July 2026)
- Pheditor: Incomplete command sanitization in terminal feature allows RCE via pipe operator, backtick substitution, and newline injection (high, 16 July 2026)
- Pheditor: Hardcoded default password 'admin' with no forced change enables full application compromise (critical, 16 July 2026)
- Pheditor has an authenticated terminal command whitelist bypass (high, 16 July 2026)