Skip to content
Memory corruption Advisory Advanced CVE-2023-32541

Hancom Office 2020 HWord footerr use-after-free vulnerability

A use-after-free flaw exists in the footerr handling of Hancom Office 2020 HWord when opening a crafted .doc file. An attacker could exploit this to potentially achieve arbitrary code execution by tricking a user into opening a malformed file.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A use-after-free vulnerability exists in the footerr functionality of Hancom Office 2020 HWord 11.0.0.7520. A specially crafted .doc file can lead to a use-after-free.

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 program frees an object related to the footerr element but later calls a virtual function on that freed object without checking if it is still valid.

Impact

Proper heap grooming could give an attacker full control of this use-after-free, potentially leading to arbitrary code execution.

What the attacker needed

Victim opens a crafted .doc file; Hancom Office 2020 HWord 11.0.0.7520

How it was found

  1. Create a malformed .doc file containing at least two footerr elements.
  2. Open the file in HWord.exe under a debugger.
  3. Observe the access violation when a virtual function is called on a freed object.

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 malicious document makes the word processor do this, which can crash it or let an attacker run their own code. The attacker only needs the victim to open the file.

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.