CVE-2023-32541
Executive Summary
CVE-2023-32541 is a use-after-free vulnerability in Hancom Office 2020 HWord 11.0.0.7520, specifically in the "footerr" functionality. A specially crafted .doc file triggers memory corruption when parsed, allowing an attacker to achieve arbitrary code execution with the privileges of the logged-in user. The attack requires victim interaction—the user must open a malformed document—making this a client-side attack vector. With a CVSS score of 8.8, this is a high-severity issue affecting a widely used office productivity suite, particularly prevalent in South Korean enterprise environments. As of this report, no patch is available (patch confidence 0/4), and no exploitation in the wild has been confirmed (CISA KEV: NO).
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Technical Analysis
The vulnerability exists in Hancom Office 2020 HWord 11.0.0.7520 within the "footerr" functionality. The NVD description indicates a use-after-free (UAF) condition triggered when parsing a specially crafted .doc file.
A use-after-free occurs when a program continues to reference memory after it has been freed. In this context, the "footerr" functionality—likely related to footer handling during document parsing—must allocate memory for a footer object, later free that object, and then subsequently dereference the freed pointer. When the freed memory is reallocated or corrupted, the program's control flow can be redirected, potentially leading to arbitrary code execution.
The attack surface is the document parsing engine. The .doc file format is a legacy binary format from Microsoft Word, and Hancom's parser must reconstruct the document structure, including headers, footers, and other document elements. The "footerr" component processes footer end markers or footer records within the binary file structure. A malformed footer structure—one that causes an inconsistent state in memory management—triggers the UAF condition.
Specific technical details regarding the exact code path, function names, or the precise nature of the memory corruption are not available in the NVD description or CNA title. The vulnerability is confirmed to exist in the "footerr" functionality of HWord 11.0.0.7520, but no further implementation-level information has been disclosed. Insufficient technical detail is available to describe the exact trigger mechanism at the code level.
The vulnerability class is use-after-free, which in document parsing engines typically results in write-what-where primitives or direct code execution. The attacker controls the document payload, which can be used to manipulate heap layout and achieve predictable memory corruption outcomes.
Exploitation Scenarios
Note: No public PoC is available (PoC status: Unknown, Exploit Code: NO). The attack chain is inferred from the vulnerability class and the NVD description.
Step 1 — Reconnaissance and Target Identification: The attacker identifies targets using Hancom Office 2020 HWord 11.0.0.7520. This is a social engineering–driven campaign: the attacker arranges delivery of a malicious .doc file via email attachment, file-sharing services, or messaging platforms. Targets are typically enterprise users, government agencies, or educational institutions in South Korea where Hancom Office has dominant market share. The attacker does not require network access to the target—only successful document delivery.
Step 2 — Triggering the Vulnerability: The attacker crafts a .doc file with a specially structured footer record. The file needs to be constructed such that during parsing, the "footerr" functionality frees a memory block and then subsequently accesses it. Because the exact trigger details are undisclosed, the attacker would need to develop a targeted fuzzing campaign against HWord's parser or reverse-engineer the parsing logic to identify the precise malformed structure. The trigger occurs the moment the victim opens the file in HWord.
Step 3 — Payload Execution: During the UAF window, the attacker's file structure is designed to influence heap layout so that the freed memory is reallocated to an attacker-controlled buffer containing shellcode or ROP chain data. Successful exploitation typically achieves arbitrary code execution within the context of the HWord process. This requires heap grooming—controlling allocations to position attacker data at predictable addresses. Since this is a UAF in a document parser, exploitation is feasible but requires skill; no public exploit is currently available.
Step 4 — Post-Exploitation Impact: Once code execution is achieved, the attacker gains the privileges of the current user. This allows installation of malware, data exfiltration from documents and local files, credential harvesting, and lateral movement within the enterprise network. Since HWord can be used as a launchpad, the attacker could also leverage the process to persist in the environment or pivot to other systems.
Impact Assessment
Business Impact:
- Confidentiality: High — arbitrary code execution can read sensitive documents, credentials, and system data.
- Integrity: High — code execution allows modification or deletion of files, registry, or system settings.
- Availability: High — malicious code can crash processes, corrupt data, or render the system unusable.
Affected Systems: Hancom Office 2020 HWord version 11.0.0.7520. As the exact affected version range is unspecified, all deployments of this version and potentially earlier builds (if the flaw has existed but wasn't patched) must be treated as vulnerable.
Blast Radius: This vulnerability is exploitable via a client-side attack—spear-phishing. The attack requires no privileges beyond opening a file, making the barrier to entry low. Enterprise networks heavily reliant on Hancom Office face significant risk. The lack of an available patch (patch confidence 0/4) makes this a high-priority issue for defenders, particularly given the CVSS score of 8.8 (High) reflecting the criticality of unauthenticated, remote code execution with minimal user interaction.
CVSS Context: The 8.8 score indicates high impact across all three security objectives. The attack vector is network-delivered (via document transfer) requiring user interaction, matching the typical "AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" profile.
Detection Guidance
Sigma Rule
title: Hancom Office HWord Malicious .doc Detection
id: 4f7c3a2b-9d1e-4f6a-8b3c-1e2d4f5a6b7c
status: experimental
description: Detects processes of Hancom Office HWord (HWord.exe) opening .doc files from suspicious locations or with anomalous behavior patterns indicating a potential use-after-free exploitation attempt.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith: '\hword.exe'
CommandLine|contains:
- '.doc'
filter:
CommandLine|contains:
- '\AppData\Local\'
- '\AppData\Roaming\'
- '\\temp\\'
- '\\downloads\\'
condition: selection and not filter
level: medium
falsepositives:
- Legitimate users opening .doc files from Downloads or Temp directories.
- User desktop shortcuts that reference .doc files in temp folders.
tags:
- attack.t1204
- attack.execution
YARA Rule
rule hancom_hword_doc_uaf_cve202332541
{
meta:
author = "valtersit.com Threat Intel"
description = "Detects .doc files with malformed footer structures characteristic of CVE-2023-32541 exploitation attempts"
date = "2025-04-08"
cve = "CVE-2023-32541"
reference = "NVD"
strings:
$footer_marker = { 20 00 00 00 } // Common footer record header
$doc_magic = { D0 CF 11 E0 A1 B1 1A E1 } // OLE2/CFB magic
$hwp_signature = "HWord" ascii
condition:
uint32be(0) == 0xD0CF11E0 and
$doc_magic at 0 and
#footer_marker > 10 and
($hwp_signature or filesize < 2MB)
}
Note: YARA detection for file-format vulnerabilities is inherently limited. The above rule uses generic OLE2 file markers and heuristic footer record counts. Since the precise malformed structure is undisclosed, this rule requires tuning against known benign samples.
Suricata IDS Rule
alert http any any -> any any (msg:"CVE-2023-32541 Hancom HWord .doc Download Attempt"; flow:established,to_client; content:"Content-Type|3a| application/|0d 0a|"; content:"Content-Disposition|3a| attachment"; content:".doc"; nocase; classtype:attempted-user; sid:2023041; rev:1;)
Note: No network signature specific to the .doc payload can be generated reliably without exploit details. This rule detects the delivery vector (HTTP download of .doc attachments) as a baseline detection layer.
Elastic Detection
process where process.pe.original_file_name == "HWord.exe"
and event.action == "start"
and process.args : ("*.doc", "*.DOC")
and process.parent.name in ("explorer.exe", "outlook.exe", "winword.exe")
and (process.command_line : ("*\\\\Temp\\\\*", "*\\\\Downloads\\\\*", "*\\\\AppData\\\\*"))
Alternative approach — detect abnormal exit or crash patterns:
process where process.name == "HWord.exe"
and (event.action in ("crashed", "stopped", "end"))
and process.exit_code == 0xC0000005 // Access violation (UAF indicator)
Splunk SPL Query
index=windows sourcetype=WinEventLog:Security
(EventCode=4688 AND New_Process_Name="*hword.exe")
OR (EventCode=1001 AND New_Process_Name="*hword.exe" AND Status="0xc0000005")
| table _time, user, New_Process_Name, CommandLine, Parent_Process_Name
| rename CommandLine as "Process Command", New_Process_Name as "Process"
Wazuh OSSEC Rule
<group name="hancom_hword,">
<rule id="100041" level="12">
<if_sid>550</if_sid>
<match>HWord.exe</match>
<description>Hancom HWord process crashed with access violation - possible CVE-2023-32541 exploitation attempt</description>
<group>attack.t1204,attack.execution,</group>
</rule>
<rule id="100042" level="10">
<if_sid>550</if_sid>
<match>HWord.exe</match>
<regex>Path: \\Temp\\|Path: \\Downloads\\|Path: \\AppData\\</regex>
<description>Hancom HWord process launched from suspicious download location</description>
<group>attack.t1204,attack.execution,</group>
</rule>
</group>
Note: The Wazuh rules above assume log inputs from Sysmon (process creation events, EventCode 1) or Windows Event Log with appropriate decoders configured. Adjust if_sid to match your environment's process-creation rules.
Mitigation & Patch Guidance
Patch Confidence: 0/4 — UNPATCHED. No patch evidence from any tracked source. The vendor has not released a fix as of this report.
Immediate Mitigations:
- Restrict document opening: Implement application allowlisting to prevent HWord.exe from launching, or restrict its execution to trusted, sandboxed environments.
- Use document sanitization: Deploy a content disarm and reconstruction (CDR) solution to filter or neutralize .doc files before they reach end users.
- Email gateway filtering: Block .doc attachments at the perimeter or require malicious-document scanning before delivery.
- User education: Advise personnel to exercise extreme caution with unexpected .doc files, particularly from unknown senders.
- Alternative software: Consider using alternative office suites or converting to read-only document viewing solutions until a patch is available.
Patch/Upgrade Steps:
- Monitor vendor channels (Hancom) for security advisories and patches. When released, apply the upgrade immediately to HWord 11.0.0.7520 or move to the latest version.
- Subscribe to CVE notification feeds (NVD, CISA) for automatic alerts on CVE-2023-32541 status changes.
Long-Term Hardening:
- Implement ASLR and DEP: Ensure system-wide Data Execution Prevention and Address Space Layout Randomization are enabled, which mitigates UAF exploitation.
- Use attack surface reduction rules: Microsoft Defender ASR rules can block Office applications from creating child processes, writing to executable locations, or making outbound network calls from HWord.
- Virtualize document processing: Use opening documents within an isolated sandbox (e.g., Windows Sandbox, VDI) to contain potential code execution.
- Regular vulnerability scanning: Integrate this CVE into your vulnerability management program and track patch availability aggressively.
- Minimize user privileges: Ensure users operate with least-privilege accounts to limit post-exploitation impact.
References
- NVD Entry: https://nvd.nist.gov/vuln/detail/CVE-2023-32541 — Official vulnerability description and scoring.
- CISA Known Exploited Vulnerabilities Catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog — No entry for this CVE (unexploited in the wild as of report date).
- Hancom Official Website: https://www.hancom.com — Monitor for vendor security advisories and patch announcements.
- FIRST EPSS (Exploit Prediction Scoring System): https://www.first.org/epss — EPSS score 0.00655 (48.0% percentile), low probability of exploitation in near term.
- MITRE ATT&CK Framework: https://attack.mitre.org/techniques/T1204/ — Reference for client-side document exploitation technique (User Execution).
Threat Actor Campaigns: No known threat actor campaigns or exploit-in-the-wild evidence associated with CVE-2023-32541 has been identified at time of writing.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.