CVE-2024-32978 Kaminari Insecure File Permissions Vulnerability
Insecure file permissions in the Kaminari Ruby library allow unauthorized users to modify Ruby files, potentially altering application behavior or executing code.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-32978?
CVE-2024-32978 is a medium-severity vulnerability in kaminari, published on 27 May 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
Kaminari is a paginator for web app frameworks and object relational mappings. A security vulnerability involving insecure file permissions has been identified in the Kaminari pagination library for Ruby on Rails, concerning insecure file permissions. This vulnerability is of moderate severity due to the potential for unauthorized write access to particular Ruby files managed by the library. Such access could lead to the alteration of application behavior or data integrity issues. Users of affected versions are advised to update to Kaminari version 0.16.2 or later, where file permissions have been adjusted to enhance security. If upgrading is not feasible immediately, review and adjust the file permissions for particular Ruby files in Kaminari to ensure they are only accessible by authorized user.
Weakness: CWE-276
Which versions are affected by CVE-2024-32978?
2 open source packages ship an affected version, including kaminari.
| Package | Affected | Fixed in |
|---|---|---|
kaminari RubyGems | From 0.15.0 | 0.16.2 |
kaminari RubyGems | From 0.15.0 | 0.16.2 |
How do I fix CVE-2024-32978?
Upgrade kaminari to 0.16.2 or later.
Is CVE-2024-32978 being exploited?
There is no known exploitation of CVE-2024-32978 in the wild and no public exploit code.
Sources
Also known as GHSA-7r3j-qmr4-jfpj, UBUNTU-CVE-2024-32978.