Low · 3.2 PHP packages PKSA-cknr-8ckg-k248
doctrine/mongodb-odm: EncryptedFieldsMapGenerator May Silently Omit Encrypted Fields in Embedded Documents
A flaw in doctrine/mongodb-odm's EncryptedFieldsMapGenerator can cause encrypted fields within embedded documents to be silently left out of the generated encryption map, potentially leaving sensitive data unencrypted without any warning.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
An advisory has been published for doctrine/mongodb-odm, a PHP library used to map objects to MongoDB documents. The issue affects the EncryptedFieldsMapGenerator component, which is responsible for determining which document fields should be encrypted. Under certain conditions involving embedded documents, this component may fail to include fields that should be encrypted, without producing any error or warning.
What Happened
A vulnerability was identified in doctrine/mongodb-odm's EncryptedFieldsMapGenerator. When a document contains embedded documents, the generator may silently omit encrypted fields from the resulting map. This means fields intended to be encrypted could end up being stored without encryption, and the application would not be alerted to this omission.
Technical Cause
The root cause lies in how EncryptedFieldsMapGenerator processes nested or embedded document structures. The exact technical mechanism of the omission is not detailed in the available advisory information beyond the general description that embedded documents can trigger the field to be skipped during map generation.
Why It Matters
If encrypted fields are silently excluded from the encryption map, sensitive data that developers believe is protected may instead be persisted in plaintext in the underlying MongoDB storage. Because the failure is silent, there is no built-in signal that would alert developers or operators to the problem, increasing the risk that it goes unnoticed until a data exposure review or audit.
Who Is Affected
Applications using doctrine/mongodb-odm that rely on EncryptedFieldsMapGenerator to automatically determine encrypted fields, and that use embedded documents within their schema, are potentially affected. The impact depends on whether sensitive fields are nested within embedded documents in the affected version range.
Affected Versions
Versions of doctrine/mongodb-odm from 2.12.0 up to, but not including, 2.17.3 are listed as affected.
Fixes and Mitigation
No fixed version is currently listed in the available advisory data. We cannot confirm whether a patched release exists at this time. Organizations should monitor the upstream project for an update that resolves this issue.
Recommended Action
Review applications using doctrine/mongodb-odm for embedded documents containing fields that should be encrypted. Manually verify, where possible, that encrypted fields are indeed being encrypted as expected rather than relying solely on automatic generation by EncryptedFieldsMapGenerator. Track the upstream project for a fixed release and apply it once available.
PatchBriefing score
3.2 / 10 · Low
Why this score
This advisory has a PatchBriefing score of 3.2, reflecting a moderate base severity (CVSS base score of 5) combined with the absence of known exploitation, no public exploit code, and no confirmation of unauthenticated remote exploitability or lack of required user interaction. A small additional contribution comes from the fact that no fix is currently available. Overall, this is a low-to-moderate priority issue driven primarily by its potential data confidentiality impact rather than active threat activity.
Affected versions
- doctrine/mongodb-odm >=2.12.0,<2.17.3
- vulnerable
Reported fixes
No fixed version is currently listed in the available advisory data. We cannot confirm whether a patched release exists at this time. Organizations should monitor the upstream project for an update that resolves this issue.
How this was built
1 source records were collected, matched and used to prepare the report above.
-
Packagist Security Advisories registry
Revision history
- Published
- Generated