{"answers":{"affected":"6 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-contract-shade. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-22236 in the wild and no public exploit code.","fix":"Upgrade org.springframework.cloud:spring-cloud-contract-shade to a fixed version for your release line: 3.1.10, 4.0.5 or 4.1.1.","what":"CVE-2024-22236 is a low-severity vulnerability in Spring Cloud Contract, published on 31 Jan 2024. 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-2024-22236 and fix it if it is affected.\n\nWhat it is: CVE-2024-22236 is a low-severity vulnerability in Spring Cloud Contract, published on 31 Jan 2024. 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-2024-22236 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.cloud:spring-cloud-contract-shade (Maven): affected from 3.1.0; fixed in 3.1.10\n- org.springframework.cloud:spring-cloud-contract-shade (Maven): affected from 3.1.0; fixed in 3.1.10\n- org.springframework.cloud:spring-cloud-contract-shade (Maven): affected from 4.0.0; fixed in 4.0.5\n- org.springframework.cloud:spring-cloud-contract-shade (Maven): affected from 4.0.0; fixed in 4.0.5\n- org.springframework.cloud:spring-cloud-contract-shade (Maven): affected from 4.1.0; fixed in 4.1.1\n- org.springframework.cloud:spring-cloud-contract-shade (Maven): affected from 4.1.0; fixed in 4.1.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-22236/ (Markdown: https://insights.sbomify.com/CVE-2024-22236/index.md)","id":"CVE-2024-22236","markdown":"https://insights.sbomify.com/CVE-2024-22236/index.md","name":"CVE-2024-22236","record":{"aliases":["GHSA-p6rp-mx85-m459"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Spring Cloud Contract","requires_auth":"low_privilege","summary":"Local attackers can read sensitive data from temporary directories due to unsafe permissions in Spring Cloud Contract test execution.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"spring_cloud_contract","vendor":"vmware"}],"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-732","name":"Incorrect Permission Assignment for Critical Resource"},{"id":"CWE-377","name":"DEPRECATED: Insecure Temporary File"}],"description":"In Spring Cloud Contract, versions 4.1.x prior to 4.1.1, versions 4.0.x prior to 4.0.5, and versions 3.1.x prior to 3.1.10, test execution is vulnerable to local information disclosure via temporary directory created with unsafe permissions through the shaded com.google.guava:guava dependency in the org.springframework.cloud:spring-cloud-contract-shade dependency.","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":"Spring Cloud Contract vulnerable to local information disclosure","id":"CVE-2024-22236","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":6,"n_references":1,"next":{"headline":"Privilege escalation in VMware Aria Operations for Networks","id":"CVE-2024-22237"},"packages":[{"ecosystem":"Maven","fixed":["3.1.10"],"introduced":["3.1.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-contract-shade","purl":null,"source":"GHSA-p6rp-mx85-m459"},{"ecosystem":"Maven","fixed":["3.1.10"],"introduced":["3.1.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-contract-shade","purl":"pkg:maven/org.springframework.cloud/spring-cloud-contract-shade","source":"GHSA-p6rp-mx85-m459"},{"ecosystem":"Maven","fixed":["4.0.5"],"introduced":["4.0.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-contract-shade","purl":null,"source":"GHSA-p6rp-mx85-m459"},{"ecosystem":"Maven","fixed":["4.0.5"],"introduced":["4.0.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-contract-shade","purl":"pkg:maven/org.springframework.cloud/spring-cloud-contract-shade","source":"GHSA-p6rp-mx85-m459"},{"ecosystem":"Maven","fixed":["4.1.1"],"introduced":["4.1.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-contract-shade","purl":null,"source":"GHSA-p6rp-mx85-m459"},{"ecosystem":"Maven","fixed":["4.1.1"],"introduced":["4.1.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-contract-shade","purl":"pkg:maven/org.springframework.cloud/spring-cloud-contract-shade","source":"GHSA-p6rp-mx85-m459"}],"prev":{"headline":"Privilege escalation in VMware Aria Operations","id":"CVE-2024-22235"},"products":["Spring Cloud Contract"],"published":"2024-01-31","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":"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-06-03","vendors":["Spring"]},"summary":"Local attackers can read sensitive data from temporary directories due to unsafe permissions in Spring Cloud Contract test execution.","url":"https://insights.sbomify.com/CVE-2024-22236/"}