CVE-2023-41646: Buttercup Buttercup Allows Attackers To Obtain Vulnerability
MODERATECVE-2023-41646 is a MODERATE (CVSS 5.3) buttercup allows attackers to obtain vulnerability (CWE-916: Use of Password Hash With Insufficient Computational Effort) affecting Buttercup libraries in the npm ecosystem. The issue involves buttercup allows attackers to obtain the hash of the master password. Remediation is available by upgrading affected packages to version 7.4.0.
CVE-2023-41646 at a Glance
Security Impact
CVSS: 5.3
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:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2023-41646
To remediate this vulnerability, upgrade all affected Buttercup dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install buttercup@7.4.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls buttercup
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-41646, inspect your project dependencies using npm:
npm ls buttercup
Analyze the terminal output to locate any version of Buttercup in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.4.0), your application is affected.
Note: The npm ls buttercup command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-916: Use of Password Hash With Insufficient Computational Effort, where the product generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive. In Buttercup, 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-2023-41646 Affected Buttercup Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
buttercup
|
npm |
≥ 2.20.3
< 7.4.0
|
7.4.0
|
References
Frequently Asked Questions
What is CVE-2023-41646?
Which Buttercup versions are affected?
What version fixes CVE-2023-41646?
Is buttercup affected?
What is the CVSS score of CVE-2023-41646?
What CWE is associated with CVE-2023-41646?
How can I check npm dependencies for CVE-2023-41646?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7cwq-p8cr-h9qg",
"modified" : "2023-12-13T23:22:06Z",
"published" : "2023-09-08T00:31:02Z",
"aliases" : [ "CVE-2023-41646" ],
"summary" : "Buttercup allows attackers to obtain the hash of the master password",
"details" : "Buttercup allows attackers to obtain the hash of the master password for the password manager via accessing the file /vaults.json/.\n\nThis affects the Buttercup app up to version 2.20.3.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "buttercup"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.20.3"
}, {
"fixed" : "7.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-41646"
}, {
"type" : "WEB",
"url" : "https://github.com/buttercup/buttercup-core/issues/336"
}, {
"type" : "WEB",
"url" : "https://github.com/buttercup/buttercup-core/commit/77fbcdfe4caf57486a3c83c07fc6d36bb0e1d3e1"
}, {
"type" : "WEB",
"url" : "https://buttercup.pw"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/buttercup/buttercup-core"
}, {
"type" : "WEB",
"url" : "https://github.com/tristao-marinho/CVE-2023-41646"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-916" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-13T23:22:06Z",
"nvd_published_at" : "2023-09-07T22:15:07Z"
}
}