pymongo is vulnerable to Integer Overflow
75
High Risk
PyMongo's bundled native BSON encoder computes buffer growth size in a signed 32-bit int and uses an overflow check with undefined behavior in C. Encoding a single document built from a very large amount of caller supplied data can overflow that signed arithmetic, so the encoder writes outside the allocated buffer, causing a heap out-of-bounds write in the application's process. An unprivileged party who can place a very large value into data that an application encodes can trigger this, depending on how the native extension was built. The fix computes the size in a wider type and rejects negative or over-limit sizes before the buffer grows.
You are affected if you are using a version that falls within the vulnerable range and the bundled C extension is built and used for BSON encoding.
pymongo is vulnerable to Integer Overflow in versions 1.10.1 - 4.18.1.
Upgrade the pymongo library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

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.