Vulnerability · Published Aug 13, 2025 · Assigned by GitHub_M
CVE-2025-55193Active Record logging vulnerable to ANSI escape injection
Low 2.7
In plain English
A low-severity security flaw in rails from rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:6.1.7.10+dfsg-1~deb12u2 | DSA-6090-1 |
| Debian:12 | rails | 2:6.1.7.10+dfsg-1~deb12u2 | DEBIAN-CVE-2025-55193 |
| Debian:13 | rails | 2:7.2.2.2+dfsg-2~deb13u1 | DEBIAN-CVE-2025-55193 |
| Debian:13 | rails | 2:7.2.2.2+dfsg-2~deb13u1 | DSA-6090-1 |
| Debian:14 | rails | 2:7.2.2.2+dfsg-1 | DEBIAN-CVE-2025-55193 |
| RubyGems | activerecord | 7.1.5.2 | GHSA-76r7-hhxj-r776 |
| RubyGems | activerecord | 8.0.2.1 | GHSA-76r7-hhxj-r776 |
| RubyGems | activerecord | 7.2.2.2 | GHSA-76r7-hhxj-r776 |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2025-55193 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2025-55193 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2025-55193 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2025-55193 |
Affected products (as reported)
Weakness: CWE-150 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N/E:U
References
- https://github.com/rails/rails/security/advisories/GHSA-76r7-hhxj-r776 x_refsource_CONFIRM
- https://github.com/rails/rails/commit/3beef20013736fd52c5dcfdf061f7999ba318290 x_refsource_MISC
- https://github.com/rails/rails/commit/568c0bc2f1e74c65d150a84b89a080949bf9eb9b x_refsource_MISC
- https://github.com/rails/rails/commit/6a944ca4805e72050a0fbb1a461534eb760d3202 x_refsource_MISC