mysql2 is vulnerable to Insufficiently Protected Credentials
75
CVSS Score
High
Insufficiently Protected Credentials
The mysql2 driver registers mysql_clear_password as a default authentication plugin that returns the account password as a plaintext buffer. A rogue or man-in-the-middle MySQL server can send an authentication-switch request selecting mysql_clear_password, and the driver complies without requiring that the connection be encrypted. On unencrypted connections the client transmits the password in cleartext, letting the malicious endpoint capture credentials. The fix disables the cleartext plugin by default and requires explicit opt-in through the enableCleartextPlugin option or a custom auth plugin.
Upgrade the mysql2 library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and connect without TLS to an untrusted or user-controlled MySQL server.
3.0.0 - 3.21.1
Fixed in 3.22.0mysql2 is vulnerable to Insufficiently Protected Credentials in versions 3.0.0 - 3.21.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.