{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "1.73"
              },
              {
                "fixed": "1.85"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "9032821b326fba9fec7528899dfffa79f9f19aef"
            },
            {
              "fixed": "57fbd3c501f7a369f64eda311d6a709fc0bcae84"
            }
          ],
          "repo": "https://github.com/bcgit/bc-java",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "bcorg",
    "cwe_ids": [
      "CWE-789"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12852.json"
  },
  "details": "In Bouncy Castle for Java before 1.85, MLS wire decoder allocates attacker-declared opaque length before bounds check.",
  "id": "CVE-2026-12852",
  "modified": "2026-08-04T11:31:21.112396286Z",
  "published": "2026-08-03T02:55:02.485Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/bcgit/bc-java/wiki/CVE-2026-12852"
    },
    {
      "type": "WEB",
      "url": "https://www.bouncycastle.org/download/bouncy-castle-java/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12852.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9012852"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-12852"
    },
    {
      "type": "FIX",
      "url": "https://github.com/bcgit/bc-java/commit/a747038bb5bbd5e29fb2b7607ab38af1fd8d1790"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/bcgit/bc-java"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber",
      "type": "CVSS_V4"
    }
  ],
  "summary": "MLS wire decoder allocates attacker-declared opaque length before bounds check"
}