Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. activerecord
  4. ›
  5. GMS-2023-60

GMS-2023-60: Duplicate of ./gem/activerecord/CVE-2023-22794.yml

January 18, 2023

There is a possible vulnerability in ActiveRecord related to the sanitization of comments. Previously the implementation of escaping for comments was insufficient. 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 with insufficient sanitization and be able to inject SQL outside of the comment. In most cases these interfaces won’t be used with user input and users should avoid doing so.

References

  • github.com/advisories/GHSA-hq7p-j377-6v63
  • github.com/rails/rails/releases/tag/v7.0.4.1

Code Behaviors & Features

Detect and mitigate GMS-2023-60 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 6.0.0 before 6.0.6.1, all versions starting from 6.1.0 before 6.1.7.1, all versions starting from 7.0.0 before 7.0.4.1

Fixed versions

  • 6.0.6.1
  • 6.1.7.1
  • 7.0.4.1

Solution

Upgrade to versions 6.0.6.1, 6.1.7.1, 7.0.4.1 or above.

Source file

gem/activerecord/GMS-2023-60.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:40 +0000.