CVE-2022-29933: Craftcms/cms Improper Account Password Reset Vulnerability
HIGHCVE-2022-29933 is a HIGH (CVSS 8.8) improper account password reset vulnerability (CWE-640: Weak Password Recovery Mechanism for Forgotten Password) affecting Craftcms/cms libraries in the Packagist ecosystem. The issue involves improper account password reset in craft cms. Remediation is available by upgrading affected packages to version 3.7.36.
CVE-2022-29933 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-29933
To remediate this vulnerability, upgrade all affected Craftcms/cms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade craftcms/cms to 3.7.36
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for craftcms/cms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-29933, inspect your project dependencies for Craftcms/cms:
inspect dependencies for craftcms/cms
Analyze the terminal output to locate any version of Craftcms/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.7.36), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-640: Weak Password Recovery Mechanism for Forgotten Password, where the product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak. In Craftcms/cms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-29933 Affected Craftcms/cms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
craftcms/cms
|
Packagist |
< 3.7.36
|
3.7.36
|
References
Frequently Asked Questions
What is CVE-2022-29933?
Which Craftcms/cms versions are affected?
What version fixes CVE-2022-29933?
Is craftcms/cms affected?
What is the CVSS score of CVE-2022-29933?
What CWE is associated with CVE-2022-29933?
How can I check Packagist dependencies for CVE-2022-29933?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5cjr-78cq-3wrg",
"modified" : "2022-05-25T20:05:42Z",
"published" : "2022-05-10T00:00:17Z",
"aliases" : [ "CVE-2022-29933" ],
"summary" : "Improper account password reset in Craft CMS",
"details" : "Craft CMS through 3.7.36 allows a remote unauthenticated attacker, who knows at least one valid username, to reset the account's password and take over the account by providing a crafted HTTP header to the application while using the password reset functionality. Specifically, the attacker must send X-Forwarded-Host to the /index.php?p=admin/actions/users/send-password-reset-email URI. NOTE: the vendor's position is that a customer can already work around this by adjusting the configuration (i.e., by not using the default configuration).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "craftcms/cms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.7.36"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-29933"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/craftcms/cms"
}, {
"type" : "WEB",
"url" : "https://sec-consult.com/vulnerability-lab"
}, {
"type" : "WEB",
"url" : "https://sec-consult.com/vulnerability-lab/advisory/password-reset-poisoning-attack-craft-cms"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/166989/Craft-CMS-3.7.36-Password-Reset-Poisoning-Attack.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-640" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-05-25T20:05:42Z",
"nvd_published_at" : "2022-05-09T18:15:00Z"
}
}