Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | https://github.com/rails/rails6.0.6.1, 6.1.7.1, 7.0.4.1 | Affected | Not stated | hackerone |
| Debian | bullseye | rails | Advisory build | 2:6.0.3.7+dfsg-2+deb11u1 | DSA-5372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-activerecord-7.0aarch64 | Advisory build | 7.0.4.1-1.1 | OPENSUSE-SU-2024:12766-1 |
| Rocky Linux | 8 | libdb-cxxx86_64 | Listed in advisory | Not stated | RLSA-2023:6818 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-activerecord-7.0ppc64le | Advisory build | 7.0.4.1-1.1 | OPENSUSE-SU-2024:12766-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-activerecord-7.0s390x | Advisory build | 7.0.4.1-1.1 | OPENSUSE-SU-2024:12766-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-activerecord-7.0x86_64 | Advisory build | 7.0.4.1-1.1 | OPENSUSE-SU-2024:12766-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-activerecord-7.0aarch64 | Advisory build | 7.0.4.1-1.1 | OPENSUSE-SU-2024:12766-1 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-activerecord-7.0ppc64le | Advisory build | 7.0.4.1-1.1 | OPENSUSE-SU-2024:12766-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-activerecord-7.0s390x | Advisory build | 7.0.4.1-1.1 | OPENSUSE-SU-2024:12766-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-activerecord-7.0x86_64 | Advisory build | 7.0.4.1-1.1 | OPENSUSE-SU-2024:12766-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-activerecord-7.0aarch64 | Advisory build | 7.0.8.4-1.1 | OPENSUSE-SU-2024:14069-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-activerecord-7.0ppc64le | Advisory build | 7.0.8.4-1.1 | OPENSUSE-SU-2024:14069-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-activerecord-7.0s390x | Advisory build | 7.0.8.4-1.1 | OPENSUSE-SU-2024:14069-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-activerecord-7.0x86_64 | Advisory build | 7.0.8.4-1.1 | OPENSUSE-SU-2024:14069-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-activerecord-7.0aarch64 | Advisory build | 7.0.8.6-1.3 | OPENSUSE-SU-2025:15112-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-activerecord-7.0ppc64le | Advisory build | 7.0.8.6-1.3 | OPENSUSE-SU-2025:15112-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-activerecord-7.0s390x | Advisory build | 7.0.8.6-1.3 | OPENSUSE-SU-2025:15112-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-activerecord-7.0x86_64 | Advisory build | 7.0.8.6-1.3 | OPENSUSE-SU-2025:15112-1 |
| Rocky Linux | 8 | libdb-cxx-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:6818 |
| Rocky Linux | 8 | libdb-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:6818 |
| Rocky Linux | 8 | libdb-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2023:6818 |
| Rocky Linux | 8 | libdb-sql-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:6818 |
| Rocky Linux | 8 | libdb-sql-devel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:6818 |
| Rocky Linux | 8 | libdb-utils-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:6818 |
Description
A vulnerability in ActiveRecord <6.0.6.1, v6.1.7.1 and v7.0.4.1 related to the sanitization of comments. If malicious user input is passed to either the `annotate` query method, the `optimizer_hints` query method, or through the QueryLogs interface which automatically adds annotations, it may be sent to the database withinsufficient sanitization and be able to inject SQL outside of the comment.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | https://github.com/rails/rails | 6.0.6.1, 6.1.7.1, 7.0.4.1 (affected) | hackerone · cna |
Weaknesses
1- CWE-89 SQL Injection (CWE-89)
References
3- https://discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117
- https://security.netapp.com/advisory/ntap-20240202-0008/
- DSA-5372 https://www.debian.org/security/2023/dsa-5372
Provider assertions
2hackerone · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 16fa958915b5d0c06edbf6c0cda37aaf33a9af66febcd90ef1a1efa7e1c9c2fa
- Ingested
- 23 Sep 2026, 08:06:15 UTC
- Source record
- Official CVE record