{"answers":{"affected":"11 open source packages ship an affected version, including mpxj, net.sf.mpxj:mpxj and net.sf.mpxj. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-41954 in the wild and no public exploit code.","fix":"Upgrade mpxj to 10.14.1 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2022-41954 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2022-41954 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mpxj (PyPI): affected all versions; fixed in 10.14.1\n- mpxj (PyPI): affected all versions; fixed in 10.14.1\n- mpxj (PyPI): affected all versions; fixed in 10.14.1\n- net.sf.mpxj:mpxj (Maven): affected all versions; fixed in 10.14.1\n- net.sf.mpxj:mpxj (Maven): affected all versions; fixed in 10.14.1\n- net.sf.mpxj (NuGet): affected all versions; fixed in 10.14.1\n- net.sf.mpxj (NuGet): affected all versions; fixed in 10.14.1\n- net.sf.mpxj-for-csharp (NuGet): affected all versions; fixed in 10.14.1\n- net.sf.mpxj-for-csharp (NuGet): affected all versions; fixed in 10.14.1\n- net.sf.mpxj-for-vb (NuGet): affected all versions; fixed in 10.14.1\n- net.sf.mpxj-for-vb (NuGet): affected all versions; fixed in 10.14.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-41954/ (Markdown: https://insights.sbomify.com/CVE-2022-41954/index.md)","id":"CVE-2022-41954","markdown":"https://insights.sbomify.com/CVE-2022-41954/index.md","name":"CVE-2022-41954","record":{"aliases":["GHSA-jf2p-4gqj-849g","PYSEC-2022-42996"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Java project management library","requires_auth":"low_privilege","summary":"Local attackers can read sensitive project schedule data from insecurely created temporary files on Unix-like systems using the MPXJ library.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mpxj","vendor":"mpxj"}],"cvss":{"score":3.3,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"},{"id":"CWE-377","name":"DEPRECATED: Insecure Temporary File"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":["Maven","NuGet","PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Temporary File Information Disclosure Vulnerability","id":"CVE-2022-41954","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"information_disclosure","year":"2022"},"n_packages":11,"n_references":2,"next":{"headline":"Autolab is vulnerable to remote code execution (RCE) via MOSS functionality","id":"CVE-2022-41955"},"packages":[{"ecosystem":"Maven","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"net.sf.mpxj:mpxj","purl":null,"source":"GHSA-jf2p-4gqj-849g"},{"ecosystem":"Maven","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"net.sf.mpxj:mpxj","purl":"pkg:maven/net.sf.mpxj/mpxj","source":"GHSA-jf2p-4gqj-849g"},{"ecosystem":"NuGet","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"net.sf.mpxj","purl":null,"source":"GHSA-jf2p-4gqj-849g"},{"ecosystem":"NuGet","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"net.sf.mpxj","purl":"pkg:nuget/net.sf.mpxj","source":"GHSA-jf2p-4gqj-849g"},{"ecosystem":"NuGet","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"net.sf.mpxj-for-csharp","purl":null,"source":"GHSA-jf2p-4gqj-849g"},{"ecosystem":"NuGet","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"net.sf.mpxj-for-csharp","purl":"pkg:nuget/net.sf.mpxj-for-csharp","source":"GHSA-jf2p-4gqj-849g"},{"ecosystem":"NuGet","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"net.sf.mpxj-for-vb","purl":null,"source":"GHSA-jf2p-4gqj-849g"},{"ecosystem":"NuGet","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"net.sf.mpxj-for-vb","purl":"pkg:nuget/net.sf.mpxj-for-vb","source":"GHSA-jf2p-4gqj-849g"},{"ecosystem":"PyPI","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"mpxj","purl":null,"source":"GHSA-jf2p-4gqj-849g"},{"ecosystem":"PyPI","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"mpxj","purl":"pkg:pypi/mpxj","source":"GHSA-jf2p-4gqj-849g"},{"ecosystem":"PyPI","fixed":["10.14.1"],"introduced":["0"],"last_affected":[],"package":"mpxj","purl":"pkg:pypi/mpxj","source":"PYSEC-2022-42996"}],"prev":{"headline":"Git clone remote code execution vulnerability in git-for-windows","id":"CVE-2022-41953"},"products":["mpxj"],"published":"2022-11-25","related":[{"cvss_score":9.8,"headline":"Improper Restriction of XML External Entity Reference in MPXJ","id":"CVE-2020-25020","kev_date_added":null,"published":"2020-08-29"},{"cvss_score":5.3,"headline":"MPXJ path Traversal vulnerability","id":"CVE-2020-35460","kev_date_added":null,"published":"2020-12-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["joniles"]},"summary":"Local attackers can read sensitive project schedule data from insecurely created temporary files on Unix-like systems using the MPXJ library.","url":"https://insights.sbomify.com/CVE-2022-41954/"}