CVE-2025-55193 json
Active Record logging vulnerable to ANSI escape injection
published 2025-08-13 14 mo ago modified 2026-09-10 59 d ago also EUVD-2025-24651 , GHSA-76r7-hhxj-r776
- cvss
- 2.7
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 50%
- public exploits
- 0
- none known
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.
Patch / fix
- rubygems activerecord 7.1.5.2, 7.2.2.2, 8.0.2.1
- activerecord_project activerecord 7.1.5.2, 7.2.2.2, 8.0.2.1
- rails Debian 12 2:6.1.7.10+dfsg-1~deb12u2
- rails Debian 13 2:7.2.2.2+dfsg-2~deb13u1
- rails Debian 14 2:7.2.2.2+dfsg-1
debian advisories DEBIAN-CVE-2025-55193
- hawk2 SLE High Availability Extension 16.0, SLES for SAP applications 16.0 2.7.0+git.1742310530.bfcd0e2c-160000.3.1
suse advisories SUSE-SU-2026:20091-1SUSE-SU-2026:20093-1
- rubygem-activerecord-8.0 openSUSE Tumbleweed 8.0.3-1.3
- hawk2 openSUSE Leap 16.0 2.7.0+git.1742310530.bfcd0e2c-160000.3.1
- rubygem-activerecord-8.0 openSUSE Tumbleweed 8.0.1-2.1
opensuse advisories openSUSE-SU-2026:10343-1openSUSE-SU-2026:20025-1openSUSE-SU-2025:15479-1
- github.com/rails/rails@3beef20 commit
- github.com/rails/rails@568c0bc commit
- github.com/rails/rails@6a944ca commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-55193 updated cvss 4.3
activerecord: Active Record ANSI Injection Vulnerability
-
Red Hat 3scale API Management Platform 2 3scale-amp2/zync-rhel8, 3scale-amp2/zync-rhel9affected: workaround, no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 14 mo ago
Exploit prediction
0.64% chance of exploitation in the next 30 days, higher than 50% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.7 | 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 |
| CNA | 4.0 | 2.7 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | activerecord | >=8.0, <8.0.2.1 >=7.2, <7.2.2.2 <7.1.5.2 |
8.0.2.1 7.2.2.2 7.1.5.2 |
Affected products
- rails rails
Classification
- Weakness
-
- CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
- Technology feeds
References
-
github.com
/rails/rails/commit/3beef20013736fd52c5dcfdf061f7999ba318290
web
-
github.com
/rails/rails/commit/568c0bc2f1e74c65d150a84b89a080949bf9eb9b
web
-
github.com
/rails/rails/commit/6a944ca4805e72050a0fbb1a461534eb760d3202
web
-
github.com
/rails/rails/security/advisories/GHSA-76r7-hhxj-r776
web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-55193
advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2025-55193.yml
web
Sources
- CVE List CVE-2025-55193
- GitHub Advisory GHSA-76r7-hhxj-r776
- NVD CVE-2025-55193
- Maintainer advisory GHSA-76r7-hhxj-r776
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of rails/rails published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.