Active Record logging vulnerable to ANSI escape injection
rails
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| activerecord RubyGems |
|
|
Original description
Active Record connects classes to relational database tables. Prior to versions 7.1.5.2, 7.2.2.2, and 8.0.2.1, the ID passed to find or similar methods may be logged without escaping. If this is directly to the terminal it may include unescaped ANSI sequences. This issue has been patched in versions 7.1.5.2, 7.2.2.2, and 8.0.2.1.