{"id":"CVE-2025-55193","published":"2025-08-13T22:41:41Z","modified":"2025-08-14T14:51:11Z","title":"Active Record logging vulnerable to ANSI escape injection","vendor":"rails","product":"rails","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.7,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01122,"percentile":0.65865,"provenance":"source"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-76r7-hhxj-r776","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails/commit/3beef20013736fd52c5dcfdf061f7999ba318290","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/568c0bc2f1e74c65d150a84b89a080949bf9eb9b","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/6a944ca4805e72050a0fbb1a461534eb760d3202","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":13.17},{"name":"CVSS severity","points":1.89}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"rails","product":"rails","versions":[">= 0, < 7.1.5.2",">= 7.2, < 7.2.2.2",">= 8.0, < 8.0.2.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-08-14T13:42:07.857418Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"activerecord","vulnerableRanges":[">=8.0, <8.0.2.1",">=7.2, <7.2.2.2","<7.1.5.2"],"patched":["8.0.2.1","7.2.2.2","7.1.5.2"],"from":["GHSA-76r7-hhxj-r776"],"provenance":"source"}],"summary":{"text":"The flaw is in Active Record, the Rails component that maps classes to relational database tables, where the ID passed to find or similar methods can be logged without escaping. An attacker who can supply that ID over the network, without authentication or user interaction, can inject ANSI escape sequences into the log output, which may execute unescaped if the logs are written directly to a terminal.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:57Z"},"euvd":{"id":"EUVD-2025-24651","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rails-cve-2022-32224","parents":[{"from":"CVE-2022-44566","to":"CVE-2025-55193","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["activerecord/lib/active_record/core.rb"],"commits":["https://github.com/rails/rails/commit/4f44aa9d514e701ada92b5cf08beccf566eeaebf","https://github.com/rails/rails/commit/82bcdc011e2ff674e7dd8fd8cee3a831c908d29b","https://github.com/rails/rails/commit/3beef20013736fd52c5dcfdf061f7999ba318290","https://github.com/rails/rails/commit/568c0bc2f1e74c65d150a84b89a080949bf9eb9b"],"basis":"rarely changed file"}]}]}}