Dima2021 / railsgoat

A vulnerable version of Rails that follows the OWASP Top 10
railsgoat.cktricky.com
MIT License
0 stars 0 forks source link

CVE-2023-22794 (Medium) detected in activerecord-6.0.0.gem - autoclosed #63

Closed mend-for-github-com[bot] closed 1 year ago

mend-for-github-com[bot] commented 1 year ago

CVE-2023-22794 - Medium Severity Vulnerability

Vulnerable Library - activerecord-6.0.0.gem

Databases on Rails. Build a persistent domain model by mapping database tables to Ruby classes. Strong conventions for associations, validations, aggregations, migrations, and testing come baked-in.

Library home page: https://rubygems.org/gems/activerecord-6.0.0.gem

Dependency Hierarchy: - rails-6.0.0.gem (Root Library) - :x: **activerecord-6.0.0.gem** (Vulnerable Library)

Found in HEAD commit: ef980180214dbeaba07dbfcc87752fa216d3a34f

Found in base branch: master

Vulnerability Details

There is a possible SQL Injection vulnerability in ActiveRecord 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 with insufficient sanitization and be able to inject SQL outside of the comment. The issue is patched in versions 6.0.6.1,6.1.7.1 and 7.0.4.1.

Publish Date: 2023-01-06

URL: CVE-2023-22794

CVSS 3 Score Details (5.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-hq7p-j377-6v63

Release Date: 2023-01-06

Fix Resolution: activerecord - 6.0.6.1,6.1.7.1,7.0.4.1

mend-for-github-com[bot] commented 1 year ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.