Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1mcnAyLTVxZmMtN3I4bc4AA-6Q
request_store has Incorrect Default Permissions
Impact
The 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.
This 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.
Patches
I am not aware of any other version of the gem with incorrect permissions, so simply upgrading should fix the issue.
Workarounds
You could chmod the files yourself, I guess.
References
https://cwe.mitre.org/data/definitions/276.html
Permalink: https://github.com/advisories/GHSA-frp2-5qfc-7r8mJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mcnAyLTVxZmMtN3I4bc4AA-6Q
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 15 days ago
Updated: 12 days ago
CVSS Score: 7.8
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-frp2-5qfc-7r8m, CVE-2024-43791
References:
- https://github.com/steveklabnik/request_store/security/advisories/GHSA-frp2-5qfc-7r8m
- https://nvd.nist.gov/vuln/detail/CVE-2024-43791
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/request_store/CVE-2024-43791.yml
- https://github.com/advisories/GHSA-frp2-5qfc-7r8m
Blast Radius: 32.9
Affected Packages
rubygems:request_store
Dependent packages: 180Dependent repositories: 16,729
Downloads: 235,790,461 total
Affected Version Ranges: = 1.3.2
Fixed in: 1.4.0
All affected versions: 1.3.2
All unaffected versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0