All vulnerabilities

Servers and applications

GHSA-fhgv-f82r-jm2p

Read-only user managers can read not-yet-hashed account passwords

Severity
High
Published
25 Nov 2026
Last changed
25 Nov 2026
Added to UpHeron
25 Nov 2026
Fixed in
2.2.35
Weakness
CWE-212Insufficiently protected credentials (CWE-522)
Sources
Project advisories (GitHub)

Description

Grav removes account secrets (the password hash, 2FA secrets and pending reset tokens) from the account data it returns, but the plain-text password field is not on that list. An account that holds only api.access and admin.users.read can read the plain-text password of any account whose YAML file still has a hand-written password: line that has not been replaced by a hash yet, and sign in as that account, a super admin included. This is a gap left by the fix for GHSA-4qvf-3fr5-mpq8. It only applies to accounts that have not signed in or been saved since the password was written in as text, which is the format the Login plugin's README documents for manual account creation.

GHSA-4qvf-3fr5-mpq8 introduced UserTrait::SECRET_FIELDS, the list of fields that both account classes remove from serialized output and that the Flex user object withholds from form values. The list holds hashed_password, secret, twofa_secret, reset and email_change_cancel_token.

From getgrav/grav's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
GravServers and applications · github:getgrav/grav
  • From 2.0.0 before 2.2.35

About Grav

free software content management system written in PHP

From Wikidata, CC0 1.0.
Monthly downloads (Packagist)
1,832Packagist, 22 Nov 2026
Total downloads (Packagist)
93,086Packagist, 22 Nov 2026
GitHub stars
15,733GitHub, 22 Nov 2026
Forks
1,428GitHub, 22 Nov 2026
Latest release
2.2.32GitHub, 22 Nov 2026
Released
20 Nov 2026GitHub
License
MIT LicenseWikidata
Written in
PHPWikidata
First published on GitHub
2 Aug 2014GitHub

References