{"id":"CVE-2022-29154","details":"An issue was discovered in rsync before 3.2.5 that allows malicious remote servers to write arbitrary files inside the directories of connecting peers. The server chooses which files/directories are sent to the client. However, the rsync client performs insufficient validation of file names. A malicious rsync server (or Man-in-The-Middle attacker) can overwrite arbitrary files in the rsync client target directory and subdirectories (for example, overwrite the .ssh/authorized_keys file).","modified":"2026-05-18T23:16:26.961300Z","published":"2022-08-02T14:22:52Z","related":["ALSA-2022:6180","SUSE-RU-2023:3370-1","SUSE-SU-2022:2825-1","SUSE-SU-2022:2858-1","SUSE-SU-2022:2859-1","SUSE-SU-2022:2959-1","SUSE-SU-2022:2959-2","openSUSE-SU-2024:12232-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29154.json","cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://github.com/WayneD/rsync/tags"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29154.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NMBOJ77A7T7PQCARMDUK75TE6LLESZ3O/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YRQAI7H4M4RQZ2IWZUEEXECBE5D56BH2/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29154"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2022/08/02/1"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.samba.org/rsync.git/","events":[{"introduced":"0"},{"fixed":"0e10163a9d984a8858f7d83b5c7b46889536aa96"}],"database_specific":{"cpe":"cpe:2.3:a:samba:rsync:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.2.5"}],"source":"CPE_FIELD"}}],"versions":["v3.2.5pre2","v3.2.5pre1","v3.2.4","v3.2.4pre4","v3.2.4pre3","v3.2.4pre2","v3.2.4pre1","v3.2.3","v3.2.3pre1","v3.2.2","v3.2.2pre3","v3.2.2pre2","v3.2.2pre1","v3.2.1","v3.2.1pre1","v3.2.0","v3.2.0pre3","v3.2.0pre2","v3.2.0pre1","v3.1.3","v3.1.3pre1","v3.1.2","v3.1.2pre1","v3.1.1","v3.1.1pre2","v3.1.1pre1","v3.1.0","v3.1.0pre1","v3.0.3","v3.0.3pre3","v3.0.3pre2","v3.0.3pre1","v3.0.2","v3.0.1","v3.0.1pre3","v3.0.1pre2","v3.0.1pre1","v3.0.0","v3.0.0pre10","v3.0.0pre9","v3.0.0pre8","v3.0.0pre7","v3.0.0pre6","v3.0.0pre5","v3.0.0pre4","v3.0.0pre3","v3.0.0pre2","v3.0.0pre1","v2.6.9","v2.6.9pre3","v2.6.9pre2","v2.6.9pre1","v2.6.8","v2.6.8pre1","v2.6.7","v2.6.7pre3","v2.6.7pre2","v2.6.7pre1","v2.6.6pre1","v2.6.5","v2.6.5pre2","v2.6.5pre1","v2.6.4","v2.6.4pre4","v2.6.4pre3","v2.6.4pre2","v2.6.4pre1","v2.6.3","v2.6.3pre2","v2.6.3pre1","v2.6.2","v2.6.2pre1","v2.6.1","v2.6.1pre2","v2.6.1pre1","v2.6.0","v2.6.0pre2","v2.6.0pre1","v2.5.6","v2.5.5","v2.5.5.rc1","v2.5.4","v2.5.4pre1","v2.5.3","v2.5.3pre1","v2.5.2","v2.5.2pre3","v2.5.2pre2","v2.5.2pre1","v2.5.1","v2.5.1pre3","v2.5.1pre2","v2.5.1pre1","v2.5.0","v2.4.7pre4","v2.4.7pre2","mbp_bk_export0","v2.4.6","v2.4.5","v2.4.4","v2.4.3","v2.4.2","v2.4.1","v2.4.0","v2.3.2","v2.3.1","v2.3.0","v2.2.1","v2.2.0","v2.1.1","v2.1.0","v2.0.19","v2.0.18","v2.0.17","v2.0.16","v2.0.15","v2.0.14","v2.0.13","v2.0.12","v2.0.11","v2.0.10","v2.0.9","v2.0.8","v2.0.7","v2.0.6","v2.0.5","v2.0.4","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v1.7.4","v1.7.3","v1.7.2","v1.7.1","v1.7.0","v1.6.9","v1.6.8","v1.6.7","v1.6.6","v1.6.5","v1.6.4"],"database_specific":{"vanir_signatures":[{"deprecated":false,"target":{"file":"exclude.c"},"signature_type":"Line","digest":{"line_hashes":["322418424648570989550611125486404332983","2256083738362129417533540177355662595","29260464724962235148672620000941125284","233784350980936246018183436821512218824","246181918994674120560928381981150588850","181738393919906651933976864059518484652"],"threshold":0.9},"id":"CVE-2022-29154-0839bd4f","source":"https://git.samba.org/rsync.git/@0e10163a9d984a8858f7d83b5c7b46889536aa96","signature_version":"v1"},{"deprecated":false,"target":{"file":"exclude.c","function":"add_implied_include"},"signature_type":"Function","digest":{"function_hash":"173887927958491418062456766931855792437","length":3583},"id":"CVE-2022-29154-7edf4d08","source":"https://git.samba.org/rsync.git/@0e10163a9d984a8858f7d83b5c7b46889536aa96","signature_version":"v1"}],"vanir_signatures_modified":"2026-05-18T23:16:26Z","source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-29154.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/RsyncProject/rsync","events":[{"introduced":"0"},{"fixed":"0e10163a9d984a8858f7d83b5c7b46889536aa96"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"3.2.5"}],"source":"DESCRIPTION"}}],"versions":["v3.2.5pre2","v3.2.5pre1","v3.2.4","v3.2.4pre4","v3.2.4pre3","v3.2.4pre2","v3.2.4pre1","v3.2.3","v3.2.3pre1","v3.2.2","v3.2.2pre3","v3.2.2pre2","v3.2.2pre1","v3.2.1","v3.2.1pre1","v3.2.0","v3.2.0pre3","v3.2.0pre2","v3.2.0pre1","v3.1.3","v3.1.3pre1","v3.1.2","v3.1.2pre1","v3.1.1","v3.1.1pre2","v3.1.1pre1","v3.1.0","v3.1.0pre1","v3.0.3","v3.0.3pre3","v3.0.3pre2","v3.0.3pre1","v3.0.2","v3.0.1","v3.0.1pre3","v3.0.1pre2","v3.0.1pre1","v3.0.0","v3.0.0pre10","v3.0.0pre9","v3.0.0pre8","v3.0.0pre7","v3.0.0pre6","v3.0.0pre5","v3.0.0pre4","v3.0.0pre3","v3.0.0pre2","v3.0.0pre1","v2.6.9","v2.6.9pre3","v2.6.9pre2","v2.6.9pre1","v2.6.8","v2.6.8pre1","v2.6.7","v2.6.7pre3","v2.6.7pre2","v2.6.7pre1","v2.6.6pre1","v2.6.5","v2.6.5pre2","v2.6.5pre1","v2.6.4","v2.6.4pre4","v2.6.4pre3","v2.6.4pre2","v2.6.4pre1","v2.6.3","v2.6.3pre2","v2.6.3pre1","v2.6.2","v2.6.2pre1","v2.6.1","v2.6.1pre2","v2.6.1pre1","v2.6.0","v2.6.0pre2","v2.6.0pre1","v2.5.6","v2.5.5","v2.5.5.rc1","v2.5.4","v2.5.4pre1","v2.5.3","v2.5.3pre1","v2.5.2","v2.5.2pre3","v2.5.2pre2","v2.5.2pre1","v2.5.1","v2.5.1pre3","v2.5.1pre2","v2.5.1pre1","v2.5.0","v2.4.7pre4","v2.4.7pre2","mbp_bk_export0","v2.4.6","v2.4.5","v2.4.4","v2.4.3","v2.4.2","v2.4.1","v2.4.0","v2.3.2","v2.3.1","v2.3.0","v2.2.1","v2.2.0","v2.1.1","v2.1.0","v2.0.19","v2.0.18","v2.0.17","v2.0.16","v2.0.15","v2.0.14","v2.0.13","v2.0.12","v2.0.11","v2.0.10","v2.0.9","v2.0.8","v2.0.7","v2.0.6","v2.0.5","v2.0.4","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v1.7.4","v1.7.3","v1.7.2","v1.7.1","v1.7.0","v1.6.9","v1.6.8","v1.6.7","v1.6.6","v1.6.5","v1.6.4"],"database_specific":{"vanir_signatures":[{"deprecated":false,"target":{"file":"exclude.c","function":"add_implied_include"},"signature_type":"Function","digest":{"function_hash":"173887927958491418062456766931855792437","length":3583},"id":"CVE-2022-29154-74569e14","source":"https://github.com/RsyncProject/rsync/commit/0e10163a9d984a8858f7d83b5c7b46889536aa96","signature_version":"v1"},{"deprecated":false,"target":{"file":"exclude.c"},"signature_type":"Line","digest":{"line_hashes":["322418424648570989550611125486404332983","2256083738362129417533540177355662595","29260464724962235148672620000941125284","233784350980936246018183436821512218824","246181918994674120560928381981150588850","181738393919906651933976864059518484652"],"threshold":0.9},"id":"CVE-2022-29154-cbe0b09a","source":"https://github.com/RsyncProject/rsync/commit/0e10163a9d984a8858f7d83b5c7b46889536aa96","signature_version":"v1"}],"vanir_signatures_modified":"2026-05-18T23:16:26Z","source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-29154.json"}}],"schema_version":"1.7.5"}