CVE-2022-41954 Temporary File Information Disclosure Vulnerability

Low 3.3 Published Updated

Local attackers can read sensitive project schedule data from insecurely created temporary files on Unix-like systems using the MPXJ library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-41954?

CVE-2022-41954 is a low-severity vulnerability in joniles mpxj, published on 25 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

MPXJ is an open source library to read and write project plans from a variety of file formats and databases. On Unix-like operating systems (not Windows or macos), MPXJ's use of `File.createTempFile(..)` results in temporary files being created with the permissions `-rw-r--r--`. This means that any other user on the system can read the contents of this file. When MPXJ is reading a schedule file which requires the creation of a temporary file or directory, a knowledgeable local user could locate these transient files while they are in use and would then be able to read the schedule being processed by MPXJ. The problem has been patched, MPXJ version 10.14.1 and later includes the necessary changes. Users unable to upgrade may set `java.io.tmpdir` to a directory to which only the user running the application has access will prevent other users from accessing these temporary files.

Weakness: CWE-668, CWE-377, CWE-200

Which versions are affected by CVE-2022-41954?

11 open source packages ship an affected version, including mpxj, net.sf.mpxj:mpxj and net.sf.mpxj. It affects 1 product.

PackageAffectedFixed in
mpxj PyPIAll versions10.14.1
mpxj PyPIAll versions10.14.1
mpxj PyPIAll versions10.14.1
net.sf.mpxj:mpxj MavenAll versions10.14.1
net.sf.mpxj:mpxj MavenAll versions10.14.1
net.sf.mpxj NuGetAll versions10.14.1
5 more packages
net.sf.mpxj NuGetAll versions10.14.1
net.sf.mpxj-for-csharp NuGetAll versions10.14.1
net.sf.mpxj-for-csharp NuGetAll versions10.14.1
net.sf.mpxj-for-vb NuGetAll versions10.14.1
net.sf.mpxj-for-vb NuGetAll versions10.14.1

Products include Mpxj Mpxj.

How do I fix CVE-2022-41954?

Upgrade mpxj to 10.14.1 or later.

Is CVE-2022-41954 being exploited?

There is no known exploitation of CVE-2022-41954 in the wild and no public exploit code.

Sources

Also known as GHSA-jf2p-4gqj-849g, PYSEC-2022-42996.

Is CVE-2022-41954 in your software?

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

Check your SBOMs for free