{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.james:apache-mime4j-storage. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-45787 in the wild and no public exploit code.","fix":"Upgrade org.apache.james:apache-mime4j-storage to 0.8.9 or later.","what":"CVE-2022-45787 is a medium-severity vulnerability in Apache James MIME4J, published on 6 Jan 2023. 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-45787 and fix it if it is affected.\n\nWhat it is: CVE-2022-45787 is a medium-severity vulnerability in Apache James MIME4J, published on 6 Jan 2023. 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-45787 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.james:apache-mime4j-storage (Maven): affected all versions; fixed in 0.8.9\n- org.apache.james:apache-mime4j-storage (Maven): affected all versions; fixed in 0.8.9\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-45787/ (Markdown: https://insights.sbomify.com/CVE-2022-45787/index.md)","id":"CVE-2022-45787","markdown":"https://insights.sbomify.com/CVE-2022-45787/index.md","name":"CVE-2022-45787","record":{"aliases":["GHSA-q84x-3476-8ff2","OESA-2025-2296","OESA-2025-2343","OESA-2025-2344","OESA-2025-2345","OESA-2025-2346","OESA-2025-2347"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Java MIME library","requires_auth":"low_privilege","summary":"Local attackers can read sensitive data from temporary files due to lax permissions in the Apache James MIME4J library.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"james","vendor":"apache"}],"cvss":{"score":5.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information"}],"description":"Unproper laxist permissions on the temporary files used by MIME4J TempFileStorageProvider may lead to information disclosure to other local users. This issue affects Apache James MIME4J version 0.8.8 and prior versions.\n\nWe recommend users to upgrade to MIME4j version 0.8.9 or later.","ecosystems":["Maven"],"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":"Apache James MIME4J: Temporary File Information Disclosure in MIME4J TempFileStorageProvider","id":"CVE-2022-45787","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"information_disclosure","year":"2022"},"n_packages":2,"n_references":1,"next":{"headline":"Code injection in EcoStruxure Control Expert","id":"CVE-2022-45788"},"packages":[{"ecosystem":"Maven","fixed":["0.8.9"],"introduced":["0"],"last_affected":[],"package":"org.apache.james:apache-mime4j-storage","purl":null,"source":"GHSA-q84x-3476-8ff2"},{"ecosystem":"Maven","fixed":["0.8.9"],"introduced":["0"],"last_affected":[],"package":"org.apache.james:apache-mime4j-storage","purl":"pkg:maven/org.apache.james/apache-mime4j-storage","source":"GHSA-q84x-3476-8ff2"}],"prev":{"headline":"Apache AGE: Python and Golang drivers allow data manipulation and exposure due to SQL injection","id":"CVE-2022-45786"},"products":["Apache James MIME4J"],"published":"2023-01-06","related":[{"cvss_score":9.8,"headline":"Apache James server: Privilege escalation via JMX pre-authentication deserialisation","id":"CVE-2023-51518","kev_date_added":null,"published":"2024-02-27"},{"cvss_score":9.8,"headline":"Vulnerability that affects org.apache.pdfbox:pdfbox","id":"CVE-2019-0228","kev_date_added":null,"published":"2019-04-17"},{"cvss_score":9.1,"headline":"Sieve file storage vulnerable to path traversal attacks","id":"CVE-2021-40525","kev_date_added":null,"published":"2022-01-04"},{"cvss_score":7.8,"headline":"Apache James server: Privilege escalation through unauthenticated JMX","id":"CVE-2023-26269","kev_date_added":null,"published":"2023-04-03"},{"cvss_score":7.8,"headline":"Denial of service in n/a","id":"CVE-2006-2806","kev_date_added":null,"published":"2006-06-05"},{"cvss_score":7.5,"headline":"STARTTLS command injection in Apache JAMES","id":"CVE-2022-28220","kev_date_added":null,"published":"2022-09-08"},{"cvss_score":7.5,"headline":"Apache James IMAP vulnerable to a ReDoS","id":"CVE-2021-40110","kev_date_added":null,"published":"2022-01-04"}],"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":"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-09","vendors":["Apache Software Foundation"]},"summary":"Local attackers can read sensitive data from temporary files due to lax permissions in the Apache James MIME4J library.","url":"https://insights.sbomify.com/CVE-2022-45787/"}