Advisory

GHSA-frp2-5qfc-7r8m

Also known as: CVE-2024-43791

Summary

request_store has Incorrect Default Permissions

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-08-23 18:54 UTC
Modified
2024-08-26 14:12 UTC

Affected packages and fixes

request_store

RubyGems · All systems

Affected

  • introduced 1.3.2, fixed 1.4.0 (ecosystem)

Fixed versions

1.4.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences