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

Published Aug 13, 2025
·
Updated

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.

Other sources

Active Record logging vulnerable to ANSI escape injection

— Microsoft

This vulnerability has been assigned the CVE identifier CVE-2025-55193

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

Releases The fixed releases are available at the normal locations.

Credits

Thanks to lio346 from Unit 515 of OPSWAT for reporting this vulnerability

— GitHub

Affected Software

17 affected componentsFixes available
Active Record Active Record<7.1.5.2, <7.2.2.2, <8.0.2.1
rubygems/activerecord>=0<7.1.5.2
7.1.5.2
rubygems/activerecord>=7.2<7.2.2.2
7.2.2.2
rubygems/activerecord>=8.0<8.0.2.1
8.0.2.1
IBM Aspera Faspex 5<=5.0.0 - 5.0.13.1
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
debian/rails<2:6.1.7.10+dfsg-1~deb12u2
2:6.1.7.10+dfsg-1~deb12u2
debian/rails<2:7.2.2.2+dfsg-2~deb13u1
2:7.2.2.2+dfsg-2~deb13u1
debian/rails<2:7.2.2.2+dfsg-1
2:7.2.2.2+dfsg-1
debian/rails
2:6.0.3.7+dfsg-2+deb11u42:6.1.7.10+dfsg-1~deb12u22:7.2.2.2+dfsg-2~deb13u12:7.2.2.2+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/activerecord to a version that resolves this vulnerability.

    Fixed in 7.1.5.2
  2. Upgrade

    Upgrade rubygems/activerecord to a version that resolves this vulnerability.

    Fixed in 7.2.2.2
  3. Upgrade

    Upgrade rubygems/activerecord to a version that resolves this vulnerability.

    Fixed in 8.0.2.1
  4. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.1.7.10+dfsg-1~deb12u2
  5. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:7.2.2.2+dfsg-2~deb13u1
  6. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:7.2.2.2+dfsg-1
  7. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.0.3.7+dfsg-2+deb11u4Fixed in 2:6.1.7.10+dfsg-1~deb12u2Fixed in 2:7.2.2.2+dfsg-2~deb13u1Fixed in 2:7.2.2.2+dfsg-1
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.1.5.2
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.2.2.2
  10. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.0.2.1

Event History

Aug 13, 2025
Advisory Published
via GitHub·10:32 PM
Data Sourced
via GitHub·10:32 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·10:41 PM
Data Sourced
via MITRE·10:41 PM
DescriptionWeakness
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness
Aug 21, 2025
Updated
via GitHub·09:36 PM
Description
Oct 8, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 17, 2026
Data Sourced
via Microsoft·06:31 AM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-55193?

CVE-2025-55193 is classified as a medium severity vulnerability due to potential information exposure through unescaped ANSI sequences.

2

How do I fix CVE-2025-55193?

To fix CVE-2025-55193, upgrade Active Record to version 7.1.5.2, 7.2.2.2, or 8.0.2.1 or later.

3

What versions of Active Record are affected by CVE-2025-55193?

CVE-2025-55193 affects Active Record versions prior to 7.1.5.2, 7.2.2.2, and 8.0.2.1.

4

What is the nature of the vulnerability in CVE-2025-55193?

CVE-2025-55193 involves logging IDs without escaping them, potentially leading to the exposure of unescaped ANSI sequences.

5

Can CVE-2025-55193 lead to data leakage?

Yes, CVE-2025-55193 can lead to data leakage as it may log sensitive information in an unescaped format.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203