CVE-2025-65896
9.8long2ice · asyncmy
A SQL injection vulnerability in the long2ice asyncmy library allows unauthenticated attackers to execute arbitrary SQL commands via crafted dictionary keys.
Executive summary
A critical SQL injection vulnerability in the asyncmy library exposes applications to unauthorized database access and potential remote command execution.
Vulnerability
This is a SQL injection vulnerability where the application fails to properly sanitize input provided through dictionary keys. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms that the vulnerability is exploitable by an unauthenticated remote attacker.
Business impact
The ability to inject arbitrary SQL commands represents a severe risk of data breach, unauthorized modification of sensitive information, or complete database compromise. Given the CVSS score of 9.8, this vulnerability carries a high risk of total loss of confidentiality, integrity, and availability of the backend database.
Remediation
Immediate Action: Monitor the maintainer's repository for a security patch; as of now, no fix is available in versions through 0.2.11.
Proactive Monitoring: Review database query logs for anomalous or malformed SQL statements that deviate from expected application patterns.
Compensating Controls: Implement strict input validation and parameterization at the application layer and utilize a Web Application Firewall (WAF) to filter malicious SQL injection payloads.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
Users of the asyncmy library should prioritize identifying all instances of this dependency within their environments. Given the lack of an official patch, architectural workarounds or strict input sanitization must be applied immediately to prevent exploitation of this critical flaw.