CVE-2025-55193: Activerecord Active Record Logging Vulnerable To Vulnerability
MODERATECVE-2025-55193 is a MODERATE active record logging vulnerable to vulnerability (CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences) affecting Activerecord libraries in the RubyGems ecosystem. The issue involves active record logging vulnerable to ansi escape injection. Remediation is available by upgrading affected packages to version 8.0.2.1, 7.2.2.2, 7.1.5.2.
CVE-2025-55193 at a Glance
How to Fix CVE-2025-55193
To remediate this vulnerability, upgrade all affected Activerecord dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade activerecord to 8.0.2.1
Upgrade activerecord to 7.2.2.2
Upgrade activerecord to 7.1.5.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for activerecord
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-55193, inspect your project dependencies for Activerecord:
inspect dependencies for activerecord
Analyze the terminal output to locate any version of Activerecord in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.2.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences, where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component. In Activerecord, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-55193 Affected Activerecord Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
activerecord
|
RubyGems |
≥ 8.0
< 8.0.2.1
|
8.0.2.1
|
|
activerecord
|
RubyGems |
≥ 7.2
< 7.2.2.2
|
7.2.2.2
|
|
activerecord
|
RubyGems |
< 7.1.5.2
|
7.1.5.2
|
References
Frequently Asked Questions
What is CVE-2025-55193?
Which Activerecord versions are affected?
What version fixes CVE-2025-55193?
Is activerecord affected?
What CWE is associated with CVE-2025-55193?
How can I check RubyGems dependencies for CVE-2025-55193?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-76r7-hhxj-r776",
"modified" : "2025-08-21T21:36:39Z",
"published" : "2025-08-13T22:32:18Z",
"aliases" : [ "CVE-2025-55193" ],
"summary" : "Active Record logging vulnerable to ANSI escape injection",
"details" : "This vulnerability has been assigned the CVE identifier CVE-2025-55193\n\n### Impact\nThe 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.\n\n### Releases\nThe fixed releases are available at the normal locations.\n\n### Credits\n\nThanks to [lio346](https://hackerone.com/lio346) from Unit 515 of OPSWAT for reporting this vulnerability",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0"
}, {
"fixed" : "8.0.2.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.2"
}, {
"fixed" : "7.2.2.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.1.5.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rails/rails/security/advisories/GHSA-76r7-hhxj-r776"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-55193"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/3beef20013736fd52c5dcfdf061f7999ba318290"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/568c0bc2f1e74c65d150a84b89a080949bf9eb9b"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/6a944ca4805e72050a0fbb1a461534eb760d3202"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2025-55193.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-150" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-13T22:32:18Z",
"nvd_published_at" : "2025-08-13T23:15:26Z"
}
}