Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade logback-classic to address CVE CVE-2023-6378 #3801

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

derek-ho
Copy link
Collaborator

@derek-ho derek-ho commented Dec 4, 2023

Description

Force resolve logback-classic to 1.3.12 to address GHSA-vmq6-5m68-f53m

Issues Resolved

[List any issues this PR will resolve]

Is this a backport? If so, please add backport PR # and/or commits #

Testing

[Please provide details of testing done: unit testing, integration testing and manual testing]

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Derek Ho <[email protected]>
@derek-ho derek-ho changed the title Upgrade logback-classic to address CVE Upgrade logback-classic to address CVE CVE-2023-6378 Dec 4, 2023
@derek-ho derek-ho marked this pull request as ready for review December 4, 2023 19:15
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Merging #3801 (c463b01) into main (6b8a3e4) will increase coverage by 0.02%.
Report is 8 commits behind head on main.
The diff coverage is 90.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3801      +/-   ##
==========================================
+ Coverage   65.26%   65.28%   +0.02%     
==========================================
  Files         297      298       +1     
  Lines       21132    21159      +27     
  Branches     3452     3455       +3     
==========================================
+ Hits        13791    13813      +22     
- Misses       5644     5649       +5     
  Partials     1697     1697              
Files Coverage Δ
...nsearch/security/compliance/FieldReadCallback.java 55.55% <ø> (ø)
...urity/ssl/transport/SecuritySSLRequestHandler.java 70.32% <100.00%> (+8.10%) ⬆️
...org/opensearch/security/support/JsonFlattener.java 88.46% <88.46%> (ø)

... and 3 files with indirect coverage changes

@cwperks cwperks merged commit 2abd71b into opensearch-project:main Dec 5, 2023
79 checks passed
@@ -497,6 +497,7 @@ configurations {
force "org.apache.httpcomponents:httpcore:4.4.16"
force "com.google.errorprone:error_prone_annotations:2.23.0"
force "org.checkerframework:checker-qual:3.40.0"
force "ch.qos.logback:logback-classic:1.3.12"
Copy link
Collaborator

@reta reta Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cwperks this should probably be set to 1.2.13 since Logback 1.3.x needs SLF4J 2.0 APIs (if I am not mistaken)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you reta! How can we catch issues like this as part of CI?

From logback's README:

Both 1.3.x and 1.4.x series require SLF4J 2.0.x or later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the issue preventing slf4j upgrade that OpenSearch still supports Java 8? From the slf4j README

SLF4J version 2.0.x will run under Java 8 but requires Java 9 or later to build.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the issue preventing slf4j upgrade that OpenSearch still supports Java 8?

We basically could move to slf4j 2.x but I believe some deps (like Jetty 9 fe, if I am not mistaken) do still rely on slf4j 1.x

derek-ho added a commit to derek-ho/security that referenced this pull request Dec 5, 2023
prabhask5 pushed a commit to prabhask5/opensearch-security that referenced this pull request Jan 11, 2024
…ect#3801)

### Description
Force resolve logback-classic to 1.3.12 to address
GHSA-vmq6-5m68-f53m

### Issues Resolved
[List any issues this PR will resolve]

Is this a backport? If so, please add backport PR # and/or commits #

### Testing
[Please provide details of testing done: unit testing, integration
testing and manual testing]

### Check List
- [ ] New functionality includes testing
- [ ] New functionality has been documented
- [ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Prabhas Kurapati <[email protected]>
prabhask5 pushed a commit to prabhask5/opensearch-security that referenced this pull request Jan 11, 2024
dlin2028 pushed a commit to dlin2028/security that referenced this pull request May 1, 2024
…ect#3801)

### Description
Force resolve logback-classic to 1.3.12 to address
GHSA-vmq6-5m68-f53m

### Issues Resolved
[List any issues this PR will resolve]

Is this a backport? If so, please add backport PR # and/or commits #

### Testing
[Please provide details of testing done: unit testing, integration
testing and manual testing]

### Check List
- [ ] New functionality includes testing
- [ ] New functionality has been documented
- [ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Derek Ho <[email protected]>
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.

4 participants