Active Record logging vulnerable to ANSI escape injection
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | rails | before 7.1.5.2; 7.2 to before 7.2.2.2; 8.0 to before 8.0.2.1 | 7.1.5.2, 7.2.2.2, 8.0.2.1 | Patch available | CNA |
| — | activerecord (RubyGems) | 8.0 to before 8.0.2.1 | 8.0.2.1 | Patch available | GHSA-76r7-hhxj-r776 |
| — | activerecord (RubyGems) | 7.2 to before 7.2.2.2 | 7.2.2.2 | Patch available | GHSA-76r7-hhxj-r776 |
| — | activerecord (RubyGems) | before 7.1.5.2 | 7.1.5.2 | Patch available | GHSA-76r7-hhxj-r776 |
- rails VendorRails Affected before 7.1.5.2; 7.2 to before 7.2.2.2; 8.0 to before 8.0.2.1 Fixed in 7.1.5.2, 7.2.2.2, 8.0.2.1 Patch available CNA
- activerecord (RubyGems) Vendor— Affected 8.0 to before 8.0.2.1 Fixed in 8.0.2.1 Patch available GHSA-76r7-hhxj-r776
- activerecord (RubyGems) Vendor— Affected 7.2 to before 7.2.2.2 Fixed in 7.2.2.2 Patch available GHSA-76r7-hhxj-r776
- activerecord (RubyGems) Vendor— Affected before 7.1.5.2 Fixed in 7.1.5.2 Patch available GHSA-76r7-hhxj-r776
Remediation
- Fix · CNA rails (rails) Fixed in 7.1.5.2, 7.2.2.2, 8.0.2.1
- Fix · GHSA-76r7-hhxj-r776 activerecord (RubyGems) Fixed in 8.0.2.1 Advisory →
- Fix · GHSA-76r7-hhxj-r776 activerecord (RubyGems) Fixed in 7.2.2.2 Advisory →
- Fix · GHSA-76r7-hhxj-r776 activerecord (RubyGems) Fixed in 7.1.5.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-55193
- 2026-10-03 Alias added: GHSA-76r7-hhxj-r776
- 2026-11-03 EPSS moved to the 50th–90th percentile
References
Other 6
- 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://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2025-55193.yml
More Rails vulnerabilities
- TI-2014-00124 Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the… KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 Path traversal in Rails https://github.com/rails/rails KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x… KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2026-47043 Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing CVSS 4.0CRITICAL 9.5
- TI-2025-18040 Command injection in Rails activestorage CVSS 4.0CRITICAL 9.2
Sources
- CVE-2025-55193 · CVE Program
- CVE-2025-55193 · NVD
- FIRST EPSS
- GHSA-76r7-hhxj-r776 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-55193 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences