CVE-2022-33896
CVE-2022-33896 — Threat Intelligence Report
CVE ID: CVE-2022-33896
Vendor/Product: Hancom Office 2020 (Hword component)
CVSS: 7.8 (High)
EPSS: 0.00516 (41.2% percentile of exploited CVEs)
CISA KEV: No
Patch Status: UNPATCHED (confidence 0/4)
Executive Summary
CVE-2022-33896 is a buffer underflow vulnerability in Hancom Office 2020 (version 11.0.0.5357), specifically in the Hword word-processing component's XML-based office file parser. Successful exploitation allows an attacker to achieve memory corruption by reading/writing memory before the start of an allocated buffer, which can lead to arbitrary code execution in the context of the logged-in user. A victim must open a specially crafted, malformed XML-based office file to trigger the vulnerability — making it a client-side, social-engineering-driven attack vector. As of this report, no vendor patch has been identified, and Hancom Office 2020 remains at risk.
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 resides in how Hword, the word processor component of Hancom Office 2020, parses XML-based office file formats. The NVD description identifies a buffer underflow condition — a memory corruption bug where the parser reads from or writes to memory that precedes the start of an allocated buffer.
Mechanism: Buffer underflow occurs when an index or pointer is decremented below the boundary of the allocated region. In file parsers, this commonly arises when:
- An element count or size field extracted from the XML file controls a loop or memory offset
- Malformed or inconsistent XML structure causes the parser to compute a negative offset
- Size calculations based on attacker-controlled XML attributes overflow or underflow
When a maliciously crafted XML-based office file is parsed, the Hword parser can compute a memory address before the buffer start and use it for a read or write operation. This causes memory corruption that an attacker can potentially leverage for code execution.
Attack surface: The attack surface is the file parser itself — any user who receives and opens a malicious .hwp (Hangul Word Processor), .hwpx, or XML-based document through email, web download, or removable media is exposed. The parser processes attacker-controlled input without sufficient validation of structural boundaries.
Data-level detail: The NVD description is sparse on implementation specifics — no function names, structures, or specific XML element details are provided. Insufficient technical detail is available at the code level; the vulnerability class (buffer underflow in an XML file parser) and its memory-corruption consequence are the confirmed facts.
Exploitation Scenarios
Attack chain:
Reconnaissance / Target identification: An attacker identifies individuals or organizations using Hancom Office 2020 — this is predominantly a South Korean office suite widely used in Korean government, enterprise, and academic institutions (this geography is a primary targeting vector).
Triggering the flaw: The attacker crafts a malformed XML-based office file (e.g.,
.hwpor.hwpxformat) with a deliberately corrupted buffer-size or boundary field that causes the Hword parser to compute a negative offset during parsing. The file must be opened in the vulnerable application.Payload / execution method: At the vulnerability-class level, the buffer underflow creates a memory-corruption primitive. The attacker's goal is to overwrite or read memory before the buffer boundary to: (a) corrupt adjacent heap structures for later use-after-free or heap overflow operations, or (b) directly pivot control flow to attacker-controlled data. Since no public PoC or exploit code is available, the precise exploitation chain is inferred from vulnerability class — file parser → memory corruption → code execution. The payload would typically be embedded in the malformed XML structure itself, leveraging the repeated in-decrement of the parser pointer to reach a controlled write primitive.
Post-exploitation impact: Upon successful code execution, the attacker inherits the privileges of the victim's user account. This typically enables: reading/writing local files, installing persistence mechanisms, credential harvesting from browser and OS stores, lateral movement within an organization's network, and potential data exfiltration. In high-privilege contexts (e.g., if the document is opened by an administrator), full machine compromise is plausible.
Note: No public PoC exists; attack chain is inferred from vulnerability class and the mechanism described in the NVD listing.
Impact Assessment
CVSS breakdown (7.8, High): The vector corresponds to Local attack vector (AV:L), Low complexity (AC:L), No privileges required (PR:N), User interaction required (UI:R), Unchanged scope (SU), High confidentiality impact (C:H), High integrity impact (I:H), High availability impact (A:H). The requirement for user interaction (opening a malicious file) is the primary mitigant, but the payoff for an attacker is full code execution with complete impact on the victim's environment.
Affected systems: Hancom Office 2020 version 11.0.0.5357 specifically. The scope may extend to other versions but no data is available; Affected Versions field is empty.
Business impact:
- Data confidentiality: Complete compromise of files accessible to the victim user — a significant concern for Korean government and enterprise users handling classified material.
- Integrity: Attacker can modify or destroy local data, potentially altering documents or planting false records.
- Availability: Memory corruption on parse failure could also cause application crashes (denial of service), but the higher-impact scenario is code execution.
- Blast radius: Client-side exploit via social engineering. High success probability given the low technical skill required to weaponize once the malformed file structure is known. The EPSS percentile of 41.2% suggests moderate likelihood of future exploitation despite no observed in-the-wild activity. Not listed on CISA KEV.
Detection Guidance
Sigma Rule
title: Hancom Office Hword Buffer Underflow Exploit Attempt
id: c7f50daf-3b24-4a0e-a6df-5c3e42a34c82
status: experimental
description: Detects anomalous Hancom Office Hword process behavior indicative of CVE-2022-33896 exploitation
author: vartersit.com SOC
date: 2024-01-15
logsource:
category: process_creation
product: windows
detection:
selection_hangul_process:
Image|endswith:
- 'Hword.exe'
- 'HWord.exe'
- 'HNC.exe'
selection_suspicious_args:
CommandLine|contains:
- '.hwp'
- '.hwpx'
condition: selection_hangul_process and selection_suspicious_args
timespan: 5s
level: medium
falsepositives:
- Legitimate opening of HWP files by users
- Normal office document workflows in Korean organizations
fields:
- CommandLine
- ParentImage
- User
tags:
- attack.t1203
- cve.2022.33896
YARA Rule
rule hancom_office_cve_2022_33896_xml_buffer_underflow {
meta:
author = "vartersit.com"
description = "Detects malformed XML structures in HWP/HWPX files potentially targeting CVE-2022-33896"
cve = "CVE-2022-33896"
date = "2024-01-15"
strings:
$hwp_magic = { FF 48 50 43 }
$hwp_zip_magic = { 50 4B 03 04 }
$xml_decl = "<?xml" nocase
$odf_container = "META-INF" nocase
$corrupt_len = /(?:offset|size|length)=[\x01-\x1f\x7f\x80-\xff]/ nocase
condition:
(uint32(0) == 0x43504846 or uint32(0) == 0x04034B50) and
($corrupt_len and #corrupt_len > 4) or
($xml_decl and $odf_container and #corrupt_len > 2)
}
Suricata IDS Rule
alert http any any -> any any (msg:"CVE-2022-33896 Hancom Office Hword Buffer Underflow Malicious File Delivery"; flow:established,to_client; filemagic:"HWP"; fileext:"hwp,hwpx,hml"; content:"PK\x03\x04"; depth:4; content:"META-INF"; file_data; content:"<?xml"; within:1024; metadata:cve CVE-2022-33896, attack_target Client_Endpoint, deployment Perimeter; classtype:attempted-user; sid:90001296; rev:1;)
alert smtp any any -> any any (msg:"CVE-2022-33896 Hancom Office Malicious Document Attachment"; flow:established; content:"Content-Disposition"; nocase; content:"attachment"; nocase; filename:"hwp"; filename:"hwpx"; metadata:cve CVE-2022-33896, attack_target Client_Endpoint, deployment SMTP; classtype:attempted-user; sid:90001297; rev:1;)
Elastic Detection
sequence by process.entity_id
[process where event.action == "start" and process.name : "Hword.exe" and process.parent.name : ("explorer.exe", "OUTLOOK.EXE", "firefox.exe", "chrome.exe")]
[file where event.action in ("open", "create") and file.extension in ("hwp", "hwpx", "hml") and file.size > 10000]
[process where event.action == "start" and (process.name : "cmd.exe" or process.name : "powershell.exe" or process.name : "rundll32.exe") and process.parent.name == "Hword.exe"]
Splunk SPL Query
index=windows earliest=-7d
( sourcetype=WinEventLog:Security EventCode=4688 )
OR ( sourcetype=WinEventLog:Application )
OR ( sourcetype=XmlWinEventLog:Microsoft-Windows-Sysmon/Operational EventCode=1 )
| search
( Image=*Hword.exe OR Image=*HWord.exe OR Image=*HNC.exe )
OR
( Image=*Hword.exe AND ( CommandLine=*cmd* OR CommandLine=*powershell* OR CommandLine=*rundll32* OR CommandLine=*wscript* ))
| table _time, host, user, Image, CommandLine, ParentImage, ParentCommandLine
| sort _time desc
Wazuh OSSEC Rule
<group name="hancom,">
<rule id="100390" level="12">
<decoded_as>syslog</decoded_as>
<field name="win.eventdata.image">Hword.exe</field>
<field name="win.eventdata.commandLine">\\.hwp</field>
<description>Hancom Office Hword opening .hwp file - potential CVE-2022-33896 exploitation vector</description>
<group>cve-2022-33896,</group>
<mitre>
<id>T1203</id>
</mitre>
<options>no_full_log</options>
</rule>
<rule id="100391" level="15" frequency="10" timeframe="300">
<if_matched_sid>100390</if_matched_sid>
<same_user/>
<description>Repeated Hancom Office Hword process spawning - possible exploit attempt</description>
<group>cve-2022-33896,</group>
<mitre>
<id>T1203</id>
</mitre>
</rule>
<rule id="100392" level="15">
<if_sid>100390</if_sid>
<field name="win.eventdata.commandLine">powershell</field>
<description>Hword process spawning PowerShell after opening HWP file - post-exploitation indicator</description>
<group>cve-2022-33896,</group>
<mitre>
<id>T1203</id>
<id>T1059</id>
</mitre>
</rule>
</group>
Mitigation & Patch Guidance
Patch status: UNPATCHED — no patch evidence from any tracked source. The vendor (Hancom) has not released a security advisory or patched version for CVE-2022-33896 as of this writing.
Immediate mitigations (in prioritized order):
Restrict file execution: Deploy application allowlisting (e.g., Windows Defender Application Control / AppLocker) to prevent Hword.exe from spawning child processes (cmd.exe, powershell.exe, wscript.exe). This limits post-exploitation capability even if the vulnerability is triggered.
Email and download filtering: Block
.hwp,.hwpx, and.hmlattachments at email gateways and web proxies, Flag these file types for mandatory manual review where business processes require them.End-user awareness: Social engineering via malicious document delivery is the primary attack vector. Issue a security bulletin to all Hancom Office users warning against opening unsolicited document files, particularly those from untrusted or unexpected sources. Recommend relying on official internal document repositories only.
Software inventory and risk assessment: Identify all systems running Hancom Office 2020 version 11.0.0.5357. Flag these systems for enhanced monitoring.
Patch/upgrade steps:
- Monitor Hancom's official update channel (https://www.hancom.com) for security updates. No update is currently available.
- Evaluate whether upgrading to a newer Hancom Office version (e.g., 2022 or later) removes the vulnerability — no verification is possible without vendor confirmation.
- If updates cannot be applied, isolate vulnerable systems from untrusted network segments where feasible.
Long-term hardening:
Transition to a supported office suite if Hancom Office 2020 no longer receiving security support is acceptable for your organization. Re-evaluate vendor patch cadence.
Implement a minimum-security-standards baseline requiring all office applications to run in a sandbox (e.g., Windows Sandbox, Firejail on Linux) or in a virtualized environment for untrusted document processing.
Deploy and tune behavioral detection rules (Sigma/YARA/EDR) for abnormal Hword.exe process behavior — child process spawning, large memory allocations, or unusual file write patterns.
Subscribe to vendor advisory mailing lists and CISA/KISA alerts for Korean product security bulletins.
References
- NVD Entry: https://nvd.nist.gov/vuln/detail/CVE-2022-33896 — Official NVD record for CVE-2022-33896
- Hancom Product Page: https://www.hancom.com — Official vendor site; no security advisory for CVE-2022-33896 as of writing
- CISA KEV: https://www.cisa.gov/known-exploited-vulnerabilities-catalog — CVE-2022-33896 NOT listed (verified absent)
- MITRE ATT&CK: https://attack.mitre.org/techniques/T1203/ — Client-Side Exploitation technique referencing this vulnerability class
- EPSS (First.org): https://www.first.org/epss — EPSS score 0.00516 for CVE-2022-33896 (as referenced in the CVE data)
Threat actor campaigns / in-the-wild evidence: None reported. No observed exploitation campaigns tied to CVE-2022-33896 have been confirmed by any tracked source. The vulnerability is not on the CISA Known Exploited Vulnerabilities list, and no exploit code has been published. The EPSS score (0.00516) conveys low-to-moderate probability of exploitation in the wild at the time of the score calculation, though the media-anchored EPSS percentile of 41.2% reflects visibility into a substantial pool of CVEs. Sustained monitoring is warranted given the file-parser attack class and the lack of a patch.