{"answers":{"affected":"15 open source packages ship an affected version, including mpxj, net.sf.mpxj:mpxj and MPXJ.Net.","exploited":"There is no known exploitation of CVE-2024-49771 in the wild and no public exploit code.","fix":"Upgrade mpxj to 13.5.1 or later.","what":"CVE-2024-49771 is a medium-severity vulnerability in joniles mpxj, published on 28 Oct 2024."},"fix_prompt":"Check this codebase for CVE-2024-49771 and fix it if it is affected.\n\nWhat it is: CVE-2024-49771 is a medium-severity vulnerability in joniles mpxj, published on 28 Oct 2024. \nExploitation: There is no known exploitation of CVE-2024-49771 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mpxj (PyPI): affected from 8.3.5; fixed in 13.5.1\n- mpxj (PyPI): affected from 8.3.5; fixed in 13.5.1\n- mpxj (PyPI): affected from 8.3.5; fixed in 13.5.1\n- mpxj (RubyGems): affected from 8.3.5; fixed in 13.5.1\n- mpxj (RubyGems): affected from 8.3.5; fixed in 13.5.1\n- net.sf.mpxj:mpxj (Maven): affected from 8.3.5; fixed in 13.5.1\n- net.sf.mpxj:mpxj (Maven): affected from 8.3.5; fixed in 13.5.1\n- MPXJ.Net (NuGet): affected from 13.0.0; fixed in 13.5.1\n- MPXJ.Net (NuGet): affected from 13.0.0; fixed in 13.5.1\n- net.sf.mpxj (NuGet): affected from 8.3.5; fixed in 13.5.1\n- net.sf.mpxj (NuGet): affected from 8.3.5; fixed in 13.5.1\n- net.sf.mpxj-for-csharp (NuGet): affected from 8.3.5; fixed in 13.5.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-2024-49771/ (Markdown: https://insights.sbomify.com/CVE-2024-49771/index.md)","id":"CVE-2024-49771","markdown":"https://insights.sbomify.com/CVE-2024-49771/index.md","name":"CVE-2024-49771","record":{"aliases":["GHSA-j945-c44v-97g6","PYSEC-2026-1681"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"MPXJ is an open source library to read and write project plans from a variety of file formats and databases. The patch for the historical vulnerability CVE-2020-35460 in MPXJ is incomplete as there is still a possibility that a malicious path could be constructed which would not be picked up by the original fix and allow files to be written to arbitrary locations. The issue is addressed in MPXJ version 13.5.1.","ecosystems":["Maven","NuGet","PyPI","RubyGems"],"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":"MPXJ has a Potential Path Traversal Vulnerability","id":"CVE-2024-49771","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":null,"year":"2024"},"n_packages":15,"n_references":2,"next":{"headline":"Authenticated SQL injection in AM_ProjectTemplates controller in SuiteCRM","id":"CVE-2024-49772"},"packages":[{"ecosystem":"Maven","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"net.sf.mpxj:mpxj","purl":null,"source":"GHSA-j945-c44v-97g6"},{"ecosystem":"Maven","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"net.sf.mpxj:mpxj","purl":"pkg:maven/net.sf.mpxj/mpxj","source":"GHSA-j945-c44v-97g6"},{"ecosystem":"NuGet","fixed":["13.5.1"],"introduced":["13.0.0"],"last_affected":[],"package":"MPXJ.Net","purl":null,"source":"GHSA-j945-c44v-97g6"},{"ecosystem":"NuGet","fixed":["13.5.1"],"introduced":["13.0.0"],"last_affected":[],"package":"MPXJ.Net","purl":"pkg:nuget/MPXJ.Net","source":"GHSA-j945-c44v-97g6"},{"ecosystem":"NuGet","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"net.sf.mpxj","purl":null,"source":"GHSA-j945-c44v-97g6"},{"ecosystem":"NuGet","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"net.sf.mpxj","purl":"pkg:nuget/net.sf.mpxj","source":"GHSA-j945-c44v-97g6"},{"ecosystem":"NuGet","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"net.sf.mpxj-for-csharp","purl":null,"source":"GHSA-j945-c44v-97g6"},{"ecosystem":"NuGet","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"net.sf.mpxj-for-csharp","purl":"pkg:nuget/net.sf.mpxj-for-csharp","source":"GHSA-j945-c44v-97g6"},{"ecosystem":"NuGet","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"net.sf.mpxj-for-vb","purl":null,"source":"GHSA-j945-c44v-97g6"},{"ecosystem":"NuGet","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"net.sf.mpxj-for-vb","purl":"pkg:nuget/net.sf.mpxj-for-vb","source":"GHSA-j945-c44v-97g6"},{"ecosystem":"PyPI","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"mpxj","purl":null,"source":"GHSA-j945-c44v-97g6"},{"ecosystem":"PyPI","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"mpxj","purl":"pkg:pypi/mpxj","source":"GHSA-j945-c44v-97g6"},{"ecosystem":"PyPI","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"mpxj","purl":"pkg:pypi/mpxj","source":"PYSEC-2026-1681"},{"ecosystem":"RubyGems","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"mpxj","purl":null,"source":"GHSA-j945-c44v-97g6"},{"ecosystem":"RubyGems","fixed":["13.5.1"],"introduced":["8.3.5"],"last_affected":[],"package":"mpxj","purl":"pkg:gem/mpxj","source":"GHSA-j945-c44v-97g6"}],"prev":{"headline":"oak's path traversal allows transfer of hidden files within the served root directory","id":"CVE-2024-49770"},"products":["mpxj"],"published":"2024-10-28","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-29","vendors":["joniles"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-49771/"}