CVE-2022-41954 is a low-severity (CVSS 3.3) Information Exposure vulnerability in net.sf.mpxj:mpxj. A fix is available for net.sf.mpxj:mpxj — see the affected versions and patch details below.
Temporary File Information Disclosure Vulnerability
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2022-41954.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
net.sf.mpxj:mpxj.NETnet.sf.mpxj.NETnet.sf.mpxj-for-csharp.NETnet.sf.mpxj-for-vb🐍mpxjReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven, NuGet packages — download data is not available via public APIs for these ecosystems.
Description
Impact
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 type of 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.
Patches
The problem has been patched, MPXJ version 10.14.1 and later includes the necessary changes.
Workarounds
Setting 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.
For more information
If you have any questions or comments about this advisory
- Open an issue in https://github.com/joniles/mpxj
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | net.sf.mpxj:mpxj | all versions | 10.14.1net.sf.mpxj:mpxj:10.14.1 |
| .NETNuGet | net.sf.mpxj | all versions | 10.14.1dotnet add package net.sf.mpxj --version 10.14.1 |
| .NETNuGet | net.sf.mpxj-for-csharp | all versions | 10.14.1dotnet add package net.sf.mpxj-for-csharp --version 10.14.1 |
| .NETNuGet | net.sf.mpxj-for-vb | all versions | 10.14.1dotnet add package net.sf.mpxj-for-vb --version 10.14.1 |
| 🐍PyPI | mpxj | all versions | 10.14.1pip install --upgrade 'mpxj==10.14.1' |
Affected Products
mpxjmpxjDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for net.sf.mpxj:mpxj, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update net.sf.mpxj:mpxj to 10.14.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-41954 is resolved across your whole dependency graph.
Workarounds
Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.
Frequently Asked Questions
Is CVE-2022-41954 in your dependencies?
Find it across Maven, NuGet, PyPI, including transitive dependencies.