Laravel MongoDBで外部入力が問い合わせ式として解釈される脆弱性
Summary
Laravel MongoDBのincrementEach()とdecrementEach()で、外部から渡された値がプレーンな値ではなく問い合わせ式として解釈される脆弱性が見つかりました。外部データを渡す使い方では、意図しない値が書き込まれたり、同じドキュメント内の別のデータが漏えいしたりするおそれがあります。影響するのはMongoDB PHP Driverの4.8.0以上5.12.2未満で、5.12.2への更新が修正版です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Laravel MongoDBのincrementEach()とdecrementEach()で、外部から渡された値がプレーンな値ではなく問い合わせ式として解釈される脆弱性が見つかりました。外部データを渡す使い方では、意図しない値が書き込まれたり、同じドキュメント内の別のデータが漏えいしたりするおそれがあります。影響するのはMongoDB PHP Driverの4.8.0以上5.12.2未満で、5.12.2への更新が修正版です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| MongoDBPHP Driver |
≥ 4.8.0, < 5.12.2→ 5.12.2 |
5.12.2 |
Original description The description as published by the source.
A data-query neutralization weakness in the query builder of the MongoDB integration for a PHP web framework allows values supplied to certain bulk counter-update helpers to be interpreted by the database as query expressions rather than stored as plain text. An application that passes externally supplied data into these helpers may write unintended values into stored documents and may result in unintended disclosure of other data held on the same document. No credentials are required of the party supplying the value.
Source: CVE.org (CVE Program・cvelistV5) NVD
References
- web cna@mongodb.com