{"answers":{"affected":"It affects 18 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12087 exists.","fix":"Apply the vendor's patch.","what":"CVE-2024-12087 is a medium-severity path traversal vulnerability in Gentoo Linux, published on 14 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-12087 and fix it if it is affected.\n\nWhat it is: CVE-2024-12087 is a medium-severity path traversal vulnerability in Gentoo Linux, published on 14 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12087 exists.\n\nAffected product: Gentoo Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-12087/ (Markdown: https://insights.sbomify.com/CVE-2024-12087/index.md)","id":"CVE-2024-12087","markdown":"https://insights.sbomify.com/CVE-2024-12087/index.md","name":"CVE-2024-12087","record":{"aliases":["ALPINE-CVE-2024-12087","AZL-55655","AZL-55682","BELL-CVE-2024-12087","CLSA-2025-1738833802","CLSA-2025-1738958235","CLSA-2025-1751612441","CLSA-2025-1751913256","CLSA-2025-1757608663","DEBIAN-CVE-2024-12087","GHSA-9x68-7qq6-v523","JLSEC-2025-326","RHSA-2025:23154","RHSA-2025:23235","RHSA-2025:23407","RHSA-2025:23415","RHSA-2025:23416","RHSA-2025:23842","RHSA-2025:23853","RHSA-2025:23854","RHSA-2025:23858","UBUNTU-CVE-2024-12087"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Rsync file transfer","requires_auth":"none","summary":"A malicious rsync server can write files to arbitrary locations on the client system due to improper symlink verification during recursive transfers.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"almalinux","vendor":"almalinux"},{"product":"arch_linux","vendor":"archlinux"},{"product":"linux","vendor":"gentoo"},{"product":"nixos","vendor":"nixos"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_eus","vendor":"redhat"},{"product":"enterprise_linux_for_arm_64","vendor":"redhat"},{"product":"enterprise_linux_for_arm_64_eus","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems_eus","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian_eus","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","vendor":"redhat"},{"product":"enterprise_linux_update_services_for_sap_solutions","vendor":"redhat"},{"product":"rsync","vendor":"samba"},{"product":"suse_linux","vendor":"suse"},{"product":"smartos","vendor":"tritondatacenter"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"A path traversal vulnerability exists in rsync. It stems from behavior enabled by the `--inc-recursive` option, a default-enabled option for many client options and can be enabled by the server even if not explicitly enabled by the client. When using the `--inc-recursive` option, a lack of proper symlink verification coupled with deduplication checks occurring on a per-file-list basis could allow a server to write files outside of the client's intended destination directory. A malicious server could write malicious files to arbitrary locations named after valid directories/paths on the client.","ecosystems":["Red Hat:rhel_aus:8.2::baseos","Red Hat:rhel_aus:8.4::baseos","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.6::baseos","Red Hat:rhel_e4s:8.8::baseos","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_e4s:9.0::baseos","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_e4s:9.2::baseos","Red Hat:rhel_els:6","Red Hat:rhel_els:7","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_eus:9.4::baseos","Red Hat:rhel_eus_long_life:8.4::baseos","Red Hat:rhel_tus:8.6::baseos","Red Hat:rhel_tus:8.8::baseos"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Rsync: path traversal vulnerability in rsync","id":"CVE-2024-12087","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"gentoo:linux","products":["gentoo:linux","redhat:enterprise_linux","redhat:enterprise_linux_eus","redhat:enterprise_linux_for_ibm_z_systems","redhat:enterprise_linux_for_ibm_z_systems_eus","redhat:enterprise_linux_for_power_little_endian","redhat:enterprise_linux_for_power_little_endian_eus","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","suse:suse_linux"],"type":"path_traversal","year":"2024"},"n_packages":48,"n_references":16,"next":{"headline":"Rsync: --safe-links option bypass leads to path traversal","id":"CVE-2024-12088"},"packages":[{"ecosystem":"Red Hat:rhel_aus:8.2::baseos","fixed":["0:3.1.3-7.el8_2.6"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23842"},{"ecosystem":"Red Hat:rhel_aus:8.2::baseos","fixed":["0:3.1.3-7.el8_2.6"],"introduced":["0"],"last_affected":[],"package":"rsync-daemon","purl":"pkg:rpm/redhat/rsync-daemon","source":"RHSA-2025:23842"},{"ecosystem":"Red Hat:rhel_aus:8.2::baseos","fixed":["0:3.1.3-7.el8_2.6"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23842"},{"ecosystem":"Red Hat:rhel_aus:8.2::baseos","fixed":["0:3.1.3-7.el8_2.6"],"introduced":["0"],"last_affected":[],"package":"rsync-debugsource","purl":"pkg:rpm/redhat/rsync-debugsource","source":"RHSA-2025:23842"},{"ecosystem":"Red Hat:rhel_aus:8.4::baseos","fixed":["0:3.1.3-12.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23853"},{"ecosystem":"Red Hat:rhel_aus:8.4::baseos","fixed":["0:3.1.3-12.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"rsync-daemon","purl":"pkg:rpm/redhat/rsync-daemon","source":"RHSA-2025:23853"},{"ecosystem":"Red Hat:rhel_aus:8.4::baseos","fixed":["0:3.1.3-12.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23853"},{"ecosystem":"Red Hat:rhel_aus:8.4::baseos","fixed":["0:3.1.3-12.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"rsync-debugsource","purl":"pkg:rpm/redhat/rsync-debugsource","source":"RHSA-2025:23853"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:3.1.3-14.el8_6.9"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23854"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:3.1.3-14.el8_6.9"],"introduced":["0"],"last_affected":[],"package":"rsync-daemon","purl":"pkg:rpm/redhat/rsync-daemon","source":"RHSA-2025:23854"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:3.1.3-14.el8_6.9"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23854"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:3.1.3-14.el8_6.9"],"introduced":["0"],"last_affected":[],"package":"rsync-debugsource","purl":"pkg:rpm/redhat/rsync-debugsource","source":"RHSA-2025:23854"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:3.1.3-14.el8_6.9"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23854"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:3.1.3-14.el8_6.9"],"introduced":["0"],"last_affected":[],"package":"rsync-daemon","purl":"pkg:rpm/redhat/rsync-daemon","source":"RHSA-2025:23854"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:3.1.3-14.el8_6.9"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23854"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:3.1.3-14.el8_6.9"],"introduced":["0"],"last_affected":[],"package":"rsync-debugsource","purl":"pkg:rpm/redhat/rsync-debugsource","source":"RHSA-2025:23854"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:3.1.3-20.el8_8.4"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23858"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:3.1.3-20.el8_8.4"],"introduced":["0"],"last_affected":[],"package":"rsync-daemon","purl":"pkg:rpm/redhat/rsync-daemon","source":"RHSA-2025:23858"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:3.1.3-20.el8_8.4"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23858"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:3.1.3-20.el8_8.4"],"introduced":["0"],"last_affected":[],"package":"rsync-debugsource","purl":"pkg:rpm/redhat/rsync-debugsource","source":"RHSA-2025:23858"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:3.2.3-9.el9_0.4"],"introduced":["0"],"last_affected":[],"package":"rsync-daemon","purl":"pkg:rpm/redhat/rsync-daemon","source":"RHSA-2025:23407"},{"ecosystem":"Red Hat:rhel_e4s:9.0::baseos","fixed":["0:3.2.3-9.el9_0.4"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23407"},{"ecosystem":"Red Hat:rhel_e4s:9.0::baseos","fixed":["0:3.2.3-9.el9_0.4"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23407"},{"ecosystem":"Red Hat:rhel_e4s:9.0::baseos","fixed":["0:3.2.3-9.el9_0.4"],"introduced":["0"],"last_affected":[],"package":"rsync-debugsource","purl":"pkg:rpm/redhat/rsync-debugsource","source":"RHSA-2025:23407"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:3.2.3-19.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"rsync-daemon","purl":"pkg:rpm/redhat/rsync-daemon","source":"RHSA-2025:23235"},{"ecosystem":"Red Hat:rhel_e4s:9.2::baseos","fixed":["0:3.2.3-19.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23235"},{"ecosystem":"Red Hat:rhel_e4s:9.2::baseos","fixed":["0:3.2.3-19.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23235"},{"ecosystem":"Red Hat:rhel_e4s:9.2::baseos","fixed":["0:3.2.3-19.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"rsync-debugsource","purl":"pkg:rpm/redhat/rsync-debugsource","source":"RHSA-2025:23235"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["0:3.0.6-12.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23416"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["0:3.0.6-12.el6_10.2"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23416"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:3.1.2-12.el7_9.2"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23415"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:3.1.2-12.el7_9.2"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23415"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.2.3-19.el9_4.2"],"introduced":["0"],"last_affected":[],"package":"rsync-daemon","purl":"pkg:rpm/redhat/rsync-daemon","source":"RHSA-2025:23154"},{"ecosystem":"Red Hat:rhel_eus:9.4::baseos","fixed":["0:3.2.3-19.el9_4.2"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23154"},{"ecosystem":"Red Hat:rhel_eus:9.4::baseos","fixed":["0:3.2.3-19.el9_4.2"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23154"},{"ecosystem":"Red Hat:rhel_eus:9.4::baseos","fixed":["0:3.2.3-19.el9_4.2"],"introduced":["0"],"last_affected":[],"package":"rsync-debugsource","purl":"pkg:rpm/redhat/rsync-debugsource","source":"RHSA-2025:23154"},{"ecosystem":"Red Hat:rhel_eus_long_life:8.4::baseos","fixed":["0:3.1.3-12.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"rsync","purl":"pkg:rpm/redhat/rsync","source":"RHSA-2025:23853"},{"ecosystem":"Red Hat:rhel_eus_long_life:8.4::baseos","fixed":["0:3.1.3-12.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"rsync-daemon","purl":"pkg:rpm/redhat/rsync-daemon","source":"RHSA-2025:23853"},{"ecosystem":"Red Hat:rhel_eus_long_life:8.4::baseos","fixed":["0:3.1.3-12.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"rsync-debuginfo","purl":"pkg:rpm/redhat/rsync-debuginfo","source":"RHSA-2025:23853"},{"ecosystem":"Red Hat:rhel_eus_long_life:8.4::baseos","fixed":["0:3.1.3-12.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"rsync-debugsource","purl":"pkg:rpm/redhat/rsync-debugsource","source":"RHSA-2025:23853"}],"prev":{"headline":"Rsync: rsync server leaks arbitrary client files","id":"CVE-2024-12086"},"products":["Red Hat Discovery 1.14","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 6 Extended Lifecycle Support  - EXTENSION","Red Hat Enterprise Linux 7 Extended Lifecycle Support","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 8.2 Advanced Update Support","Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On","Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.6 Telecommunications Update Service","Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions","Red Hat Enterprise Linux 8.8 Telecommunications Update Service","Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions","Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions","Red Hat Enterprise Linux 9.4 Extended Update Support","Red Hat OpenShift Container Platform 4"],"published":"2025-01-14","related":[{"cvss_score":9.8,"headline":"Rsync: heap buffer overflow in rsync due to improper checksum length handling","id":"CVE-2024-12084","kev_date_added":null,"published":"2025-01-15"},{"cvss_score":8.1,"headline":"Openssh: regresshion - race condition in ssh allows rce/dos","id":"CVE-2024-6387","kev_date_added":null,"published":"2024-07-01"},{"cvss_score":7.5,"headline":"Rsync: info leak via uninitialized stack contents","id":"CVE-2024-12085","kev_date_added":null,"published":"2025-01-14"},{"cvss_score":6.5,"headline":"Rsync: --safe-links option bypass leads to path traversal","id":"CVE-2024-12088","kev_date_added":null,"published":"2025-01-14"},{"cvss_score":6.1,"headline":"Rsync: rsync server leaks arbitrary client files","id":"CVE-2024-12086","kev_date_added":null,"published":"2025-01-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-21","vendors":["Red Hat"]},"summary":"A malicious rsync server can write files to arbitrary locations on the client system due to improper symlink verification during recursive transfers.","url":"https://insights.sbomify.com/CVE-2024-12087/"}