Skip to content

fix(security): bump logback to 1.5.38 and pin avatica-core to 1.29.0 - #34287

Merged
harsh-vador merged 2 commits into
mainfrom
fix/security-bump-logback-avatica
Oct 1, 2026
Merged

harsh-vador merged 2 commits into
mainfrom
fix/security-bump-logback-avatica

Conversation

@harsh-vador

Copy link
Copy Markdown
Contributor

Summary

Addresses two dependency findings from the security scan list:

Package From To CVE Notes
ch.qos.logback:logback-core / logback-classic 1.5.36 1.5.38 CVE-2026-13006 Code execution via Janino conditional config processing, fixed in 1.5.37. Janino ships on the server classpath (via calcite-core).
org.apache.calcite.avatica:avatica-core 1.28.0 (transitive) 1.29.0 CVE-2026-70410 Unsafe reflection in AvaticaUtils#instantiatePlugin. calcite-core 1.42.0 is the latest release and still declares 1.28.0, so it is pinned in root dependencyManagement.

Neither CVE is reported by Snyk in security-scan.yml (the GitHub advisories carry no package mapping), which is why they never showed up there.

Why not logback 1.6.x

logback 1.6.x removed PatternLayout.DEFAULT_CONVERTER_MAP. Dropwizard's LogbackAccessRequestLayout reads it in its static initializer in every release through the latest (5.0.2, which itself builds against logback 1.5.33), so text request logging fails with:

java.lang.NoSuchFieldError: Class ch.qos.logback.classic.PatternLayout does not have member field 'java.util.Map DEFAULT_CONVERTER_MAP'
	at io.dropwizard.request.logging.layout.LogbackAccessRequestLayout.<clinit>(LogbackAccessRequestLayout.java:20)
	at org.openmetadata.service.logging.SwitchableAccessLayoutFactory.buildTextLayout(SwitchableAccessLayoutFactory.java:28)

SwitchableLayoutFactoryTest.buildsTextAccessLayoutWithConfiguredPattern reproduces it on 1.6.4. The same breakage applies to the logback 1.6.4 bump inside Dependabot #34006. CVE-2026-19880 (medium, fixed only on 1.6.x) therefore stays open until Dropwizard supports logback 1.6.

Test plan

  • mvn dependency:tree on openmetadata-service: logback 1.5.38, avatica-core/avatica-metrics 1.29.0
  • SqlToSparqlTranslatorTest, SparqlBuilderNestedFieldsTest (calcite/avatica path), SwitchableLayoutFactoryTest, LoggingConfigurationYamlTest, AppRunLogAppenderTest, StartupTimerTest, AuditLogRepositoryTest: 73 tests, 0 failures
  • CI

🤖 Generated with Claude Code

- logback-core/classic 1.5.36 -> 1.5.38 clears CVE-2026-13006 (code
  execution via Janino conditional config, fixed in 1.5.37). Janino is on
  the server classpath via calcite-core.
- avatica-core pinned to 1.29.0 in dependencyManagement for CVE-2026-70410
  (unsafe reflection in AvaticaUtils#instantiatePlugin). calcite-core
  1.42.0 is the latest release and still declares 1.28.0.

Stays on logback 1.5.x on purpose: 1.6.x removed
PatternLayout.DEFAULT_CONVERTER_MAP, which Dropwizard's
LogbackAccessRequestLayout (5.0.0 through 5.0.2) reads in its static
initializer, so text request logging fails with NoSuchFieldError
(SwitchableLayoutFactoryTest reproduces it).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@harsh-vador
harsh-vador requested a review from a team as a code owner September 30, 2026 09:37
@harsh-vador harsh-vador self-assigned this Sep 30, 2026
@harsh-vador harsh-vador added safe to test Add this label to run secure Github workflows on PRs backend labels Sep 30, 2026
@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 the UI UI specific issues label Sep 30, 2026
@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit f588d2f91a9f9bd66c8f20ef5680d3d931d602b1 in Playwright run 36838171735, attempt 1.

✅ 4654 passed · ❌ 0 failed · 🟡 3 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 52m 38s

⏱️ Max setup 5m 26s · max shard execution 19m 28s · max shard-job elapsed before upload 22m 50s · reporting 18s

🌐 228.53 requests/attempt · 2.19 app boots/UI scenario · 37.41% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 37.41% (convergence target: at most 15%).
  • Browser traffic was 228.53 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.19 per UI scenario (10805 boots / 4944 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 67 0 0 0 0 0
✅ Shard advanced-search-02 63 0 0 0 0 0
✅ Shard chromium-01 164 0 0 0 0 0
✅ Shard chromium-02 140 0 0 0 0 0
✅ Shard chromium-03 162 0 0 0 0 0
✅ Shard chromium-04 175 0 0 0 0 0
🟡 Shard chromium-05 148 0 1 0 0 0
✅ Shard chromium-06 119 0 0 0 0 0
✅ Shard chromium-07 147 0 0 0 0 0
✅ Shard chromium-08 128 0 0 0 0 0
✅ Shard chromium-09 171 0 0 0 0 0
🟡 Shard chromium-10 138 0 1 0 0 0
✅ Shard chromium-11 188 0 0 1 0 0
✅ Shard chromium-12 140 0 0 0 0 0
✅ Shard chromium-13 162 0 0 0 0 0
🟡 Shard chromium-14 139 0 1 0 0 0
✅ Shard chromium-15 127 0 0 0 0 0
✅ Shard chromium-16 164 0 0 0 0 0
✅ Shard chromium-17 156 0 0 0 0 0
✅ Shard chromium-18 170 0 0 0 0 0
✅ Shard chromium-19 172 0 0 0 0 0
✅ Shard chromium-20 138 0 0 0 0 0
✅ Shard chromium-21 132 0 0 0 0 0
✅ Shard chromium-22 128 0 0 0 0 0
✅ Shard chromium-23 161 0 0 0 0 0
✅ Shard chromium-24 157 0 0 0 0 0
✅ Shard chromium-25 137 0 0 0 0 0
✅ Shard chromium-26 156 0 0 0 0 0
✅ Shard chromium-27 159 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard import-export-01 86 0 0 0 0 0
✅ Shard import-export-02 66 0 0 0 0 0
✅ Shard ingestion-01 32 0 0 0 0 0
✅ Shard ingestion-02 44 0 0 0 0 0
✅ Shard ingestion-03 17 0 0 0 0 0
✅ Shard reindex-01 41 0 0 0 0 0
✅ Shard search-01 16 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 3 flaky test(s) (passed on retry)
  • Features/ContextCenterArticlesFilters.spec.ts › filters stay applied and consistent across every sort (shard chromium-05, 1 retry)
  • Features/CustomizeDetailPage.spec.ts › Search Index - customization should work (shard chromium-10, 1 retry)
  • Pages/ExplorePageRightPanel.spec.ts › Should allow Data Steward to edit tier for pipeline (shard chromium-14, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-09-30T22:16:17Z)

Blocked the queue: playwright-summary

@karanh37
karanh37 added this pull request to the merge queue Oct 1, 2026
@karanh37
karanh37 removed this pull request from the merge queue due to a manual request Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-10-01T03:30:20Z)

No required check failed — the entry may have timed out, or been dequeued while a required check was still pending.

@harsh-vador
harsh-vador added this pull request to the merge queue Oct 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-01T04:50:20Z)

Blocked the queue: integration-tests-mysql-elasticsearch

@gitar-bot

gitar-bot Bot commented Oct 1, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Dependency version overrides change server logging and Avatica runtime components.

Bumps logback-core/logback-classic to 1.5.38 and pins avatica-core to 1.29.0 to address CVE-2026-13006 (code execution via Janino conditional config) and CVE-2026-70410 (unsafe reflection), respectively. Stays on logback 1.5.x due to a breaking change in 1.6.x where PatternLayout.DEFAULT_CONVERTER_MAP was removed, causing text request logging to fail until Dropwizard adds support. 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

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-01T10:53:05Z)

Blocked the queue: integration-tests-postgres-opensearch

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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants