{"answers":{"affected":"4 open source packages ship an affected version, including org.glassfish.jersey.core:jersey-common. It affects 3 products.","exploited":"There is no known exploitation of CVE-2021-28168 in the wild and no public exploit code.","fix":"Upgrade org.glassfish.jersey.core:jersey-common to a fixed version for your release line: 2.34 or 3.0.2.","what":"CVE-2021-28168 is a medium-severity vulnerability in Oracle Communications Cloud Native Core Policy, published on 22 Apr 2021. 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-2021-28168 and fix it if it is affected.\n\nWhat it is: CVE-2021-28168 is a medium-severity vulnerability in Oracle Communications Cloud Native Core Policy, published on 22 Apr 2021. 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-2021-28168 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.glassfish.jersey.core:jersey-common (Maven): affected from 2.28; fixed in 2.34\n- org.glassfish.jersey.core:jersey-common (Maven): affected from 2.28; fixed in 2.34\n- org.glassfish.jersey.core:jersey-common (Maven): affected from 3.0.0; fixed in 3.0.2\n- org.glassfish.jersey.core:jersey-common (Maven): affected from 3.0.0; fixed in 3.0.2\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-2021-28168/ (Markdown: https://insights.sbomify.com/CVE-2021-28168/index.md)","id":"CVE-2021-28168","markdown":"https://insights.sbomify.com/CVE-2021-28168/index.md","name":"CVE-2021-28168","record":{"aliases":["GHSA-c43q-5hpj-4crv","OESA-2021-1181","OESA-2024-1036","OESA-2024-1037","OESA-2024-1038","OESA-2024-1039"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Java web framework","requires_auth":"none","summary":"Local attackers can read sensitive data from temporary files created by Eclipse Jersey due to insecure file permissions.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"eclipse","cpe":[{"product":"jersey","vendor":"eclipse"},{"product":"communications_cloud_native_core_policy","vendor":"oracle"},{"product":"communications_cloud_native_core_unified_data_repository","vendor":"oracle"}],"cvss":{"score":6.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"},{"id":"CWE-379","name":"Creation of Temporary File in Directory with Insecure Permissions"},{"id":"CWE-378","name":"Creation of Temporary File With Insecure Permissions"}],"description":"Eclipse Jersey 2.28 to 2.33 and Eclipse Jersey 3.0.0 to 3.0.1 contains a local information disclosure vulnerability. This is due to the use of the File.createTempFile which creates a file inside of the system temporary directory with the permissions: -rw-r--r--. Thus the contents of this file are viewable by all other users locally on the system. As such, if the contents written is security sensitive, it can be disclosed to other local users.","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":"Local information disclosure via system temporary directory","id":"CVE-2021-28168","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"oracle:communications_cloud_native_core_policy","products":["oracle:communications_cloud_native_core_policy"],"type":"information_disclosure","year":"2021"},"n_packages":4,"n_references":19,"next":{"headline":"Jetty Utility Servlets ConcatServlet Double Decoding Information Disclosure Vulnerability","id":"CVE-2021-28169"},"packages":[{"ecosystem":"Maven","fixed":["2.34"],"introduced":["2.28"],"last_affected":[],"package":"org.glassfish.jersey.core:jersey-common","purl":null,"source":"GHSA-c43q-5hpj-4crv"},{"ecosystem":"Maven","fixed":["2.34"],"introduced":["2.28"],"last_affected":[],"package":"org.glassfish.jersey.core:jersey-common","purl":"pkg:maven/org.glassfish.jersey.core/jersey-common","source":"GHSA-c43q-5hpj-4crv"},{"ecosystem":"Maven","fixed":["3.0.2"],"introduced":["3.0.0"],"last_affected":[],"package":"org.glassfish.jersey.core:jersey-common","purl":null,"source":"GHSA-c43q-5hpj-4crv"},{"ecosystem":"Maven","fixed":["3.0.2"],"introduced":["3.0.0"],"last_affected":[],"package":"org.glassfish.jersey.core:jersey-common","purl":"pkg:maven/org.glassfish.jersey.core/jersey-common","source":"GHSA-c43q-5hpj-4crv"}],"prev":{"headline":"Information disclosure in Eclipse OpenJ9","id":"CVE-2021-28167"},"products":["Eclipse Jersey"],"published":"2021-04-22","related":[{"cvss_score":9.4,"headline":"Race Condition allows Bypass of Trust Restrictions","id":"CVE-2025-12383","kev_date_added":null,"published":"2025-11-18"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["The Eclipse Foundation"]},"summary":"Local attackers can read sensitive data from temporary files created by Eclipse Jersey due to insecure file permissions.","url":"https://insights.sbomify.com/CVE-2021-28168/"}