CVE-2025-55193
JSON

2.7low

Active Record logging vulnerable to ANSI escape injection

Severity
2.7low CVSS:4.0 by GitHub_M
Exploit likelihood
0.69% (higher than 53% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-76r7-hhxj-r776

Description

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.

Affected

Product or packageVersionsReported by
rails rails>= 0, < 7.1.5.2, >= 7.2, < 7.2.2.2, >= 8.0, < 8.0.2.1CVE List
activerecord (RubyGems)from 8.0 before 8.0.2.1, from 7.2 before 7.2.2.2, before 7.1.5.2GitHub Advisory Database

All scores

GitHub_M2.7low CVSS:4.0CVSS: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
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Classification

CWE-150

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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

NVD (es)

Active Record conecta clases con tablas de bases de datos relacionales. En versiones anteriores a la 7.1.5.2, 7.2.2.2 y 8.0.2.1, el ID pasado a métodos "find" o similares podía registrarse sin escape. Si se envía directamente a la terminal, puede incluir secuencias ANSI sin escape. Este problema se ha corregido en las versiones 7.1.5.2, 7.2.2.2 y 8.0.2.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-55193 changed 2025-08-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-76r7-hhxj-r776 changed 2026-09-10CC-BY-4.0
NVDCVE-2025-55193 changed 2026-06-17Public domain