Unescaped ANSI Sequences Vulnerability in Active Record by Rails
CVE-2025-55193
2.7LOW
What is CVE-2025-55193?
Active Record, a component of Rails that links classes to relational database tables, has a vulnerability that affects its logging mechanism. Prior to the releases of versions 7.1.5.2, 7.2.2.2, and 8.0.2.1, the ID passed to methods such as find may be recorded without proper escaping. This logging could inadvertently include unescaped ANSI sequences if directed to a terminal, potentially leading to unexpected behavior or information exposure. Users are advised to upgrade to the patched versions to mitigate this risk.
Affected Version(s)
rails >= 0, < 7.1.5.2 < 0, 7.1.5.2
rails >= 7.2, < 7.2.2.2 < 7.2, 7.2.2.2
rails >= 8.0, < 8.0.2.1 < 8.0, 8.0.2.1