CyberRota Analysis
AI-GeneratedOracle's Sequelize ORM tool is vulnerable to SQL injection when the dialect is set to Oracle, specifically in versions prior to 6.37.4. The flaw arises from the escape function in sql-string.js, which fails to properly handle strings beginning with TO_TIMESTAMP or TO_DATE, allowing attackers to inject arbitrary SQL expressions. Organizations using affected versions should prioritize upgrading to version 6.37.4 to mitigate this critical security risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Sequelize is a Node.js ORM tool. Prior to 6.37.4, SQL injection is possible with strings only if dialect is set to oracle. The escape function defined in sql-string.js does not escape quotes if the value starts with TO_TIMESTAMP or TO_DATE. In the Oracle dialect, when val is a string and starts with TO_TIMESTAMP or TO_DATE, escape returns val directly instead of replacing single quotes. An attacker can inject arbitrary SQL expressions through an application value that reaches this escape path. This issue is fixed in version 6.37.4.