René's URL Explorer Experiment


Title: RUSTSEC-2026-0190: Unsoundness in `Error::downcast_mut()` · Issue #255 · uutils/diffutils · GitHub

Open Graph Title: RUSTSEC-2026-0190: Unsoundness in `Error::downcast_mut()` · Issue #255 · uutils/diffutils

X Title: RUSTSEC-2026-0190: Unsoundness in `Error::downcast_mut()` · Issue #255 · uutils/diffutils

Description: Unsoundness in Error::downcast_mut() Details Status unsound Package anyhow Version 1.0.102 URL dtolnay/anyhow#451 Date 2026-06-25 Affected versions of this crate violate borrow rules, resulting in undefined behavior, when the user adds c...

Open Graph Description: Unsoundness in Error::downcast_mut() Details Status unsound Package anyhow Version 1.0.102 URL dtolnay/anyhow#451 Date 2026-06-25 Affected versions of this crate violate borrow rules, resulting in ...

X Description: Unsoundness in Error::downcast_mut() Details Status unsound Package anyhow Version 1.0.102 URL dtolnay/anyhow#451 Date 2026-06-25 Affected versions of this crate violate borrow rules, resulting in ...

Opengraph URL: https://github.com/uutils/diffutils/issues/255

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RUSTSEC-2026-0190: Unsoundness in `Error::downcast_mut()`","articleBody":"\n\u003e Unsoundness in `Error::downcast_mut()`\n\n| Details             |                                                |\n| ------------------- | ---------------------------------------------- |\n| Status              | unsound                |\n| Package             | `anyhow`                      |\n| Version             | `1.0.102`                   |\n| URL                 | [https://github.com/dtolnay/anyhow/issues/451](https://github.com/dtolnay/anyhow/issues/451) |\n| Date                | 2026-06-25                         |\n\nAffected versions of this crate violate borrow rules, resulting in undefined behavior, when the user adds context to an error via `Error::context` and then later calls `Error::downcast_mut` on the returned `Error`.\n\nThe flaw was corrected in commit `6e8c000` by revising how the mutable reference is constructed, avoiding inclusion of a shared reference in the resulting borrow chain.\n\n## Example\n\n```rust\nuse anyhow::Error;\nuse std::fmt;\n\n#[derive(Debug)]\nstruct ErrorContext(\u0026amp;\u0026#39;static str);\n\nimpl fmt::Display for ErrorContext {\n    fn fmt(\u0026amp;self, f: \u0026amp;mut fmt::Formatter\u0026lt;\u0026#39;_\u0026gt;) -\u0026gt; fmt::Result {\n        fmt::Display::fmt(\u0026amp;self.0, f)\n    }\n}\n\nfn main() {\n    let mut error = Error::msg(\u0026quot;inner error\u0026quot;).context(ErrorContext(\u0026quot;old context\u0026quot;));\n    let context: \u0026amp;mut ErrorContext = error.downcast_mut().unwrap();\n    context.0 = \u0026quot;new context\u0026quot;;\n    println!(\u0026quot;{:?}\u0026quot;, error);\n}\n```\n\n## Miri output\n\n```\nerror: Undefined Behavior: trying to retag from \u0026lt;1538\u0026gt; for Unique permission at alloc602[0x38], but that tag only grants SharedReadOnly permission for this location\n   --\u0026gt; src/ptr.rs:170:18\n    |\n170 |         unsafe { \u0026amp;mut *self.ptr.as_ptr() }\n    |                  ^^^^^^^^^^^^^^^^^^^^^^^ this error occurs as part of retag at alloc602[0x38..0x48]\n    |\n    = help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental\n    = help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information\nhelp: \u0026lt;1538\u0026gt; was created by a SharedReadOnly retag at offsets [0x38..0x48]\n   --\u0026gt; src/ptr.rs:89:18\n    |\n 89 |             ptr: NonNull::from(ptr),\n    |                  ^^^^^^^^^^^^^^^^^^\n    = note: stack backtrace:\n            0: anyhow::ptr::Mut::\u0026lt;\u0026#39;_, ErrorContext\u0026gt;::deref_mut\n                at src/ptr.rs:170:18: 170:41\n            1: anyhow::error::\u0026lt;impl anyhow::Error\u0026gt;::downcast_mut::\u0026lt;ErrorContext\u0026gt;\n                at src/error.rs:560:18: 560:46\n            2: main\n                at examples/downcast_mut.rs:15:38: 15:58\n```\n\nSee [advisory page](https://rustsec.org/advisories/RUSTSEC-2026-0190.html) for additional details.\n","author":{"url":"https://github.com/github-actions[bot]","@type":"Person","name":"github-actions[bot]"},"datePublished":"2026-06-30T00:34:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/255/diffutils/issues/255"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4c8265d1-5188-309b-c6d1-2d36c8c47726
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC6A0:B577:14CF5CD:1CC1661:6A4DED41
html-safe-nonce52fbeb620201dd4dbfd8a9d6aa010042eee3ffae86da78eb070c32e59b939a34
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkEwOkI1Nzc6MTRDRjVDRDoxQ0MxNjYxOjZBNERFRDQxIiwidmlzaXRvcl9pZCI6IjMxNTY0NzcyOTU2MDgwNjUzNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9b01dd727af209c206429aa3f64c50e497e9852f4e917cf1d6e176f8f2609636
hovercard-subject-tagissue:4772636059
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/uutils/diffutils/255/issue_layout
twitter:imagehttps://opengraph.githubassets.com/09cfbddb46f1755cf8a1d65a8f87e5eba11bc79b64e77a3f6ad7d6cf78cd0731/uutils/diffutils/issues/255
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/09cfbddb46f1755cf8a1d65a8f87e5eba11bc79b64e77a3f6ad7d6cf78cd0731/uutils/diffutils/issues/255
og:image:altUnsoundness in Error::downcast_mut() Details Status unsound Package anyhow Version 1.0.102 URL dtolnay/anyhow#451 Date 2026-06-25 Affected versions of this crate violate borrow rules, resulting in ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegithub-actions[bot]
hostnamegithub.com
expected-hostnamegithub.com
None5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566
turbo-cache-controlno-preview
go-importgithub.com/uutils/diffutils git https://github.com/uutils/diffutils.git
octolytics-dimension-user_id5148717
octolytics-dimension-user_loginuutils
octolytics-dimension-repository_id341787720
octolytics-dimension-repository_nwouutils/diffutils
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id341787720
octolytics-dimension-repository_network_root_nwouutils/diffutils
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
releasef4bb89367ca678f057d79b1abc45d6675b1bd5b2
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/uutils/diffutils/issues/255#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fuutils%2Fdiffutils%2Fissues%2F255
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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%2Fuutils%2Fdiffutils%2Fissues%2F255
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=uutils%2Fdiffutils
Reloadhttps://github.com/uutils/diffutils/issues/255
Reloadhttps://github.com/uutils/diffutils/issues/255
Reloadhttps://github.com/uutils/diffutils/issues/255
Please reload this pagehttps://github.com/uutils/diffutils/issues/255
uutils https://github.com/uutils
diffutilshttps://github.com/uutils/diffutils
Notifications https://github.com/login?return_to=%2Fuutils%2Fdiffutils
Fork 35 https://github.com/login?return_to=%2Fuutils%2Fdiffutils
Star 270 https://github.com/login?return_to=%2Fuutils%2Fdiffutils
Code https://github.com/uutils/diffutils
Issues 20 https://github.com/uutils/diffutils/issues
Pull requests 12 https://github.com/uutils/diffutils/pulls
Actions https://github.com/uutils/diffutils/actions
Projects https://github.com/uutils/diffutils/projects
Security and quality 0 https://github.com/uutils/diffutils/security
Insights https://github.com/uutils/diffutils/pulse
Code https://github.com/uutils/diffutils
Issues https://github.com/uutils/diffutils/issues
Pull requests https://github.com/uutils/diffutils/pulls
Actions https://github.com/uutils/diffutils/actions
Projects https://github.com/uutils/diffutils/projects
Security and quality https://github.com/uutils/diffutils/security
Insights https://github.com/uutils/diffutils/pulse
#256https://github.com/uutils/diffutils/pull/256
RUSTSEC-2026-0190: Unsoundness in Error::downcast_mut()https://github.com/uutils/diffutils/issues/255#top
#256https://github.com/uutils/diffutils/pull/256
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jun 30, 2026https://github.com/uutils/diffutils/issues/255#issue-4772636059
dtolnay/anyhow#451https://github.com/dtolnay/anyhow/issues/451
advisory pagehttps://rustsec.org/advisories/RUSTSEC-2026-0190.html
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.