CVE-2025-55193: Active Record logging vulnerable to ANSI escape injection
This vulnerability has been assigned the CVE identifier CVE-2025-55193 Impact 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. Releases The fixed releases are available at the normal locations. Credits Thanks to lio346 from Unit 515 of OPSWAT for reporting this vulnerability
Published Aug 13, 2025 · Updated Aug 21, 2025
Affected packages
activerecord
- Ecosystem
- RubyGems
- Affected
- >= 8.0, < 8.0.2.1
- Fixed in
- 8.0.2.1
- Check
bundle info activerecord
activerecord
- Ecosystem
- RubyGems
- Affected
- >= 7.2, < 7.2.2.2
- Fixed in
- 7.2.2.2
- Check
bundle info activerecord
activerecord
- Ecosystem
- RubyGems
- Affected
- >= 0, < 7.1.5.2
- Fixed in
- 7.1.5.2
- Check
bundle info activerecord
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
This vulnerability has been assigned the CVE identifier CVE-2025-55193
Impact
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.
Releases
The fixed releases are available at the normal locations.
Credits
Thanks to lio346 from Unit 515 of OPSWAT for reporting this vulnerability
Credited to th4s1s.
References
- https://github.com/rails/rails/security/advisories/GHSA-76r7-hhxj-r776
- https://github.com/rails/rails/commit/3beef20013736fd52c5dcfdf061f7999ba318290
- https://github.com/rails/rails/commit/568c0bc2f1e74c65d150a84b89a080949bf9eb9b
- https://github.com/rails/rails/commit/6a944ca4805e72050a0fbb1a461534eb760d3202
- https://nvd.nist.gov/vuln/detail/CVE-2025-55193
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2025-55193.yml
- https://github.com/advisories/GHSA-76r7-hhxj-r776
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
