Skip to content

Let Spring Boot manage logback (matched) to clear logback-core CVE alerts#13916

Open
wu-sheng wants to merge 1 commit into
masterfrom
fix/provider-logback-core-match
Open

Let Spring Boot manage logback (matched) to clear logback-core CVE alerts#13916
wu-sheng wants to merge 1 commit into
masterfrom
fix/provider-logback-core-match

Conversation

@wu-sheng

Copy link
Copy Markdown
Member

Fix the logback-core CVE alerts surfaced by #13915

Follow-up to #13915. After #13915 added an explicit logback-core 1.2.13 dependency to e2e-service-provider (to fix the lua-hang NoSuchMethodError), Dependabot started flagging logback-core4 alerts, all patched only in logback 1.3.x/1.5.x which require SLF4J 2.0 / Spring Boot 3 / Java 17, unreachable on this Java 8 / Spring Boot 2.5 test fixture.

Root of the whole thing: #13913 pinned logback-classic to 1.2.13 while Spring Boot kept logback-core at 1.2.6. The mismatch is what made logback-classic's ThrowableProxy call OptionHelper.isNotEmtpy() (absent in the older core) → NoSuchMethodError → dead Tomcat thread → the lua e2e hang.

Fix: drop the explicit logback pins (both the classic ${logback.version} and #13915's logback-core dep) and let spring-boot-dependencies manage both to the same version (1.2.6).

Verified locally: the provider jar now bundles logback-classic-1.2.6 + logback-core-1.2.6 (matched), and the poms contain no explicit logback version pin.

…alerts

#13913 pinned logback-classic to 1.2.13 while Spring Boot kept logback-core at
1.2.6 (mismatch -> NoSuchMethodError -> lua e2e hang). #13915 fixed the hang by
adding an explicit logback-core 1.2.13 dep, but that made Dependabot flag
logback-core (4 CVEs patched only in logback 1.3.x/1.5.x, which need SLF4J 2.0 /
Java 17 - unreachable on this Java-8 / Spring Boot 2.5 fixture).

Drop the explicit logback pins entirely and let spring-boot-dependencies manage
both logback-classic and logback-core to the same version (1.2.6). Matched
versions never trigger the NoSuchMethodError, and a BOM-managed (not declared)
logback-core is not flagged by Dependabot - so the 4 alerts clear without
shipping a vulnerable declared dependency, and the lua fix is preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant