{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"state":"PUBLISHED","cveId":"CVE-2023-22794","assignerOrgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1","assignerShortName":"hackerone","dateUpdated":"2024-08-02T10:20:30.748Z","dateReserved":"2023-01-06T00:00:00.000Z","datePublished":"2023-02-09T00:00:00.000Z"},"containers":{"cna":{"providerMetadata":{"orgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1","shortName":"hackerone","dateUpdated":"2024-02-02T14:06:11.892Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"https://github.com/rails/rails","versions":[{"version":"6.0.6.1, 6.1.7.1, 7.0.4.1","status":"affected"}]}],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117"},{"name":"DSA-5372","tags":["vendor-advisory"],"url":"https://www.debian.org/security/2023/dsa-5372"},{"url":"https://security.netapp.com/advisory/ntap-20240202-0008/"}],"problemTypes":[{"descriptions":[{"type":"CWE","lang":"en","description":"SQL Injection (CWE-89)","cweId":"CWE-89"}]}]},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-02T10:20:30.748Z"},"title":"CVE Program Container","references":[{"url":"https://discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117","tags":["x_transferred"]},{"name":"DSA-5372","tags":["vendor-advisory","x_transferred"],"url":"https://www.debian.org/security/2023/dsa-5372"},{"url":"https://security.netapp.com/advisory/ntap-20240202-0008/","tags":["x_transferred"]}]}]}}