René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7d26999b-1b21-6c63-ebad-6bb9f19627bd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9532:3A7DF7:3F737A:54224D:696B3F54
html-safe-noncedc7828eb8828edb30f2d9390d5f53a43416b2f0c47671c880ba5d1da41b45207
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTMyOjNBN0RGNzozRjczN0E6NTQyMjREOjY5NkIzRjU0IiwidmlzaXRvcl9pZCI6IjU4OTAzMzAwODIzNjkyOTAwNjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdd377a7cdb7c8aaf3a7da2ada210875ade3fece1435153c4526e098cba689c16
hovercard-subject-tagissue:1198848328
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/51221/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c800cdcddd3b470912c971949354905bf8ed13e75790cbb71f8b44c9e432dd20/python/cpython/issues/51221
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c800cdcddd3b470912c971949354905bf8ed13e75790cbb71f8b44c9e432dd20/python/cpython/issues/51221
og:image:altBPO 6972 Nosy @loewis, @birkenfeld, @gpshead, @amauryfa, @larryhastings, @benjaminp, @ned-deily, @bitdancer, @serhiy-storchaka Files extract-doc.diff: Update to extract() method documentationzipfil...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameschmir
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/51221#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F51221
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F51221
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/51221
Reloadhttps://github.com/python/cpython/issues/51221
Reloadhttps://github.com/python/cpython/issues/51221
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/51221
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/51221
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/51221
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/51221
zipfile.ZipFile overwrites files outside destination pathhttps://github.com/python/cpython/issues/51221#top
https://github.com/serhiy-storchaka
release-blockerhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22release-blocker%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-securityA security issuehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-security%22
on Sep 22, 2009https://github.com/python/cpython/issues/51221#issue-1198848328
6972https://bugs.python.org/issue6972
@loewishttps://github.com/loewis
@birkenfeldhttps://github.com/birkenfeld
@gpsheadhttps://github.com/gpshead
@amauryfahttps://github.com/amauryfa
@larryhastingshttps://github.com/larryhastings
@benjaminphttps://github.com/benjaminp
@ned-deilyhttps://github.com/ned-deily
@bitdancerhttps://github.com/bitdancer
@serhiy-storchakahttps://github.com/serhiy-storchaka
extract-doc.diffhttps://bugs.python.org/file15004/extract-doc.diff
zipfile-6972-test.diffhttps://bugs.python.org/file15005/zipfile-6972-test.diff
zipfile-6972-patch-2.diffhttps://bugs.python.org/file15009/zipfile-6972-patch-2.diff
zipfile_fix_arcname_3.patchhttps://bugs.python.org/file27686/zipfile_fix_arcname_3.patch
zipfile_fix_arcname_4-2.7.patchhttps://bugs.python.org/file28932/zipfile_fix_arcname_4-2.7.patch
zipfile_fix_arcname_4-3.x.patchhttps://bugs.python.org/file28933/zipfile_fix_arcname_4-3.x.patch
serhiy-storchakahttps://github.com/serhiy-storchaka
release-blockerhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22release-blocker%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-securityA security issuehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-security%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.