CVE-2024-32978
Medium · 6.6CVSS
6.6
EPSS
0.6%
Published
May 27, 2024
CISA due date
—
Cloudanix analysis
A common tool that helps show pages of data in web apps had loose file access settings that could let the wrong people change how the app behaves or affect stored information.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- High
- Impact
- Data Tampering
- Component
- Library
- Class
- Misconfiguration
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
Insecure file permissions on specific Ruby files in the Kaminari gem allow unauthorized write access, enabling modification of pagination logic or related application behavior.
Why it matters to the business
Attackers could alter web application behavior or compromise data integrity in Rails apps using this library, leading to reliability issues, potential data tampering, and increased operational risk across dependent systems.
How an attack unfolds
An attacker with local or shared filesystem access locates the installed Kaminari gem, identifies Ruby files with overly permissive permissions, and directly edits them to inject malicious code or change pagination behavior.
How to fix it
Upgrade Kaminari to version 0.16.2 or later. If immediate upgrade is not possible, review and restrict file permissions on affected Ruby files to ensure only authorized users can write.
How to confirm the fix worked
Confirm installed version is 0.16.2 or higher via gem list or bundler output; verify file permissions on Kaminari Ruby files are set to restrictive modes such as 644 or owner-write-only.
Typical attack path
- Locate Kaminari gem installation directory on the target system
- Identify Ruby source files with insecure permissions
- Modify file contents to alter library behavior or inject payloads
- Trigger application code paths that invoke the modified pagination logic
How to detect it
Review system and application logs for unexpected modifications to files within Kaminari gem directories; inspect file permission settings on library installations and look for evidence of unauthorized edits to Ruby source files.
What your security team should do
- Prioritize upgrade to Kaminari 0.16.2 or later across all Rails applications
- Audit gem installations for correct file permissions and remediate any overly permissive settings
- Implement monitoring for unexpected changes to library files in production environments
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| RubyGems | kaminari | 0.15.0 | 0.16.2 |
| Ubuntu:16.04:LTS | ruby-kaminari | 0 | No fix |
| Ubuntu:18.04:LTS | ruby-kaminari | 0 | No fix |
| Ubuntu:20.04:LTS | ruby-kaminari | 0 | No fix |
| Ubuntu:22.04:LTS | ruby-kaminari | 0 | No fix |
| Ubuntu:24.04:LTS | ruby-kaminari | 0 | No fix |
| Ubuntu:24.10 | ruby-kaminari | 0 | No fix |
| Ubuntu:25.04 | ruby-kaminari | 0 | No fix |
| Ubuntu:25.10 | ruby-kaminari | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ruby-kaminari | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ruby-kaminari | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | ruby-kaminari | 0 | No fix |
| gem | kaminari | 0.15.0 | 0.16.2 |
Related vulnerabilities
- CVE-2026-11813 A potential improper permissions vulnerability was reported in the Lenovo Filez Client… CWE-276
- CVE-2026-52766 YesWiki is a wiki system written in PHP. CWE-276
- CVE-2026-77393 In Ignition 8.1.53 and earlier, the Gateway "Create Project Role(s)" setting shipped… CWE-276
- CVE-2026-75166 Insecure Permission vulnerability in MBS-Solutions X-Serie Gateway firmware V6_00_05… CWE-276
- CVE-2026-81302 PALLET CONTROL products contain an incorrect default permission vulnerability, which may… CWE-276
- CVE-2026-9634 A security issue exists within the Redundancy Module Configuration Tool. CWE-276
- CVE-2026-9633 A security issue exists within the Redundancy Module Configuration Tool. CWE-276
- CVE-2026-69665 SKYSEA Client View and SKYMEC IT Manager contain an issue with incorrect default… CWE-276