Skip to content
Memory corruption Advisory Advanced CVE-2020-13584

Webkit ImageDecoderGStreamer use-after-free vulnerability

A use-after-free flaw in WebKitGTK's ImageDecoderGStreamer allows a malicious web page to trigger memory corruption, potentially leading to remote code execution. The victim must visit the crafted page to exploit the vulnerability.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable use-after-free vulnerability exists in WebKitGTK browser version 2.30.1 x64. A specially crafted HTML web page can cause a use-after-free condition, resulting in a remote code execution.

Marcin 'Icewall' Noga, on Cisco Talos

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 the reference to the ImageDecoderGStreamer object is not cleared and checked before later use in ImageDecoder, leading to a use-after-free.

Impact

Proper heap grooming could give an attacker full control of this use-after-free vulnerability and as a result could allow it to be turned into arbitrary code execution.

What the attacker needed

Victim visits a malicious web page; WebKitGTK 2.30.1 x64

How it was found

  1. Create a malicious web page with an image tag whose data URL mimetype or URL content type is supported by the GStreamer decoder.
  2. Victim visits the malicious page.
  3. The browser allocates an ImageDecoderGStreamer object.
  4. When the image format is detected as invalid, the object is de-allocated.
  5. A later use of the freed object triggers the use-after-free.

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 use-after-free happens when a program frees memory but then keeps using it, like deleting a file and still trying to open it. Here, a web page with a specially crafted image causes the browser to free an image decoder object and then use it again, which can let an attacker run their own code on the victim's computer.

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.

More by Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.