cve/2023/CVE-2023-22794.md

18 lines
904 B
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2023-22794](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-22794)
![](https://img.shields.io/static/v1?label=Product&message=https%3A%2F%2Fgithub.com%2Frails%2Frails&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=SQL%20Injection%20(CWE-89)&color=brighgreen)
### 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.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/ARPSyndicate/cvemon