activerecord is vulnerable to Information Disclosure
43
CVE Score
Medium
Information Disclosure
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.
Upgrade the activerecord library to the patch version.
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.
8.1.0 - 8.1.3.1
Fixed in 8.1.4activerecord is vulnerable to Information Disclosure in versions 8.1.0 - 8.1.3.1.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.