Description
RuboCop 0.48.1 and earlier does not use /tmp in safe way, allowing local users to exploit this to tamper with cache files belonging to other users.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rubocop | 0.49.1+dfsg-1 | — |
| Debian 13 | rubocop | 0.49.1+dfsg-1 | — |
| Debian 12 | rubocop | 0.49.1+dfsg-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | rubocop | < 0.49.0 | 0.49.0 | GHSA-wmjf-jpjj-9f3j |