CVE-2022-24784: Statamic/cms Discoverability Of User Password Hash Vulnerability
LOWCVE-2022-24784 is a LOW (CVSS 3.7) discoverability of user password hash vulnerability (CWE-203: Observable Discrepancy) affecting Statamic/cms libraries in the Packagist ecosystem. The issue involves discoverability of user password hash in statamic cms. Remediation is available by upgrading affected packages to version 3.2.39, 3.3.2.
CVE-2022-24784 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2022-24784
To remediate this vulnerability, upgrade all affected Statamic/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 statamic/cms to 3.2.39
Upgrade statamic/cms to 3.3.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for statamic/cms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-24784, inspect your project dependencies for Statamic/cms:
inspect dependencies for statamic/cms
Analyze the terminal output to locate any version of Statamic/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.39), 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-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In Statamic/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-24784 Affected Statamic/cms Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
statamic/cms
|
Packagist |
< 3.2.39
|
3.2.39
|
|
statamic/cms
|
Packagist |
≥ 3.3.0
< 3.3.2
|
3.3.2
|
References
Frequently Asked Questions
What is CVE-2022-24784?
Which Statamic/cms versions are affected?
What version fixes CVE-2022-24784?
Is statamic/cms affected?
What is the CVSS score of CVE-2022-24784?
What CWE is associated with CVE-2022-24784?
How can I check Packagist dependencies for CVE-2022-24784?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qcgx-7p5f-hxvr",
"modified" : "2022-03-29T22:11:45Z",
"published" : "2022-03-29T22:11:45Z",
"aliases" : [ "CVE-2022-24784" ],
"summary" : "Discoverability of user password hash in Statamic CMS",
"details" : "## Description\n\nIt was possible to confirm a single character of a user's password hash (just the hash, not the password) using a specially crafted regular expression filter in the users endpoint of the REST API. Many requests could eventually uncover the entire hash.\n\nThe hash would not be in the response, however the presence or absence of a result would confirm if the character was in the right position. It would take a long time since the API has throttling enabled by default.\n\nAdditionally, the REST API would need to be enabled, as well as the users endpoint. Both of which are disabled by default.\n\n## Resolution\n\nFiltering by password or password hash has been disabled.\n\n## Credits\n\nWe would like to thank Thibaud Kehler for reporting the issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "statamic/cms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.2.39"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "statamic/cms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.3.0"
}, {
"fixed" : "3.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/statamic/cms/security/advisories/GHSA-qcgx-7p5f-hxvr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24784"
}, {
"type" : "WEB",
"url" : "https://github.com/statamic/cms/issues/5604"
}, {
"type" : "WEB",
"url" : "https://github.com/statamic/cms/pull/5568"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/statamic/cms"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-203", "CWE-326" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2022-03-29T22:11:45Z",
"nvd_published_at" : "2022-03-25T22:15:00Z"
}
}