VDB
Sign up
MEDIUM4.3

PYSEC-2013-30

Quick fix

PYSEC-2013-30 — pymongo: upgrade to the fixed version with the command below.

pip install --upgrade 'pymongo>=a060c15ef87e0f0e72974c7c0e57fe811bbd06a2'

Details

bson/_cbsonmodule.c in the mongo-python-driver (aka. pymongo) before 2.5.2, as used in MongoDB, allows context-dependent attackers to cause a denial of service (NULL pointer dereference and crash) via vectors related to decoding of an "invalid DBRef."

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pymongo
Introduced in: 0Fixed in: a060c15ef87e0f0e72974c7c0e57fe811bbd06a2
Fixpip install --upgrade 'pymongo>=a060c15ef87e0f0e72974c7c0e57fe811bbd06a2'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/pymongo"]}'