GHSA-94g7-hpv8-h9qm Remote code injection in Log4j

Not scored Published

Attackers can execute arbitrary code by logging untrusted data in vulnerable Log4j versions via the Splunk Java logging library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-94g7-hpv8-h9qm?

GHSA-94g7-hpv8-h9qm is a code injection vulnerability in com.splunk.logging:splunk-library-javalogging, published on 14 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Impact

Logging untrusted or user controlled data with a vulnerable version of Log4J may result in Remote Code Execution (RCE) against your application. This includes untrusted data included in logged errors such as exception traces, authentication failures, and other unexpected vectors of user controlled input.

More Details: https://github.com/advisories/GHSA-jfh8-c2jp-5v3q

Patches

Version 1.11.1 of the Splunk Logging for Java library.

There is also a backport to version 1.6.2 released as a patch: 1.6.2-0-0.

Workarounds

If upgrading is not possible, then ensure the -Dlog4j2.formatMsgNoLookups=true system property is set on both client- and server-side components.

References

https://github.com/advisories/GHSA-jfh8-c2jp-5v3q

For more information

If you have any questions or comments about this advisory:

Which versions are affected by GHSA-94g7-hpv8-h9qm?

4 open source packages ship an affected version, including com.splunk.logging:splunk-library-javalogging.

PackageAffectedFixed in
com.splunk.logging:splunk-library-javalogging MavenAll versions1.6.2-0-0
com.splunk.logging:splunk-library-javalogging MavenAll versions1.6.2-0-0
com.splunk.logging:splunk-library-javalogging MavenFrom 1.7.01.11.1
com.splunk.logging:splunk-library-javalogging MavenFrom 1.7.01.11.1

How do I fix GHSA-94g7-hpv8-h9qm?

Upgrade com.splunk.logging:splunk-library-javalogging to a fixed version for your release line: 1.6.2-0-0 or 1.11.1.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is GHSA-94g7-hpv8-h9qm being exploited?

There is no known exploitation of GHSA-94g7-hpv8-h9qm in the wild and no public exploit code.

Sources

Is GHSA-94g7-hpv8-h9qm in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free