CVE-2025-65896: asyncmy SQL Injection Vulnerability via Crafted Dict Keys

asyncmy Updated 03 Dec 2025

Summary

02/12/2025
No i
Critical
9.8

CVE-2025-65896: assyncmy is vulnerable to SQL injection via crafted dict keys. Affects asyncmy versions < 0.2.10. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

asyncmy is a Python library designed for asynchronous MySQL database interactions. It allows developers to perform non-blocking database operations, enhancing the performance of applications that require high concurrency. However, the library has a critical vulnerability that exposes it to SQL injection attacks, which can lead to unauthorized access and manipulation of the database.

Vulnerability Detail

The vulnerability arises from improper handling of user input in the asyncmy library, specifically in versions up to 0.2.10. Attackers can exploit this flaw by crafting specific dictionary keys that are processed by the library, allowing them to execute arbitrary SQL commands. This can lead to data breaches, data loss, or complete control over the database, making it a severe security risk.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid using user-generated input directly in SQL queries. Implement input validation and sanitization to mitigate the risk of SQL injection until the package can be updated.

Conclusion

The asyncmy library has a critical SQL injection vulnerability that can be exploited through crafted dictionary keys. It is essential to update to a patched version to protect your application from potential attacks. Utilizing tools like Vulert can further enhance your security posture by providing real-time monitoring for vulnerabilities.

See every vulnerability recorded for asyncmy →

Share this vulnerability

FAQ

SQL injection is a code injection technique that exploits vulnerabilities in an application's software by inserting malicious SQL statements into an entry field for execution.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring any signup.

The consequences include unauthorized access to sensitive data, data manipulation, and potential complete control over the database, which can lead to significant data breaches.

Yes, a patch is available. Update the asyncmy package to a version later than 0.2.10 to mitigate the vulnerability.

Vulert uses the Pipfile.lock to monitor and alert in real-time for open-source vulnerabilities in your software, helping you maintain security without needing to access the code directly.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback