{"id":"CVE-2021-34363","aliases":["DEBIAN-CVE-2021-34363","EUVD-2021-0453","GHSA-8wwf-2644-f8x4","PYSEC-2021-97","UBUNTU-CVE-2021-34363"],"status":"published","title":"The Fuck Arbitrary File Deletion via Path Traversal","description":"The thefuck (aka The Fuck) package before 3.31 for Python allows Path Traversal that leads to arbitrary file deletion via the \"undo archive operation\" feature.","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01847,"percentile":0.79355,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2021-06-10T10:07:03Z","modified":"2026-10-23T18:04:50Z","fixes":[{"ecosystem":"PyPI","package":"thefuck","fixed_in":["3.31"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"thefuck","fixed_in":["3.29-0.3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"thefuck","fixed_in":["3.29-0.3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"thefuck","fixed_in":["3.29-0.3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.31"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.29-0.3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.29-0.3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.29-0.3"}]}]},{"source":"osv","ecosystem":"PyPI","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.31"}]}],"versions":["0.1","1","1.0","1.1","1.11","1.12","1.13","1.14","1.15","1.16","1.17","1.18","1.19","1.2","1.20","1.21","1.22","1.23","1.26","1.27","1.28","1.29","1.3","1.30","1.31","1.32","1.33","1.34","1.35","1.36","1.37","1.38","1.39","1.4","1.40","1.41","1.42","1.43","1.44","1.45","1.46","1.47","1.48","1.49","1.49.1","1.5","1.6","1.7","1.8","1.9","1dev","2.0","2.1","2.2","2.3","2.4","2.5","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.5.6","2.6","2.7","2.8","2.9","2.9.1","3.0","3.1","3.10","3.11","3.12","3.13","3.14","3.15","3.16","3.17","3.18","3.19","3.2","3.20","3.21","3.22","3.23","3.24","3.25","3.26","3.27","3.28","3.29","3.3","3.30","3.4","3.5","3.6","3.7","3.8","3.9"]},{"source":"osv","ecosystem":"PyPI","package":"thefuck","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"e343c577cd7da4d304b837d4a07ab4df1e023092"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.31"}]}],"versions":["0.1","1","1.0","1.1","1.11","1.12","1.13","1.14","1.15","1.16","1.17","1.18","1.19","1.2","1.20","1.21","1.22","1.23","1.26","1.27","1.28","1.29","1.3","1.30","1.31","1.32","1.33","1.34","1.35","1.36","1.37","1.38","1.39","1.4","1.40","1.41","1.42","1.43","1.44","1.45","1.46","1.47","1.48","1.49","1.49.1","1.5","1.6","1.7","1.8","1.9","1dev","2.0","2.1","2.2","2.3","2.4","2.5","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.5.6","2.6","2.7","2.8","2.9","2.9.1","3.0","3.1","3.10","3.11","3.12","3.13","3.14","3.15","3.16","3.17","3.18","3.19","3.2","3.20","3.21","3.22","3.23","3.24","3.25","3.26","3.27","3.28","3.29","3.3","3.30","3.4","3.5","3.6","3.7","3.8","3.9"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.6-1","3.2-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.11-2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.29-0.1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.29-0.3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.29-0.3","3.29-0.3ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.32-0.2","3.32-0.3","3.32-0.4"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.32-0.4","3.32-0.5"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"thefuck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.32-0.4"]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"the_fuck_project","product":"the_fuck"}],"references":[{"url":"https://github.com/nvbn/thefuck/releases/tag/3.31","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web","report"]},{"url":"https://vuln.ryotak.me/advisories/48","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/nvbn/thefuck/commit/e343c577cd7da4d304b837d4a07ab4df1e023092","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4MEDDLBFVRUQHPYIBJ4MFM3M4NUJUXL5/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YA6UNQSOY6M3NJDZLS6YJXTS4WGDMEEJ/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-34363","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/thefuck/PYSEC-2021-97.yaml","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4MEDDLBFVRUQHPYIBJ4MFM3M4NUJUXL5","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YA6UNQSOY6M3NJDZLS6YJXTS4WGDMEEJ","tags":["web"]},{"url":"https://github.com/advisories/GHSA-8wwf-2644-f8x4","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-34363","tags":["advisory"]},{"url":"https://github.com/nvbn/thefuck","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2021-34363","tags":["report"]},{"url":"https://github.com/nvbn/thefuck/pull/1206","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-34363","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-34363","description":"The thefuck (aka The Fuck) package before 3.31 for Python allows Path Traversal that leads to arbitrary file deletion via the \"undo archive operation\" feature.","status":"published","published":"2021-06-10T10:07:03Z","modified":"2024-08-04T00:12:50.063Z","updated_at":"2026-11-02T14:33:11.59359Z"}],"euvd":[{"id":"EUVD-2021-0453","description":"The thefuck (aka The Fuck) package before 3.31 for Python allows Path Traversal that leads to arbitrary file deletion via the \"undo archive operation\" feature.","status":"published","published":"2021-06-10T10:07:03Z","modified":"2024-08-04T00:12:50Z","updated_at":"2026-11-03T03:24:32.445199Z"}],"ghsa":[{"id":"GHSA-8wwf-2644-f8x4","title":"The Fuck Arbitrary File Deletion via Path Traversal","description":"The thefuck (aka _The Fuck_) is app that corrects errors in previous console commands. _The Fuck_ python package before 3.31 allows Path Traversal that leads to arbitrary file deletion via the `undo archive operation` feature.","status":"published","published":"2021-06-15T15:49:01Z","modified":"2024-11-13T23:02:07Z","cvss":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:38:18.163845Z"}],"nvd":[{"id":"CVE-2021-34363","description":"The thefuck (aka The Fuck) package before 3.31 for Python allows Path Traversal that leads to arbitrary file deletion via the \"undo archive operation\" feature.","status":"published","published":"2021-06-10T11:15:09.357Z","modified":"2026-06-17T03:55:43.56Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:06:54.439974Z"}],"osv":[{"id":"CVE-2021-34363","description":"The thefuck (aka The Fuck) package before 3.31 for Python allows Path Traversal that leads to arbitrary file deletion via the \"undo archive operation\" feature.","status":"published","published":"2021-06-10T11:15:09.357Z","modified":"2026-10-20T10:53:48.974713549Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"DEBIAN-CVE-2021-34363","description":"The thefuck (aka The Fuck) package before 3.31 for Python allows Path Traversal that leads to arbitrary file deletion via the \"undo archive operation\" feature.","status":"published","published":"2021-06-10T11:15:09.357Z","modified":"2026-10-23T18:04:50.037379856Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"GHSA-8wwf-2644-f8x4","title":"The Fuck Arbitrary File Deletion via Path Traversal","description":"The thefuck (aka _The Fuck_) is app that corrects errors in previous console commands. _The Fuck_ python package before 3.31 allows Path Traversal that leads to arbitrary file deletion via the `undo archive operation` feature.","status":"published","published":"2021-06-15T15:49:01Z","modified":"2024-11-13T23:23:21.007345Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"},{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:42.78452Z"},{"id":"UBUNTU-CVE-2021-34363","description":"The thefuck (aka The Fuck) package before 3.31 for Python allows Path Traversal that leads to arbitrary file deletion via the \"undo archive operation\" feature.","status":"published","published":"2021-06-10T11:15:00Z","modified":"2026-10-17T12:56:20.36445477Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:27.870979Z"},{"id":"PYSEC-2021-97","description":"The thefuck (aka The Fuck) package before 3.31 for Python allows Path Traversal that leads to arbitrary file deletion via the \"undo archive operation\" feature.","status":"published","published":"2021-06-10T11:15:00Z","modified":"2023-11-08T04:06:07.691196Z","updated_at":"2026-11-02T15:52:53.449407Z"}]}}
