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

CVE-2021-44228 (Apache log4j) tracking issue #150288

Closed
ius opened this issue Dec 11, 2021 · 17 comments
Closed

CVE-2021-44228 (Apache log4j) tracking issue #150288

ius opened this issue Dec 11, 2021 · 17 comments
Labels
0.kind: bug Something is broken 1.severity: security Issues which raise a security issue, or PRs that fix one

Comments

@ius
Copy link
Contributor

ius commented Dec 11, 2021

I used nix-locate to find instances of log4j v2 (possibly affected by CVE-2021-44228).

nix-locate -1 log4j-core-2 | uniq | tr '\n' ' '
nix-locate -1 log4j-api-2 | uniq | tr '\n' ' '

Packages listed below contain a log4j jar. Note that shipping the log4j jar does not imply vulnerability nor exploitability. This list is not exhaustive for many reasons (using 21.11 as nix-locate index; packages not cached thus not indexed).

Not vulnerable means I believe 21.05/21.11/unstable is not affected.

Package Status
apache-jena Fixed #150610 #150650 - 21.05?
arduino-core Upstream fix released, not packaged
arduino Upstream fix released, not packaged
elasticsearch7 Fixed #150879 #150986
elasticsearch6 Fixed #150879 #150986
elasticsearch6-oss Fixed #150879 #150986
flink Upstream fix released - #151776
ghidra-bin Fixed #150154 #150159 #150211
graylog Fixed #150511 #150594 #150904
igv Upstream fixed, not packaged
jitsi-videobridge Not vulnerable #150021 #150027 (missing 21.05 backport) Upstream: Jitsi-videobridge instances older than 2.1-504 (May 2021) with callstats enabled should be updated to 2.1-504 or newer (source)
jmeter Fixed #151080 #151087
logstash6 Fixed #150879 #150986
logstash7 Fixed #150879 #150986
logstash6-oss Fixed #150879 #150986
logstash7-oss Fixed #150879 #150986
signald Fixed #150479 #150523 #150526
solr 8.11.1 released (2.16.0), not packaged - mitigated by adding services.solr.extraJavaOptions = [ "-Dlog4j.formatMsgNoLookups=true" ]; to your configuration
storm Upstream fixed (2.17.0), but unreleased
xmlbeans Upstream fixed (2.17.0) but unreleased
zap Fixed (2.15.0) #150289 #150406 #150295 (no 2.17.0 released planned source)
keycloak Not vulnerable source
unifi[6] Mitigated #150329 #150329 #150425 #151145 #151179 #151178
@ius ius added 0.kind: bug Something is broken 1.severity: security Issues which raise a security issue, or PRs that fix one labels Dec 11, 2021
ius added a commit to ius/nixpkgs that referenced this issue Dec 11, 2021
github-actions bot pushed a commit that referenced this issue Dec 12, 2021
Fixes CVE-2021-44228 #150288

(cherry picked from commit be4883e)
@mweinelt mweinelt pinned this issue Dec 12, 2021
@Ma27
Copy link
Member

Ma27 commented Dec 12, 2021

Will patch pkgs.signald tonight.

Ma27 added a commit to Ma27/nixpkgs that referenced this issue Dec 12, 2021
Currently, the log4j update needed to mitigate CVE-2021-44228[1] is not
yet part of a release, so we apply the commit[2] as patch for now.

Relevant for NixOS#150288

[1] https://nvd.nist.gov/vuln/detail/CVE-2021-44228
[2] https://gitlab.com/signald/signald/-/commit/7f668062ab9ffa09a49d171e995f57cf0a0803a7
Ma27 added a commit to Ma27/nixpkgs that referenced this issue Dec 13, 2021
Equivalent to 79ab6a8 on `master`, but
against 0.14.1.

Relevant for NixOS#150288
Ma27 added a commit to Ma27/nixpkgs that referenced this issue Dec 13, 2021
Equivalent to 79ab6a8 on `master`, but
against 0.14.1.

Relevant for NixOS#150288
@wamserma
Copy link
Member

wamserma commented Dec 13, 2021

Would it be possible to hook a scanner like https://github.com/mergebase/log4j-detector into some postInstall-Hook for all packages depending on JDK? Or maybe directly into Hydra?

@0x4A6F 0x4A6F mentioned this issue Dec 13, 2021
13 tasks
ius added a commit to ius/nixpkgs that referenced this issue Dec 13, 2021
@bryanasdev000
Copy link
Member

As soon as a new release of Jmeter is released, I'm going to update it.

github-actions bot pushed a commit that referenced this issue Dec 14, 2021
@aanderse
Copy link
Member

I added a note on how to mitigate the attack for solr.

@ius
Copy link
Contributor Author

ius commented Dec 14, 2021

Note that the Log4J maintainers have made additional releases (2.16.0 and 2.12.2) which are now listed as the fix for CVE-2021-44228 (instead of 2.15).

It fixes a (less severe) denial of service (CVE-2021-45046) and disables JNDI by default.

Most downstream consumers will probably make yet another release...

@talyz
Copy link
Contributor

talyz commented Dec 15, 2021

I'm working on updating ELK 7 and should have a PR ready soon.

ius added a commit to ius/nixpkgs that referenced this issue Dec 22, 2021
@ius ius mentioned this issue Dec 22, 2021
13 tasks
ius added a commit to ius/nixpkgs that referenced this issue Dec 22, 2021
@ius ius mentioned this issue Dec 22, 2021
13 tasks
ius added a commit to ius/nixpkgs that referenced this issue Dec 22, 2021
Upgrade bundled log4j to 2.12.3 (NixOS#150288)
@bryanasdev000
Copy link
Member

Another PR for Jmeter:

#152176

@Moredread
Copy link
Contributor

Moredread commented Dec 26, 2021

mediathekview might be affected.

See PR #152261

github-actions bot pushed a commit that referenced this issue Dec 27, 2021
Fixes CVE-2021-45105 (#150288)

(cherry picked from commit 2654041)
risicle pushed a commit that referenced this issue Dec 28, 2021
@Tungsten842
Copy link
Member

@ius @antono @auntie @robberer @bjornfor @bergey A new version of arduino with log4j fixes has been released

@Tungsten842
Copy link
Member

Tungsten842 commented Dec 30, 2021

@ius @mimame A new version with fixes for log4j has been released for igv too.

@asbachb
Copy link
Contributor

asbachb commented Jul 24, 2022

Can we close this issue or is there any open task?

@bryanasdev000
Copy link
Member

Can we close this issue or is there any open task?

From a quick look seems that Solr is the main one missing.

@ius
Copy link
Contributor Author

ius commented Jul 27, 2022

Let's close this. Packages should either be patched by now, otherwise they're likely to be orphaned and suffer from other issues as well.

In case of Solr it looks like it has plenty of vulnerability tags slapped onto it.

@ius ius closed this as completed Jul 27, 2022
jsoo1 added a commit to awakesecurity/nixpkgs that referenced this issue Jul 12, 2023
Equivalent to 79ab6a8 on `master`, but
against 0.14.1.

Relevant for NixOS#150288

# Conflicts:
#	pkgs/applications/networking/instant-messengers/signald/default.nix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 1.severity: security Issues which raise a security issue, or PRs that fix one
Projects
None yet
Development

No branches or pull requests

10 participants