Skip to content

Update dependency pymongo to v4 [SECURITY] #307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 6, 2025

This PR contains the following updates:

Package Change Age Confidence
pymongo ==3.9.0 -> ==4.6.3 age confidence

GitHub Vulnerability Alerts

CVE-2024-5629

Versions of the package pymongo before 4.6.3 are vulnerable to Out-of-bounds Read in the bson module. Using the crafted payload the attacker could force the parser to deserialize unmanaged memory. The parser tries to interpret bytes next to buffer and throws an exception with string. If the following bytes are not printable UTF-8 the parser throws an exception with a single byte.


Release Notes

mongodb/mongo-python-driver (pymongo)

v4.6.3: PyMongo 4.6.3

Compare Source

Community notes: https://www.mongodb.com/community/forums/t/pymongo-4-6-3-release-for-cve-2024-5629/284348

v4.6.2: PyMongo 4.6.2

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-6-2-released/267404

v4.6.1: PyMongo 4.6.1

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-6-1-released/255752

v4.6.0: PyMongo 4.6.0

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-6-0-released/251866

v4.5.0: PyMongo 4.5.0

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-5-0-released/240662

v4.4.1: PyMongo 4.4.1

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-4-1-released/235045

v4.4.0: PyMongo 4.4.0

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-4-released/232211

v4.3.3: PyMongo 4.3.3

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-3-3-release/200145

v4.3.2: PyMongo 4.3.2

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-3-2-released/194266

v4.2.0: PyMongo 4.2.0

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-2-0-released/176012

v4.1.1: PyMongo 4.1.1

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-1-1-released/157895

v4.1.0: PyMongo 4.1.0

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-1-0-released/156029

v4.0.2: PyMongo 4.0.2

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-0-2-released/150457

v4.0.1: PyMongo 4.0.1

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-0-1-released/135979

v4.0: PyMongo 4.0

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-0-released/134677

v3.13.0: PyMongo 3.13.0

Compare Source

Release notes https://www.mongodb.com/community/forums/t/pymongo-3-13-0-released/197141

v3.12.3: PyMongo 3.12.3

Compare Source

Release notes: https://www.mongodb.com/community/forums/t/pymongo-3-12-3-released/135978

v3.12.2

Compare Source

v3.12.1

Compare Source

v3.12.0: PyMongo 3.12.0 - MongoDB 5.0 Support

Compare Source

Release notes: https://developer.mongodb.com/community/forums/t/pymongo-3-12-0-released/115111/

v3.11.4: PyMongo 3.11.4

Compare Source

https://developer.mongodb.com/community/forums/t/pymongo-3-11-4-released/105609

v3.11.3

Compare Source

v3.11.2: PyMongo 3.11.2

Compare Source

Release notes: https://developer.mongodb.com/community/forums/t/pymongo-3-11-2-released/12475

v3.11.1: PyMongo 3.11.1

Compare Source

Release notes: https://developer.mongodb.com/community/forums/t/pymongo-3-11-1-released/11782

v3.11.0

Compare Source

PyMongo 3.11.0 - Add support for MongoDB 4.4

Release notes: https://developer.mongodb.com/community/forums/t/pymongo-3-11-0-released/7371

v3.10.1

Compare Source

Version 3.10.1 fixes the following issues discovered since the release of 3.10.0:

  • Fix a TypeError logged to stderr that could be triggered during server maintenance or during pymongo.mongo_client.MongoClient.close().
  • Avoid creating new connections during pymongo.mongo_client.MongoClient.close().

Documentation - https://pymongo.readthedocs.io/en/3.10.1/
Changelog - https://pymongo.readthedocs.io/en/3.10.1/changelog.html
Installation - https://pymongo.readthedocs.io/en/3.10.1/installation.html

v3.10.0

Compare Source

Support for Client-Side Field Level Encryption with MongoDB 4.2 and support for Python 3.8.

Documentation - https://pymongo.readthedocs.io/en/3.10.0/
Changelog - https://pymongo.readthedocs.io/en/3.10.0/changelog.html
Installation - https://pymongo.readthedocs.io/en/3.10.0/installation.html


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

sourcery-ai bot commented Jan 6, 2025

Reviewer's Guide by Sourcery

This pull request updates the pymongo dependency from version 3.9.0 to 4.6.3 to address a security vulnerability (CVE-2024-5629).

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Updated pymongo to 4.6.3
  • Upgraded pymongo from version 3.9.0 to 4.6.3 to patch CVE-2024-5629, which addressed an out-of-bounds read vulnerability in the bson module.
  • This update mitigates the risk of attackers forcing the parser to deserialize unmanaged memory, leading to potential exploits.
requirements.am.txt
requirements.worker.txt

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant