mysql-connector-python is vulnerable to Arbitrary File Read
49
Medium Risk
Affected versions of this package are vulnerable to Arbitrary File Read due to insufficient validation when the local_infile option is enabled in MySQL. This option determines whether the server permits clients to load data from local files using the LOAD DATA LOCAL INFILE SQL statement. In the patched version, the client-side connector enforces stricter validation by ensuring that the filename provided in the server’s response matches the filename specified in the client’s request, mitigating the risk of unauthorized file access.
You are affected if you are using a version that falls within the vulnerable range and the local_infile option is enabled.
mysql-connector-python is vulnerable to Arbitrary File Read in versions 1.0.5 - 9.2.0.
Upgrade the mysql-connector-python library to the patch version or disable the local_infile option.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant