Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in...

zetlyn/cve-ghsa vulnerability ghsa GHSA-7c84-x75c-5j8m cve CVE-2026-63575 known 2026-10-02

https://github.com/advisories/GHSA-7c84-x75c-5j8m

Properties

cweCWE-835
receipt
Source
GitHub advisories
Its words
CWE-835
Read by
field:cwes[].cwe_id
Said since
2026-10-02 11:59 UTC
Last answered
2026-10-04 18:15 UTC
Original
open at the source
What the source handed over
{
  "credits": [],
  "cve_id": "CVE-2026-63575",
  "cvss": {
    "score": null,
    "vector_string": null
  },
  "cvss_severities": {
    "cvss_v3": {
      "score": 0.0,
      "vector_string": null
    },
    "cvss_v4": {
      "score": 7.1,
      "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/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"
    }
  },
  "cwes": [
    {
      "cwe_id": "CWE-835",
      "name": "Loop with Unreachable Exit Condition ('Infinite Loop')"
    }
  ],
  "description": "Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who can supply a PKCS#12 (PFX) file, or a PKCS#8 encrypted private key that uses a PKCS#12 password-based encryption algorithm, to cause a denial of service through CPU exhaustion via an iteration count of zero or below, because the derivation loop ran until its counter equalled the count, so for such a count it wrapped through about 2^32 iterations before the MAC or the password could be checked. A 75-byte PFX file with a negative MacData iteration count kept Pkcs12Store.Load busy for many minutes.",
  "ghsa_id": "GHSA-7c84-x75c-5j8m",
  "github_reviewed_at": null,
  "html_url": "https://github.com/advisories/GHSA-7c84-x75c-5j8m",
  "identifiers": [
    {
      "type": "GHSA",
      "value": "GHSA-7c84-x75c-5j8m"
    },
    {
      "type": "CVE",
      "value": "CVE-2026-63575"
    }
  ],
  "nvd_published_at": "2026-10-02T08:17:02Z",
  "published_at": "2026-10-02T09:31:19Z",
  "references": [
    "https://nvd.nist.gov/vuln/detail/CVE-2026-63575",
    "https://github.com/bcgit/bc-csharp/commit/0c7a6dfd64c4a479577e35a728a766721b79aba7",
    "https://github.com/bcgit/bc-csharp/commit/7c0ed15f9783c9595b1a53f3900136461fd944f4",
    "https://github.com/bcgit/bc-csharp/wiki/CVE-2026-63575",
    "https://github.com/advisories/GHSA-7c84-x75c-5j8m"
  ],
  "repository_advisory_url": null,
  "severity": "high",
  "source_code_location": "",
  "summary": "Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in...",
  "type": "unreviewed",
  "updated_at": "2026-10-02T09:31:30Z",
  "url": "https://api.github.com/advisories/GHSA-7c84-x75c-5j8m",
  "vulnerabilities": [],
  "withdrawn_at": null
}
severityhigh
From 7.0 to 8.9.
receipt
Source
GitHub advisories
Its words
high
Read by
field:severity
Said since
2026-10-02 11:59 UTC
Last answered
2026-10-04 18:15 UTC
Original
open at the source
What the source handed over
{
  "credits": [],
  "cve_id": "CVE-2026-63575",
  "cvss": {
    "score": null,
    "vector_string": null
  },
  "cvss_severities": {
    "cvss_v3": {
      "score": 0.0,
      "vector_string": null
    },
    "cvss_v4": {
      "score": 7.1,
      "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/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"
    }
  },
  "cwes": [
    {
      "cwe_id": "CWE-835",
      "name": "Loop with Unreachable Exit Condition ('Infinite Loop')"
    }
  ],
  "description": "Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who can supply a PKCS#12 (PFX) file, or a PKCS#8 encrypted private key that uses a PKCS#12 password-based encryption algorithm, to cause a denial of service through CPU exhaustion via an iteration count of zero or below, because the derivation loop ran until its counter equalled the count, so for such a count it wrapped through about 2^32 iterations before the MAC or the password could be checked. A 75-byte PFX file with a negative MacData iteration count kept Pkcs12Store.Load busy for many minutes.",
  "ghsa_id": "GHSA-7c84-x75c-5j8m",
  "github_reviewed_at": null,
  "html_url": "https://github.com/advisories/GHSA-7c84-x75c-5j8m",
  "identifiers": [
    {
      "type": "GHSA",
      "value": "GHSA-7c84-x75c-5j8m"
    },
    {
      "type": "CVE",
      "value": "CVE-2026-63575"
    }
  ],
  "nvd_published_at": "2026-10-02T08:17:02Z",
  "published_at": "2026-10-02T09:31:19Z",
  "references": [
    "https://nvd.nist.gov/vuln/detail/CVE-2026-63575",
    "https://github.com/bcgit/bc-csharp/commit/0c7a6dfd64c4a479577e35a728a766721b79aba7",
    "https://github.com/bcgit/bc-csharp/commit/7c0ed15f9783c9595b1a53f3900136461fd944f4",
    "https://github.com/bcgit/bc-csharp/wiki/CVE-2026-63575",
    "https://github.com/advisories/GHSA-7c84-x75c-5j8m"
  ],
  "repository_advisory_url": null,
  "severity": "high",
  "source_code_location": "",
  "summary": "Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in...",
  "type": "unreviewed",
  "updated_at": "2026-10-02T09:31:30Z",
  "url": "https://api.github.com/advisories/GHSA-7c84-x75c-5j8m",
  "vulnerabilities": [],
  "withdrawn_at": null
}

Text

Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in... Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who can supply a PKCS#12 (PFX) file, or a PKCS#8 encrypted private key that uses a PKCS#12 password-based encryption algorithm, to cause a denial of service through CPU exhaustion via an iteration count of zero or below, because the derivation loop ran until its counter equalled the count, so for such a count it wrapped through about 2^32 iterations before the MAC or the password could be checked. A 75-byte PFX file with a negative MacData iteration count kept Pkcs12Store.Load busy for many minutes.