CVE-2026-126817 (GCVE-0-2026-126817)

Vulnerability from cvelistv5 – Published: 2026-11-13 15:40 – Updated: 2026-11-13 15:40
VLAI
Title
Mongoid stores encrypted fields in plaintext when two models share a collection
Summary
A flaw in the automatic client-side encryption schema generation of the Mongoid ODM may cause values that an application declared for encryption to be written and stored as cleartext when more than one model is mapped onto the same storage location. No error or warning is raised. A party holding an ordinary read-only database account, with no access to the encryption key material, may then obtain those values in clear form.
CWE
  • CWE-312 - Cleartext Storage of Sensitive Information
References
Impacted products
Vendor Product Version
MongoDB Ruby Driver Affected: 9.0.0 (semver)
Affected: 9.0.1 (semver)
Affected: 9.0.2 (semver)
Affected: 9.0.3 (semver)
Affected: 9.0.4 (semver)
Affected: 9.0.5 (semver)
Affected: 9.0.6 (semver)
Affected: 9.0.7 (semver)
Affected: 9.0.8 (semver)
Affected: 9.0.9 (semver)
Affected: 9.0.10 (semver)
Affected: 9.0.11 (semver)
Affected: 9.0.12 (semver)
Affected: 9.1.0 (semver)
Affected: 9.1.1 (semver)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Ruby Driver",
          "vendor": "MongoDB",
          "versions": [
            {
              "status": "affected",
              "version": "9.0.0",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.1",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.2",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.3",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.4",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.5",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.6",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.7",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.8",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.9",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.10",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.11",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.0.12",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.1.0",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "9.1.1",
              "versionType": "semver"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "A flaw in the automatic client-side encryption schema generation of the Mongoid ODM may cause values that an application declared for encryption to be written and stored as cleartext when more than one model is mapped onto the same storage location. No error or warning is raised. A party holding an ordinary read-only database account, with no access to the encryption key material, may then obtain those values in clear form."
            }
          ],
          "value": "A flaw in the automatic client-side encryption schema generation of the Mongoid ODM may cause values that an application declared for encryption to be written and stored as cleartext when more than one model is mapped onto the same storage location. No error or warning is raised. A party holding an ordinary read-only database account, with no access to the encryption key material, may then obtain those values in clear form."
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "Automatable": "NOT_DEFINED",
            "Recovery": "NOT_DEFINED",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "attackVector": "NETWORK",
            "baseScore": 6,
            "baseSeverity": "MEDIUM",
            "exploitMaturity": "NOT_DEFINED",
            "privilegesRequired": "LOW",
            "providerUrgency": "NOT_DEFINED",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "NONE",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
            "version": "4.0",
            "vulnAvailabilityImpact": "NONE",
            "vulnConfidentialityImpact": "HIGH",
            "vulnIntegrityImpact": "NONE",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        },
        {
          "cvssV3_1": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 6.5,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
            "version": "3.1"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-312",
              "description": "CWE-312: Cleartext Storage of Sensitive Information",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-13T15:40:10.838Z",
        "orgId": "a39b4221-9bd0-4244-95fc-f3e2e07f1deb",
        "shortName": "mongodb"
      },
      "references": [
        {
          "url": "https://jira.mongodb.org/browse/MONGOID-6037"
        }
      ],
      "source": {
        "discovery": "UNKNOWN"
      },
      "title": "Mongoid stores encrypted fields in plaintext when two models share a collection",
      "x_generator": {
        "engine": "Vulnogram 1.0.5"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a39b4221-9bd0-4244-95fc-f3e2e07f1deb",
    "assignerShortName": "mongodb",
    "cveId": "CVE-2026-126817",
    "datePublished": "2026-11-13T15:40:10.838Z",
    "dateReserved": "2026-11-11T20:06:23.925Z",
    "dateUpdated": "2026-11-13T15:40:10.838Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-126817",
      "date": "2026-11-16",
      "epss": "0.00101",
      "percentile": "0.00912"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Ruby Driver",
                "vendor": "MongoDB",
                "versions": [
                  {
                    "status": "affected",
                    "version": "9.0.0",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.1",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.2",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.3",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.4",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.5",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.6",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.7",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.8",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.9",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.10",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.11",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.0.12",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.1.0",
                    "versionType": "semver"
                  },
                  {
                    "status": "affected",
                    "version": "9.1.1",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "source": "cna@mongodb.com"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "A flaw in the automatic client-side encryption schema generation of the Mongoid ODM may cause values that an application declared for encryption to be written and stored as cleartext when more than one model is mapped onto the same storage location. No error or warning is raised. A party holding an ordinary read-only database account, with no access to the encryption key material, may then obtain those values in clear form."
          }
        ],
        "id": "CVE-2026-126817",
        "lastModified": "2026-11-16T20:37:04.673",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 6.5,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
                "version": "3.1"
              },
              "exploitabilityScore": 2.8,
              "impactScore": 3.6,
              "source": "cna@mongodb.com",
              "type": "Secondary"
            }
          ],
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 6.0,
                "baseSeverity": "MEDIUM",
                "confidentialityRequirement": "NOT_DEFINED",
                "exploitMaturity": "NOT_DEFINED",
                "integrityRequirement": "NOT_DEFINED",
                "modifiedAttackComplexity": "NOT_DEFINED",
                "modifiedAttackRequirements": "NOT_DEFINED",
                "modifiedAttackVector": "NOT_DEFINED",
                "modifiedPrivilegesRequired": "NOT_DEFINED",
                "modifiedSubAvailabilityImpact": "NOT_DEFINED",
                "modifiedSubConfidentialityImpact": "NOT_DEFINED",
                "modifiedSubIntegrityImpact": "NOT_DEFINED",
                "modifiedUserInteraction": "NOT_DEFINED",
                "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
                "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
                "modifiedVulnIntegrityImpact": "NOT_DEFINED",
                "privilegesRequired": "LOW",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "source": "cna@mongodb.com",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-13T16:18:46.317",
        "references": [
          {
            "source": "cna@mongodb.com",
            "url": "https://jira.mongodb.org/browse/MONGOID-6037"
          }
        ],
        "sourceIdentifier": "cna@mongodb.com",
        "vulnStatus": "Awaiting Analysis",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-312"
              }
            ],
            "source": "cna@mongodb.com",
            "type": "Secondary"
          }
        ]
      }
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…