Title: zipfile.ZipFile overwrites files outside destination path · Issue #51221 · python/cpython · GitHub
Open Graph Title: zipfile.ZipFile overwrites files outside destination path · Issue #51221 · python/cpython
X Title: zipfile.ZipFile overwrites files outside destination path · Issue #51221 · python/cpython
Description: BPO 6972 Nosy @loewis, @birkenfeld, @gpshead, @amauryfa, @larryhastings, @benjaminp, @ned-deily, @bitdancer, @serhiy-storchaka Files extract-doc.diff: Update to extract() method documentationzipfile-6972-test.diff: test for directory esc...
Open Graph Description: BPO 6972 Nosy @loewis, @birkenfeld, @gpshead, @amauryfa, @larryhastings, @benjaminp, @ned-deily, @bitdancer, @serhiy-storchaka Files extract-doc.diff: Update to extract() method documentationzipfil...
X Description: BPO 6972 Nosy @loewis, @birkenfeld, @gpshead, @amauryfa, @larryhastings, @benjaminp, @ned-deily, @bitdancer, @serhiy-storchaka Files extract-doc.diff: Update to extract() method documentationzipfil...
Opengraph URL: https://github.com/python/cpython/issues/51221
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"zipfile.ZipFile overwrites files outside destination path","articleBody":"BPO | [6972](https://bugs.python.org/issue6972)\n--- | :---\nNosy | @loewis, @birkenfeld, @gpshead, @amauryfa, @larryhastings, @benjaminp, @ned-deily, @bitdancer, @serhiy-storchaka\nFiles | \u003cli\u003e[extract-doc.diff](https://bugs.python.org/file15004/extract-doc.diff \"Uploaded as text/plain at 2009-09-29.22:36:23 by twb\"): Update to extract() method documentation\u003c/li\u003e\u003cli\u003e[zipfile-6972-test.diff](https://bugs.python.org/file15005/zipfile-6972-test.diff \"Uploaded as text/plain at 2009-09-30.06:14:00 by twb\"): test for directory escape\u003c/li\u003e\u003cli\u003e[zipfile-6972-patch-2.diff](https://bugs.python.org/file15009/zipfile-6972-patch-2.diff \"Uploaded as text/plain at 2009-09-30.19:29:49 by twb\"): patch to zipfile module for directory escape, with fix for case sensitive file systems\u003c/li\u003e\u003cli\u003e[zipfile_fix_arcname_3.patch](https://bugs.python.org/file27686/zipfile_fix_arcname_3.patch \"Uploaded as text/plain at 2012-10-23.18:19:18 by @serhiy-storchaka\"): Strip leading absolute name part and \"..\" components\u003c/li\u003e\u003cli\u003e[zipfile_fix_arcname_4-2.7.patch](https://bugs.python.org/file28932/zipfile_fix_arcname_4-2.7.patch \"Uploaded as text/plain at 2013-02-02.13:20:40 by @serhiy-storchaka\")\u003c/li\u003e\u003cli\u003e[zipfile_fix_arcname_4-3.x.patch](https://bugs.python.org/file28933/zipfile_fix_arcname_4-3.x.patch \"Uploaded as text/plain at 2013-02-02.13:20:41 by @serhiy-storchaka\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = 'https://github.com/serhiy-storchaka'\nclosed_at = \u003cDate 2013-02-08.06:19:09.044\u003e\ncreated_at = \u003cDate 2009-09-22.22:10:50.564\u003e\nlabels = ['type-security', 'library', 'release-blocker']\ntitle = 'zipfile.ZipFile overwrites files outside destination path'\nupdated_at = \u003cDate 2013-02-08.20:04:05.696\u003e\nuser = 'https://bugs.python.org/schmir'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2013-02-08.20:04:05.696\u003e\nactor = 'Arfrever'\nassignee = 'serhiy.storchaka'\nclosed = True\nclosed_date = \u003cDate 2013-02-08.06:19:09.044\u003e\ncloser = 'gregory.p.smith'\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2009-09-22.22:10:50.564\u003e\ncreator = 'schmir'\ndependencies = []\nfiles = ['15004', '15005', '15009', '27686', '28932', '28933']\nhgrepos = []\nissue_num = 6972\nkeywords = ['patch', 'needs review']\nmessage_count = 50.0\nmessages = ['93021', '93251', '93268', '93269', '93278', '93305', '93330', '93331', '93332', '93333', '93334', '93336', '93349', '93372', '93374', '93375', '93376', '93379', '93380', '93381', '93382', '93396', '93420', '93426', '157763', '157778', '157789', '173526', '173567', '173630', '180681', '181055', '181072', '181102', '181106', '181134', '181158', '181159', '181161', '181162', '181163', '181166', '181171', '181178', '181183', '181188', '181244', '181646', '181647', '181659']\nnosy_count = 14.0\nnosy_names = ['loewis', 'georg.brandl', 'gregory.p.smith', 'amaury.forgeotdarc', 'larry', 'schmir', 'benjamin.peterson', 'ned.deily', 'Arfrever', 'r.david.murray', 'twb', 'catalin.iacob', 'python-dev', 'serhiy.storchaka']\npr_nums = []\npriority = 'release blocker'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'security'\nurl = 'https://bugs.python.org/issue6972'\nversions = ['Python 2.7', 'Python 3.2', 'Python 3.3', 'Python 3.4']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/schmir","@type":"Person","name":"schmir"},"datePublished":"2009-09-22T22:10:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":50},"url":"https://github.com/51221/cpython/issues/51221"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7d26999b-1b21-6c63-ebad-6bb9f19627bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9532:3A7DF7:3F737A:54224D:696B3F54 |
| html-safe-nonce | dc7828eb8828edb30f2d9390d5f53a43416b2f0c47671c880ba5d1da41b45207 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTMyOjNBN0RGNzozRjczN0E6NTQyMjREOjY5NkIzRjU0IiwidmlzaXRvcl9pZCI6IjU4OTAzMzAwODIzNjkyOTAwNjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dd377a7cdb7c8aaf3a7da2ada210875ade3fece1435153c4526e098cba689c16 |
| hovercard-subject-tag | issue:1198848328 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/51221/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c800cdcddd3b470912c971949354905bf8ed13e75790cbb71f8b44c9e432dd20/python/cpython/issues/51221 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c800cdcddd3b470912c971949354905bf8ed13e75790cbb71f8b44c9e432dd20/python/cpython/issues/51221 |
| og:image:alt | BPO 6972 Nosy @loewis, @birkenfeld, @gpshead, @amauryfa, @larryhastings, @benjaminp, @ned-deily, @bitdancer, @serhiy-storchaka Files extract-doc.diff: Update to extract() method documentationzipfil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | schmir |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width