Skip to main content

CVE-2024-43791 — Vulnerability in request_store — CVE Details

MEDIUM

request_store has Incorrect Default Permissions

Published August 23, 2024Updated August 26, 2024Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.28%). Schedule for your next planned update.

Does your project use an affected request_store version?

Paste your Gemfile.lock to check it for CVE-2024-43791 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Gemfile.lock

Summary

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

Advisory Timeline

  • First published August 23, 2024 (825 days ago).
  • Last revised August 26, 2024 — 3 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update request_store to 1.4.0 or later
gem install request_store -v 1.4.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: RubyGems (1).

PackageFixed In
request_store RubyGems · Affected: 1.3.21.4.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-276
    Incorrect Default PermissionsMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.8 score means for each attack dimension.

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2024-43791?
request_store has Incorrect Default Permissions. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 7.8/10).
How do I check if my project is affected by CVE-2024-43791?
CVE-2024-43791 affects request_store. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-43791 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.28%
EPSS percentile: 13.2

This is a below-median EPSS score — only 13.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-frp2-5qfc-7r8m

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock