Vulnerabilities in pkg:gem/request_store
PACKAGECVE-2024-43791 is a MODERATE (CVSS 7.8) request_store has incorrect default permissions vulnerability (CWE-276: Incorrect Default Permissions) affecting Request store libraries in the RubyGems ecosystem. The issue involves request_store has incorrect default permissions. Remediation is available by upgrading affected packages to version 1.4.0.
pkg:gem/request_store
Vulnerability advisories affecting package pkg:gem/request_store. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-frp2-5qfc-7r8m | CVE-2024-43791 | MODERATE | request_store has Incorrect Default Permissions |
CVE-2024-43791 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-43791
To remediate this vulnerability, upgrade all affected Request store 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 request_store to 1.4.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for request_store
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-43791, inspect your project dependencies for Request store:
inspect dependencies for request_store
Analyze the terminal output to locate any version of Request store in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.0), 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-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Request store, 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-2024-43791 Affected Request store Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
request_store
|
RubyGems |
≥ 1.3.2
< 1.4.0
All 1 versions
1.3.2
|
1.4.0
|
References
Frequently Asked Questions
What is CVE-2024-43791?
Which Request store versions are affected?
What version fixes CVE-2024-43791?
Is request_store affected?
What is the CVSS score of CVE-2024-43791?
What CWE is associated with CVE-2024-43791?
How can I check RubyGems dependencies for CVE-2024-43791?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-frp2-5qfc-7r8m",
"modified" : "2024-08-26T14:12:40Z",
"published" : "2024-08-23T18:54:26Z",
"aliases" : [ "CVE-2024-43791" ],
"summary" : "request_store has Incorrect Default Permissions",
"details" : "### Impact\n\nThe files published as part of request_store 1.3.2 have 0666 permissions, meaning that they are world-writable, which allows local users to execute arbitrary code.\n\nThis version was published in 2017, and most production environments do not allow access for local users, so the chances of this being exploited are very low, given that the vast majority of users will have upgraded, and those that have not, if any, are not likely to be exposed.\n\n### Patches\n\nI am not aware of any other version of the gem with incorrect permissions, so simply upgrading should fix the issue.\n\n### Workarounds\n\nYou could chmod the files yourself, I guess.\n\n### References\n\nhttps://cwe.mitre.org/data/definitions/276.html",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "request_store"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.2"
}, {
"fixed" : "1.4.0"
} ]
} ],
"versions" : [ "1.3.2" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/steveklabnik/request_store/security/advisories/GHSA-frp2-5qfc-7r8m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-43791"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/request_store/CVE-2024-43791.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/steveklabnik/request_store"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-276" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-23T18:54:26Z",
"nvd_published_at" : "2024-08-23T15:15:16Z"
}
}