3.3low
Temporary File Information Disclosure Vulnerability
- Severity
- 3.3low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jf2p-4gqj-849gPYSEC-2022-42996
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| joniles mpxj | < 10.14.1 | CVE List |
| net.sf.mpxj:mpxj (Maven) | before 10.14.1 | GitHub Advisory Database |
| net.sf.mpxj (NuGet) | before 10.14.1 | GitHub Advisory Database |
| net.sf.mpxj-for-csharp (NuGet) | before 10.14.1 | GitHub Advisory Database |
| net.sf.mpxj-for-vb (NuGet) | before 10.14.1 | GitHub Advisory Database |
| mpxj (PyPI) | before 10.14.1, before 287ad0234213c52b0638565e14bd9cf3ed44cedd | GitHub Advisory Database, PyPA Advisory Database |
| mpxj mpxj | before 10.14.1 | NVD |
All scores
| GitHub_M | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 2.8low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N |
| GitHub | low CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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
NVD (es)
MPXJ es una librería de código abierto para leer y escribir planes de proyectos desde una variedad de formatos de archivos y bases de datos. En sistemas operativos tipo Unix (no Windows o Macos), el uso de MPXJ de `File.createTempFile(..)` da como resultado la creación de archivos temporales con los permisos `-rw-r--r--`. Esto significa que cualquier otro usuario del sistema puede leer el contenido de este archivo. Cuando MPXJ lee un archivo de programación que requiere la creación de un archivo o directorio temporal, un usuario local con conocimientos podría localizar estos archivos transitorios mientras están en uso y luego podría leer la programación que está procesando MPXJ. El problema ha sido parcheado, MPXJ versión 10.14.1 y posteriores incluye los cambios necesarios. Los usuarios que no puedan actualizar pueden configurar `java.io.tmpdir` en un directorio al que solo tenga acceso el usuario que ejecuta la aplicación, lo que evitará que otros usuarios accedan a estos archivos temporales.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-41954 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jf2p-4gqj-849g changed 2024-09-26 | CC-BY-4.0 |
| NVD | CVE-2022-41954 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2022-42996 changed 2023-11-08 | CC-BY-4.0 |