CVE-2023-0437: MongoDB client C Driver may infinitely loop when validating certain BSON input data

Published Jan 12, 2024
·
Updated

When calling bsonutf8validate on some inputs a loop with an exit condition that cannot be reached may occur, i.e. an infinite loop. This issue affects All MongoDB C Driver versions prior to versions 1.25.0.

Affected Software

6 affected componentsFixes available
MongoDB C Driver Mongodb<1.25.0
alpine/mongo-c-driver<1.25.4-r0
1.25.4-r0
alpine/mongo-c-driver<1.25.4-r0
1.25.4-r0
alpine/mongo-c-driver<1.25.4-r0
1.25.4-r0
alpine/mongo-c-driver<1.25.4-r0
1.25.4-r0
alpine/mongo-c-driver<1.25.4-r0
1.25.4-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/mongo-c-driver to a version that resolves this vulnerability.

    Fixed in 1.25.4-r0
  2. Upgrade

    Upgrade MongoDB C Driver to a version that resolves this vulnerability.

    Fixed in 1.25.0

Event History

Jan 12, 2024
CVE Published
via MITRE·01:33 PM
Data Sourced
via MITRE·01:33 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-0437?

CVE-2023-0437 has a moderate severity due to the potential for causing an infinite loop.

2

How do I fix CVE-2023-0437?

To fix CVE-2023-0437, upgrade to MongoDB C Driver version 1.25.0 or later.

3

What versions of MongoDB C Driver are affected by CVE-2023-0437?

CVE-2023-0437 affects all versions of MongoDB C Driver prior to version 1.25.0.

4

What types of inputs trigger the issue in CVE-2023-0437?

CVE-2023-0437 is triggered by certain inputs passed to the bson_utf8_validate function.

5

Is CVE-2023-0437 exploitable remotely?

CVE-2023-0437 does not indicate remote exploitation potential as it relates to input validation in the C Driver.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203