open62541 Subscription Use-After-Free Remote Code Execution Vulnerability
A use-after-free flaw in how open62541 handles subscriptions means an authenticated attacker can make the server act on an object that no longer exists. This can be leveraged to run arbitrary code as the service account.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of open62541. Authentication is required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, subscription handling used an object after it had been freed because the code did not check the object still existed before operating on it.
Impact
An authenticated attacker could execute arbitrary code in the context of the service account.
What the attacker needed
Authenticated access to the server
The fix
The vendor published commits addressing the flaw, so it was fixed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A subscription is a way for a client to ask a server to keep sending updates. A use-after-free happens when a program frees some memory but keeps using it, so an attacker can sometimes control what sits there instead. Here an authenticated user could abuse that to run their own code on the server.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.