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

Check for log4shell vulnerability #347

Open
danka74 opened this issue Dec 11, 2021 · 6 comments
Open

Check for log4shell vulnerability #347

danka74 opened this issue Dec 11, 2021 · 6 comments
Assignees

Comments

@danka74
Copy link
Contributor

danka74 commented Dec 11, 2021

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44228
https://logging.apache.org/log4j/2.x/security.html

@kaicode kaicode self-assigned this Dec 13, 2021
@kaicode
Copy link
Member

kaicode commented Dec 13, 2021

I confirm that affected log4j library versions are being used.
Log4j library versions within the affected range (>=2.0-beta9 and <=2.14.1) are being pulled in via the transitive dependencies:

org.elasticsearch:elasticsearch:jar:7.7.0
\- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile

org.springframework.boot:spring-boot-starter-actuator:jar:2.3.3.RELEASE:compile
\- org.springframework.boot:spring-boot-starter-logging:jar:2.3.3.RELEASE:compile
  \- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile

@danka74
Copy link
Contributor Author

danka74 commented Dec 13, 2021

I added -Dlog4j2.formatMsgNoLookups=true to elasticsearch and snowstorm in docker-compose.yml while things are being updated.

...
     - "ES_JAVA_OPTS=-Xms4g -Xmx4g -Dlog4j2.formatMsgNoLookups=true"
...
  entrypoint: java -Xms2g -Xmx4g -Dlog4j2.formatMsgNoLookups=true 
....

@BadRecordLength
Copy link

Hi, looking through the related commit - it seems that the Log4J version has been updated to 2.15.0, however this blog post by Elastic indicates that the 2.15.0 patch also has vulnerabilities and that the 2.17.0 version is required to fully address the issue. Please can the dependencies be updated to address this?

@kaicode
Copy link
Member

kaicode commented Jan 5, 2022

Well spotted. We are using 2.17.0 in the develop branch now, this will be part of the next release.
Thanks for pointing this out.

@BadRecordLength
Copy link

Well spotted. We are using 2.17.0 in the develop branch now, this will be part of the next release. Thanks for pointing this out.

Brilliant, thanks very much. Is there currently an ETA on the next release?

@kaicode
Copy link
Member

kaicode commented Jan 5, 2022

The next release will be out before the end of January.

@jimcornmell jimcornmell mentioned this issue Apr 13, 2023
njmarques pushed a commit to WestCoastInformatics/snowstorm-1 that referenced this issue Jun 16, 2023
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

No branches or pull requests

3 participants