René's URL Explorer Experiment


Title: UAF when writing to a bytearray with an element implementing `__index__` with side-effects · Issue #91153 · python/cpython · GitHub

Open Graph Title: UAF when writing to a bytearray with an element implementing `__index__` with side-effects · Issue #91153 · python/cpython

X Title: UAF when writing to a bytearray with an element implementing `__index__` with side-effects · Issue #91153 · python/cpython

Description: BPO 46997 Nosy @gvanrossum, @JelleZijlstra Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state. Show more details GitHub fields: assignee = None closed_at = None created_a...

Open Graph Description: BPO 46997 Nosy @gvanrossum, @JelleZijlstra Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state. Show more details GitHub fields: as...

X Description: BPO 46997 Nosy @gvanrossum, @JelleZijlstra Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state. Show more details GitHub fields: as...

Opengraph URL: https://github.com/python/cpython/issues/91153

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UAF when writing to a bytearray with an element implementing `__index__` with side-effects","articleBody":"BPO | [46997](https://bugs.python.org/issue46997)\n--- | :---\nNosy | @gvanrossum, @JelleZijlstra\n\n\u003csup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup>\n\n\u003cdetails>\u003csummary>Show more details\u003c/summary>\u003cp>\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = None\ncreated_at = \u003cDate 2022-03-13.02:05:03.024>\nlabels = ['interpreter-core', '3.9', '3.10', '3.11']\ntitle = 'Invalid memory write in bytearray'\nupdated_at = \u003cDate 2022-03-13.02:14:01.825>\nuser = 'https://github.com/JelleZijlstra'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2022-03-13.02:14:01.825>\nactor = 'JelleZijlstra'\nassignee = 'none'\nclosed = False\nclosed_date = None\ncloser = None\ncomponents = ['Interpreter Core']\ncreation = \u003cDate 2022-03-13.02:05:03.024>\ncreator = 'JelleZijlstra'\ndependencies = []\nfiles = []\nhgrepos = []\nissue_num = 46997\nkeywords = []\nmessage_count = 2.0\nmessages = ['415021', '415022']\nnosy_count = 2.0\nnosy_names = ['gvanrossum', 'JelleZijlstra']\npr_nums = []\npriority = 'normal'\nresolution = None\nstage = None\nstatus = 'open'\nsuperseder = None\ntype = None\nurl = 'https://bugs.python.org/issue46997'\nversions = ['Python 3.9', 'Python 3.10', 'Python 3.11']\n```\n\n\u003c/p>\u003c/details>\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-132379\n* gh-136581\n* gh-136582\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2022-03-13T02:05:03Z","url":"https://github.com/python/cpython/issues/91153"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:76bc70bf-97ac-82e9-0ca1-c3897032ca5e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD748:9E08E:1635AD1:1BB82D7:6B025CA3
html-safe-nonce3fb4183d5677d2dcbe52cde6c746e15fb552d227106cf9fb76f76da3498a9972
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzQ4OjlFMDhFOjE2MzVBRDE6MUJCODJENzo2QjAyNUNBMyIsInZpc2l0b3JfaWQiOiI3NzI1NzU0MzY0NTg0OTQyNzU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac79a3c094ae111c163508239561e38d155acd24b0926c54dc74e5b9d339492d94
hovercard-subject-tagissue:1199076867
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/91153/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c1aea08e4f5352ba3f41895fde8bd5b32c120aa4954d726c115bf0ced791ea5c/python/cpython/issues/91153
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c1aea08e4f5352ba3f41895fde8bd5b32c120aa4954d726c115bf0ced791ea5c/python/cpython/issues/91153
og:image:altBPO 46997 Nosy @gvanrossum, @JelleZijlstra Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state. Show more details GitHub fields: as...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJelleZijlstra
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/91153#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F91153
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F91153
Sign uphttps://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/91153
Reloadhttps://github.com/python/cpython/issues/91153
Reloadhttps://github.com/python/cpython/issues/91153
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/91153
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/91153
UAF when writing to a bytearray with an element implementing __index__ with side-effectshttps://github.com/python/cpython/issues/91153#top
https://github.com/brandtbucher
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Mar 13, 2022https://github.com/python/cpython/issues/91153#issue-1199076867
46997https://bugs.python.org/issue46997
@gvanrossumhttps://github.com/gvanrossum
@JelleZijlstrahttps://github.com/JelleZijlstra
gh-91153: Fix bytearray holding a reference to its internal buffer when calling into potentially mutating __index__ methods #132379https://github.com/python/cpython/pull/132379
[3.14] gh-91153: prevent a crash in bytearray.__setitem__(ind, ...) when ind.__index__ has side-effects (GH-132379) #136581https://github.com/python/cpython/pull/136581
[3.13] gh-91153: prevent a crash in bytearray.__setitem__(ind, ...) when ind.__index__ has side-effects (GH-132379) #136582https://github.com/python/cpython/pull/136582
Nexthttps://github.com/python/cpython/issues/91153?timeline_page=1
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Mar 13, 2022https://github.com/python/cpython/issues/91153#issuecomment-1093946469
https://github.com/python/cpython/pull/31834/files#r825352900https://github.com/python/cpython/pull/31834/files#r825352900
JelleZijlstrahttps://github.com/JelleZijlstra
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
3.10 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.10%20(EOL)%22
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
on Mar 13, 2022https://github.com/python/cpython/issues/91153#event-6404218284
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Mar 13, 2022https://github.com/python/cpython/issues/91153#issuecomment-1093946470
Objects/bytearrayobject.c:640https://github.com/python/cpython/blob/main/Objects/bytearrayobject.c#L640
#1https://github.com/python/cpython/pull/1
Python/ceval.c:1990https://github.com/python/cpython/blob/main/Python/ceval.c#L1990
#2https://github.com/python/cpython/pull/2
JelleZijlstrahttps://github.com/JelleZijlstra
3.9 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20(EOL)%22
on Mar 13, 2022https://github.com/python/cpython/issues/91153#event-6404218287
ezio-melottihttps://github.com/ezio-melotti
https://github.com/python/cpython/issues/undefined
on Apr 10, 2022https://github.com/python/cpython/issues/91153#event-6404218291
gvanrossumhttps://github.com/gvanrossum
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
on Apr 22, 2022https://github.com/python/cpython/issues/91153#event-6475658301
https://github.com/chilaxan
chilaxanhttps://github.com/chilaxan
on May 19, 2022https://github.com/python/cpython/issues/91153#issuecomment-1132117665
https://user-images.githubusercontent.com/35645806/169387063-521c2a85-92ce-45f4-b173-da908694f6d0.png
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
on Jul 13, 2022https://github.com/python/cpython/issues/91153#issuecomment-1183294680
brandtbucherhttps://github.com/brandtbucher
on Jul 16, 2022https://github.com/python/cpython/issues/91153#event-7005718444
brandtbucherhttps://github.com/brandtbucher
on Jul 19, 2022https://github.com/python/cpython/issues/91153#event-7022352560
GH-91153: Handle mutating __index__ methods in bytearray item assignm…https://github.com/python/cpython/commit/f36589510b8708fa224d799d5b328deab558aa4e
GH-91153https://github.com/python/cpython/issues/91153
f365895https://github.com/python/cpython/commit/f36589510b8708fa224d799d5b328deab558aa4e
miss-islingtonhttps://github.com/miss-islington
on Jul 19, 2022https://github.com/python/cpython/issues/91153#event-7022352784
pythonGH-91153: Handle mutating __index__ methods in bytearray item a…https://github.com/miss-islington/cpython/commit/da3610cf3b9ebce8519c01c1c4ddc994c3986a9f
pythonGH-91153https://github.com/python/cpython/issues/91153
da3610chttps://github.com/miss-islington/cpython/commit/da3610cf3b9ebce8519c01c1c4ddc994c3986a9f
pythonGH-91153: Handle mutating __index__ methods in bytearray item a…https://github.com/miss-islington/cpython/commit/d61a2fa59ee8a27490eaf35871bc35b442e15e47
pythonGH-91153https://github.com/python/cpython/issues/91153
d61a2fahttps://github.com/miss-islington/cpython/commit/d61a2fa59ee8a27490eaf35871bc35b442e15e47
picnixzhttps://github.com/picnixz
on Jul 12, 2025https://github.com/python/cpython/issues/91153#event-18599568892
Merge branch 'main' into bast0006/pythongh-91153https://github.com/bast0006/cpython/commit/9b285036d64204160f883f5339adf8ae7405f599
pythongh-91153https://github.com/python/cpython/issues/91153
9b28503https://github.com/bast0006/cpython/commit/9b285036d64204160f883f5339adf8ae7405f599
gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `…https://github.com/python/cpython/commit/5e1e21dee35b8e9066692d08033bbbdb562e2c28
gh-91153https://github.com/python/cpython/issues/91153
5e1e21dhttps://github.com/python/cpython/commit/5e1e21dee35b8e9066692d08033bbbdb562e2c28
miss-islingtonhttps://github.com/miss-islington
on Jul 12, 2025https://github.com/python/cpython/issues/91153#event-18599727828
pythongh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` …https://github.com/miss-islington/cpython/commit/02aa3230dc7618bb09db3c1aa0e7c0311d181626
pythongh-91153https://github.com/python/cpython/issues/91153
02aa323https://github.com/miss-islington/cpython/commit/02aa3230dc7618bb09db3c1aa0e7c0311d181626
picnixzhttps://github.com/picnixz
on Jul 12, 2025https://github.com/python/cpython/issues/91153#event-18599755647
[3.13] pythongh-91153: prevent a crash in `bytearray.__setitem__(ind,…https://github.com/picnixz/cpython/commit/0e827aa6c28a902e06c6bf4e0946b6fb40b07126
pythongh-91153https://github.com/python/cpython/issues/91153
0e827aahttps://github.com/picnixz/cpython/commit/0e827aa6c28a902e06c6bf4e0946b6fb40b07126
[3.13] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)`…https://github.com/python/cpython/commit/360540fd47d282721214f45ba05b6b9a57d972a7
gh-91153https://github.com/python/cpython/issues/91153
360540fhttps://github.com/python/cpython/commit/360540fd47d282721214f45ba05b6b9a57d972a7
[3.14] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)`…https://github.com/python/cpython/commit/d5866a8e8432c15eac65a3059d71bc60d9aa61bf
gh-91153https://github.com/python/cpython/issues/91153
d5866a8https://github.com/python/cpython/commit/d5866a8e8432c15eac65a3059d71bc60d9aa61bf
picnixzhttps://github.com/picnixz
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 12, 2025https://github.com/python/cpython/issues/91153#event-18600012520
Pranjal095https://github.com/Pranjal095
on Jul 12, 2025https://github.com/python/cpython/issues/91153#event-18600185223
pythongh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` …https://github.com/Pranjal095/cpython/commit/fc46948476ec31f63653273af1c7347fa1f0fd79
pythongh-91153https://github.com/python/cpython/issues/91153
fc46948https://github.com/Pranjal095/cpython/commit/fc46948476ec31f63653273af1c7347fa1f0fd79
picnixzhttps://github.com/picnixz
on Jul 13, 2025https://github.com/python/cpython/issues/91153#event-18605020015
pythongh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` …https://github.com/picnixz/cpython/commit/2aa177df2a75a8e90911aafada335c590a0d61be
pythongh-91153https://github.com/python/cpython/issues/91153
2aa177dhttps://github.com/picnixz/cpython/commit/2aa177df2a75a8e90911aafada335c590a0d61be
taegyunkimhttps://github.com/taegyunkim
on Aug 4, 2025https://github.com/python/cpython/issues/91153#event-18976851250
pythongh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` …https://github.com/taegyunkim/cpython/commit/a70a3eff90dea1aca71d60abff93400409dea9b1
pythongh-91153https://github.com/python/cpython/issues/91153
a70a3efhttps://github.com/taegyunkim/cpython/commit/a70a3eff90dea1aca71d60abff93400409dea9b1
Agent-Hellboyhttps://github.com/Agent-Hellboy
on Aug 19, 2025https://github.com/python/cpython/issues/91153#event-19221811359
pythongh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` …https://github.com/Agent-Hellboy/cpython/commit/cfc56bbb7225d485b6899e87ea088092e51fa831
pythongh-91153https://github.com/python/cpython/issues/91153
cfc56bbhttps://github.com/Agent-Hellboy/cpython/commit/cfc56bbb7225d485b6899e87ea088092e51fa831
kumaraditya303https://github.com/kumaraditya303
on Sep 9, 2025https://github.com/python/cpython/issues/91153#event-19588154746
[3.14] pythongh-91153: prevent a crash in `bytearray.__setitem__(ind,…https://github.com/miss-islington/cpython/commit/4278eb41c610616fc175dbc6d966d3ea0a24feb4
pythongh-91153https://github.com/python/cpython/issues/91153
4278eb4https://github.com/miss-islington/cpython/commit/4278eb41c610616fc175dbc6d966d3ea0a24feb4
vstinnerhttps://github.com/vstinner
on Jul 24, 2026https://github.com/python/cpython/issues/91153#event-28430438119
gh-153570: Fix use-after-free in bytearray.take_bytes() with a reentr…https://github.com/python/cpython/commit/ee21d992d6117eb7f0c6087ecb93d90cd0ed610c
gh-153570https://github.com/python/cpython/issues/153570
ee21d99https://github.com/python/cpython/commit/ee21d992d6117eb7f0c6087ecb93d90cd0ed610c
[3.15] gh-153570: Fix use-after-free in bytearray.take_bytes() with a…https://github.com/python/cpython/commit/848f0bafc689e5d76f9c20f8c96a2454fd32fd79
gh-153570https://github.com/python/cpython/issues/153570
848f0bahttps://github.com/python/cpython/commit/848f0bafc689e5d76f9c20f8c96a2454fd32fd79
mbeijenhttps://github.com/mbeijen
on Aug 14, 2026https://github.com/python/cpython/issues/91153#event-29455488039
pythongh-153570: Fix use-after-free in bytearray.take_bytes() with a …https://github.com/mbeijen/cpython/commit/946e49fa56a6f0c07b0ef7c330238edca516b162
pythongh-153570https://github.com/python/cpython/issues/153570
946e49fhttps://github.com/mbeijen/cpython/commit/946e49fa56a6f0c07b0ef7c330238edca516b162
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/91153
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/91153
brandtbucherhttps://github.com/brandtbucher
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%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.