CVE-2024-43791
RequestStore has Incorrect Default Permissions
RequestStore provides per-request global storage for Rack. 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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.8
RequestStore has Incorrect Default Permissions
RequestStore provides per-request global storage for Rack. 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.
- Record
CVE-2024-43791- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-276
- Updated
- 2026-11-02
EUVDEUVD-2024-2578
7.8
RequestStore provides per-request global storage for Rack. 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.
- Record
EUVD-2024-2578- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-frp2-5qfc-7r8m
5.9
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
- Record
GHSA-frp2-5qfc-7r8m- CVSS 4.0
- 5.9 Medium
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 - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-276
- Updated
- 2026-11-02
NVD
7.8
RequestStore provides per-request global storage for Rack. 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.
- Record
CVE-2024-43791- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-276
- Updated
- 2026-11-02
OSV
7.8
RequestStore has Incorrect Default Permissions
RequestStore provides per-request global storage for Rack. 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.
- Record
CVE-2024-43791- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-276
- Updated
- 2026-11-02
OSVGHSA-frp2-5qfc-7r8m
5.9
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
- Record
GHSA-frp2-5qfc-7r8m- CVSS 4.0
- 5.9 Medium
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 - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-276
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-43791
7.8
RequestStore provides per-request global storage for Rack. 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.
- Record
UBUNTU-CVE-2024-43791- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
request_storeRubyGems |
1.3.2 to 1.3.2 | 1.4.0 |
request_storeRubyGems |
1.3.2 up to 1.4.0 | 1.4.0 |
ruby-request-storeUbuntu:16.04:LTS |
All versions, plus listed versions 1.1.0-11.3.0-1 |
None known |
ruby-request-storeUbuntu:18.04:LTS |
All versions, plus listed versions 1.3.0-1 |
None known |
ruby-request-storeUbuntu:20.04:LTS |
All versions, plus listed versions 1.3.0-11.5.0-2 |
None known |
ruby-request-storeUbuntu:22.04:LTS |
All versions, plus listed versions 1.5.0-2 |
None known |
ruby-request-storeUbuntu:24.04:LTS |
All versions, plus listed versions 1.5.1-1 |
None known |
ruby-request-storeUbuntu:25.10 |
All versions, plus listed versions 1.5.1-1 |
None known |
ruby-request-storeUbuntu:26.10 |
All versions, plus listed versions 1.5.1-1 |
None known |
ruby-request-storeUbuntu:26.04:LTS |
All versions, plus listed versions 1.5.1-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-43791 is a high vulnerability (CVSS 7.8) in Steveklabnik Request Store, published August 23, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.19%, the 9th percentile. Fixed in request_store 1.4.0.
References
github.com/steveklabnik/request_store/security/advisories/GHSA-frp2-5qfc-7r8m
nvd.nist.gov/vuln/detail/CVE-2024-43791
github.com/rubysec/ruby-advisory-db/blob/master/gems/request_store/CVE-2024-43791.yml
github.com/advisories/GHSA-frp2-5qfc-7r8m
github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43791.json
github.com/steveklabnik/request_store
ubuntu.com/security/CVE-2024-43791
cve.org/CVERecord?id=CVE-2024-43791