CVE-2023-43123

Apache Storm: Local Information Disclosure Vulnerability in Storm-core on Unix-Like systems due temporary files

No CVSS score yet EPSS 0.44%

Published 23 Nov 2023 Updated 13 Feb 2025 CNA: apache

Check your servers for CVE-2023-43123

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-43123 affects storm-core, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

On unix-like systems, the temporary directory is shared between all user. As such, writing to this directory using APIs that do not explicitly set the file/directory permissions can lead to information disclosure. Of note, this does not impact modern MacOS Operating Systems.

The method File.createTempFile on unix-like systems creates a file with predefined name (so easily identifiable) and by default will create this file with the permissions -rw-r--r--. Thus, if sensitive information is written to this file, other local users can read this information.

File.createTempFile(String, String) will create a temporary file in the system temporary directory if the 'java.io.tmpdir' system property is not explicitly set.

This affects the class  https://github.com/apache/storm/blob/master/storm-core/src/jvm/org/apache/storm/utils/TopologySpoutLag.java#L99  and was introduced by  https://issues.apache.org/jira/browse/STORM-3123

In practice, this has a very limited impact as this class is used only if ui.disable.spout.lag.monitoring

is set to false, but its value is true by default. Moreover, the temporary file gets deleted soon after its creation.

The solution is to use  Files.createTempFile https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Files.html#createTempFile(java.lang.String,java.lang.String,java.nio.file.attribute.FileAttribute...)  instead.

We recommend that all users upgrade to the latest version of Apache Storm.

Exploitation

EPSS 0.44%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 39.9% of all scored CVEs. Scores of 2 Dec 2026.

Weakness

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

Affected products

As the CNA lists them.

ProductVersions
Apache Storm
package storm-core
affected from 2.0.0, before 2.6.0
Other versions: affected

Is my server affected?

Find the installed version of storm-core and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i storm-core
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-43123 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-43123

RHEL, Rocky, Alma, Fedora

rpm -q storm-core
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-43123

Alpine

apk list --installed | grep -i storm-core

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-43123
trivy image --scanners vuln IMAGE | grep CVE-2023-43123

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Other references

Source: the record CVE-2023-43123 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.