CVE-2022-37783 Craft CMS discloses password hashes
Craft CMS leaks user password hashes in CSRF tokens, allowing attackers to potentially recover credentials from authenticated sessions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-37783?
CVE-2022-37783 is a high-severity vulnerability in Craftcms Craft Cms, published on 5 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All Craft CMS versions between 3.0.0 and 3.7.32 disclose password hashes of users who authenticate using their E-Mail address or username in Anti-CSRF-Tokens. Craft CMS uses a cookie called CRAFT_CSRF_TOKEN and a HTML hidden field called CRAFT_CSRF_TOKEN to avoid Cross Site Request Forgery attacks. The CRAFT_CSRF_TOKEN cookie discloses the password hash in without encoding it whereas the corresponding HTML hidden field discloses the users' password hash in a masked manner, which can be decoded by using public functions of the YII framework.
Weakness: CWE-522
Which versions are affected by CVE-2022-37783?
2 open source packages ship an affected version, including craftcms/cms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
craftcms/cms Packagist | From 3.0.0 | 3.7.33 |
craftcms/cms Packagist | From 3.0.0 | 3.7.33 |
Products include Craftcms Craft Cms.
How do I fix CVE-2022-37783?
Upgrade craftcms/cms to 3.7.33 or later.
Is CVE-2022-37783 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-37783 exists.
Other vulnerabilities in Craftcms Craft Cms
Sources
Also known as GHSA-h972-v458-m892.