Skip to content

fix(security): bump BouncyCastle to 1.86 - #34704

Merged
sonika-shah merged 2 commits into
mainfrom
security/bouncycastle-1.86
Oct 12, 2026
Merged

sonika-shah merged 2 commits into
mainfrom
security/bouncycastle-1.86

Conversation

@karanh37

@karanh37 karanh37 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Advisory

  • CVE-2026-18036 — SNYK-JAVA-ORGBOUNCYCASTLE-20419436, high, Timing Attack in org.bouncycastle:bcprov-jdk18on, fixed in 1.86.
  • CVE-2026-71891 — SNYK-JAVA-ORGBOUNCYCASTLE-20419452, high, Improper Verification of Cryptographic Signature in bcprov-jdk18on, fixed in 1.86.

Raw scanner finding

Snyk server-dep-scan, workflow run 37248843105 (security-scan on main, 2026-10-05):

🔴 org.bouncycastle:bcprov-jdk18on 1.85 — Improper Verification of Cryptographic Signature (fix: 1.86)

Reported on openmetadata-service, openmetadata-mcp, openmetadata-dist, openmetadata-k8s-operator (path openmetadata-service > [email protected] > [email protected] > [email protected] > [email protected]) and docker/rdf-store (via jena-fuseki-main > shiro-crypto-hash).

Change

Root pom.xml dependencyManagement: bcpkix-jdk18on, bcprov-jdk18on, bcutil-jdk18on 1.85 → 1.86. The three move together so the BouncyCastle artifacts stay aligned (same approach as #30913). No other manifest touched.

What I verified

  • 1.86 is the Maven Central <release> for all three artifacts; 1.85 is genuinely below it.
  • No OpenMetadata source file in openmetadata-service/src/main or common/src/main imports org.bouncycastle — it is transitive only (via pac4j-oidc).
  • mvn -o -pl openmetadata-service dependency:tree -Dincludes=org.bouncycastle on this branch resolves all three to 1.86.
  • Smoke test on the resolved openmetadata-service runtime classpath: registered BouncyCastleProvider (reports 1.86), generated RSA-2048 and EC P-256 keys, round-tripped the public key through JcaPEMWriter/PEMParser (bcpkix), signed and verified with SHA256withRSA and SHA256withECDSA. All passed.

What I did NOT test

  • No mvn compile/mvn verify of any module, no unit or integration tests, no server boot.
  • No OIDC/SSO login flow — pac4j-oidc is the real consumer; nothing exercised it end to end.
  • Local JDK is 22, not the project's 21.
  • No rescan with Snyk after the change.

Note for merge

This PR has no linked issue, so pr-metadata-validation will fail until a maintainer links one in the Shipping project (or applies skip-pr-checks). I did not create an issue — the project fields need a human.

🤖 Generated with Claude Code

Clears CVE-2026-18036 (timing attack) and CVE-2026-71891 (improper
signature verification) in bcprov-jdk18on, both fixed in 1.86.
bcpkix and bcutil move with it to keep the BouncyCastle artifacts aligned.
@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Oct 6, 2026
@gitar-bot

gitar-bot Bot commented Oct 6, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🔴 High risk · Bumps cryptographic provider versions, including signature-verification security fixes

Bumps BouncyCastle (bcprov-jdk18on, bcpkix-jdk18on, bcutil-jdk18on) from 1.85 to 1.86 in root pom.xml to address two high-severity CVEs (timing attack and cryptographic signature verification). Verification confirms 1.86 resolves in the classpath and basic cryptographic operations succeed. No issues found.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@karanh37 karanh37 closed this Oct 12, 2026
@sonika-shah sonika-shah reopened this Oct 12, 2026
@sonika-shah
sonika-shah marked this pull request as ready for review October 12, 2026 10:03
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@sonika-shah
sonika-shah added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit a1c86dd Oct 12, 2026
116 of 127 checks passed
@sonika-shah
sonika-shah deleted the security/bouncycastle-1.86 branch October 12, 2026 16:56
sonika-shah added a commit that referenced this pull request Oct 12, 2026
…#34704, #35245) [2.0 backport] (#35246)

* fix(security): bump postgresql to 42.7.14

CVE-2026-107314 (requireAuth not enforced, high) and CVE-2026-107315
(medium) are fixed in pgjdbc 42.7.14. The root postgres.connector.version
property is the only place the driver version is set.

(cherry picked from commit aa407bc)

* fix(security): bump BouncyCastle to 1.86

Clears CVE-2026-18036 (timing attack) and CVE-2026-71891 (improper
signature verification) in bcprov-jdk18on, both fixed in 1.86.
bcpkix and bcutil move with it to keep the BouncyCastle artifacts aligned.

(cherry picked from commit 7c13bbb)

* fix(security): bump guava to 33.7.2-jre (CVE-2026-102554)

Guava's CompactHashMap/CompactHashSet/MapMakerInternalMap readObject paths
size their storage from the stream's declared element count, so a crafted
serialized stream forces an OutOfMemoryError. Fixed in 33.7.2; minor bump
within the 33.x line.

(cherry picked from commit 95e349b)

---------

Co-authored-by: karanh37 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants