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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| rails | rails | >= 0, < 7.1.5.2, >= 7.2, < 7.2.2.2, >= 8.0, < 8.0.2.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rails | 2:7.2.2.2+dfsg-1 | — |
| Debian 13 | rails | 2:7.2.2.2+dfsg-2~deb13u1 | DSA-6090-1 |
| Debian 12 | rails | 2:6.1.7.10+dfsg-1~deb12u2 | DSA-6090-1 |
| Debian 11 | rails | 2:6.0.3.7+dfsg-2+deb11u4 | DLA-4416-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rails | No fix yet | — |
| Ubuntu 26.04 LTS | rails | No fix yet | — |
| Ubuntu 25.10 | rails | No fix yet | — |
| Ubuntu 24.04 LTS | rails | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 20.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 18.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 16.04 LTS | rails | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | hawk2 | 2.7.0+git.1742310530.bfcd0e2c-160000.3.1 | SUSE-SU-2026:20093-1 |
| SLES 16.0 | hawk2 | 2.7.0+git.1742310530.bfcd0e2c-160000.3.1 | SUSE-SU-2026:20091-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | rubygem-activerecord-8.0 | 8.0.1-2.1 | openSUSE-SU-2026:10343-1, openSUSE-SU-2025:15479-1 |
| openSUSE Leap 16.0 | hawk2 | 2.7.0+git.1742310530.bfcd0e2c-160000.3.1 | openSUSE-SU-2026:20025-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | ruby3.2-activerecord +2 | 8.0.2.1-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | activerecord | >= 8.0, < 8.0.2.1 | 8.0.2.1 | GHSA-76r7-hhxj-r776 |
| RubyGems | activerecord | >= 7.2, < 7.2.2.2 | 7.2.2.2 | GHSA-76r7-hhxj-r776 |
| RubyGems | activerecord | < 7.1.5.2 | 7.1.5.2 | GHSA-76r7-hhxj-r776 |
Advisories 8
- openSUSE-SU-2026:20025-1 Security update for hawk2 SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15479-1 ruby3.4-rubygem-activerecord-8.0-8.0.1-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20091-1 Security update for hawk2 SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20093-1 Security update for hawk2 SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10343-1 ruby4.0-rubygem-activerecord-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- WID-SEC-2025-1822 Ruby on Rails: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 28, 2025
- DLA-4416-1 rails - security update Debian Security (DSA / DLA) · Dec 21, 2025
- DSA-6090-1 rails - security update Debian Security (DSA / DLA) · Dec 21, 2025
References
- https://github.com/rails/rails/security/advisories/GHSA-76r7-hhxj-r776
- https://github.com/rails/rails/commit/3beef20013736fd52c5dcfdf061f7999ba318290
- https://github.com/rails/rails/commit/568c0bc2f1e74c65d150a84b89a080949bf9eb9b
- https://github.com/rails/rails/commit/6a944ca4805e72050a0fbb1a461534eb760d3202