{"id":"CVE-2023-22794","state":"PUBLISHED","title":"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, th","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.","publishedAt":"2023-02-09T00:00:00.000Z","updatedAt":"2024-08-02T10:20:30.748Z","severity":null,"assigner":"hackerone","products":["n/a https://github.com/rails/rails"],"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":["https://discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117","https://www.debian.org/security/2023/dsa-5372","https://security.netapp.com/advisory/ntap-20240202-0008/"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:05:43.909Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/22xxx/CVE-2023-22794.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-22794","state":"PUBLISHED","datePublished":"2023-02-09T00:00:00.000Z","dateUpdated":"2024-08-02T10:20:30.748Z","assignerShortName":"hackerone","assignerOrgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1","dateReserved":"2023-01-06T00:00:00.000Z"},"containers":{"cna":{"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"},{"url":"https://www.debian.org/security/2023/dsa-5372","name":"DSA-5372","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240202-0008/"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","type":"CWE","lang":"en","description":"SQL Injection (CWE-89)"}]}],"providerMetadata":{"shortName":"hackerone","orgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1","dateUpdated":"2024-02-02T14:06:11.892Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://discuss.rubyonrails.org/t/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments/82117","tags":["x_transferred"]},{"url":"https://www.debian.org/security/2023/dsa-5372","name":"DSA-5372","tags":["vendor-advisory","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20240202-0008/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T10:20:30.748Z"}}]}}}