Intel

AIKIDO-2026-617353

activerecord is vulnerable to Information Disclosure

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 3, 2026
November 3, 2026

43

CVE Score

Medium

Information Disclosure

Are you affected? Scan for Free

TL;DR

Rails database rake tasks for MySQL-compatible adapters build the underlying database CLI command from the connection configuration, including the --password argument. When a task such as db:create or db:drop fails, ActiveRecord raises an error containing that full command in plain text, exposing the database password. Anyone who can read that failure output or the logs it is written to, such as CI build logs, recovers the password. The fix centralizes the command-argument construction in abstract_tasks.rb and filters the password out before the failure message is built.

How do I fix this?

Upgrade the activerecord 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 a MySQL-compatible database rake task such as db:create or db:drop fails and its error output is captured somewhere other parties can read, such as CI logs.

Versions

8.1.0 - 8.1.3.1

Fixed in 8.1.4

Background info

activerecord is vulnerable to Information Disclosure in versions 8.1.0 - 8.1.3.1.

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