Intel

AIKIDO-2026-264915

rails_admin is vulnerable to Improper Authorization

Improper AuthorizationGHSA-qm4x-chm3-xppc Published 6 days ago

83

High Risk

This Affects:

RUBYrails_admin
0.8.1 - 3.3.0
Fixed in 3.3.1
Are you affected? Scan for Free

TL;DR

RailsAdmin's Pundit authorization adapter rescues Pundit::NotDefinedError when a model has no policy scope and returns the model's full unscoped relation instead of an empty one. The index, export, and bulk delete actions merge that unscoped relation into the record set they operate on. A user with list, export, or bulk delete permission but no policy scope defined for a model can view, export, or delete every record of that model rather than only the records their policy would allow. The fix returns an empty scope from the rescue instead of the unscoped relation.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the Pundit authorization adapter without a policy scope defined for the affected model.

Background info

rails_admin is vulnerable to Improper Authorization in versions 0.8.1 - 3.3.0.

How to fix this

Upgrade the rails_admin library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform