Skip to content

fix(security): bump postgresql, BouncyCastle and guava on 2.0 (#35214, #34704, #35245) [2.0 backport] - #35246

Merged
sonika-shah merged 3 commits into
2.0from
fix/postgresql-bouncycastle-guava-2.0
Oct 12, 2026
Merged

sonika-shah merged 3 commits into
2.0from
fix/postgresql-bouncycastle-guava-2.0

Conversation

@sonika-shah

Copy link
Copy Markdown
Collaborator

Backports three backend pin bumps to 2.0 to clear the 2.0 nightly scan findings:

Clean cherry-picks (-x) of the three main commits. Only pom.xml and openmetadata-service/pom.xml change.

Verification
  • mvn clean install -pl openmetadata-service,openmetadata-sdk,openmetadata-mcp -am -DskipTests on 2.0 is green.
  • dependency:tree for openmetadata-service resolves postgresql:42.7.14, bc*-jdk18on:1.86 and guava:33.7.2-jre.
  • Collate 2.0 built against these jars is green too.

libthrift 0.25.0 for 2.0 is in #35243.

karanh37 and others added 3 commits October 12, 2026 15:34
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)
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)
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)
@sonika-shah
sonika-shah requested a review from a team as a code owner October 12, 2026 10:15
@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.

@github-actions github-actions Bot added backend safe to test Add this label to run secure Github workflows on PRs labels Oct 12, 2026
@gitar-bot

gitar-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🔴 High risk · Updating PostgreSQL JDBC, BouncyCastle, and Guava changes database authentication, cryptographic handling, and serialized-input behavior; regressions could weaken security or disrupt service.

Backports dependency pin bumps to the 2.0 branch: postgresql to 42.7.14, BouncyCastle (bcprov/bcpkix/bcutil-jdk18on) to 1.86, and guava to 33.7.2-jre, clearing the listed CVEs. Only the root and openmetadata-service pom.xml files change. 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

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants