Intel

AIKIDO-2026-264915

rails_admin is vulnerable to Improper Authorization

GHSA-qm4x-chm3-xppcPublished Oct 8, 2026
October 8, 2026

83

CVE Score

High

Improper Authorization

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.

How do I fix this?

Upgrade the rails_admin library to the patch version.

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.

Versions

0.8.1 - 3.3.0

Fixed in 3.3.1

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea