☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 7 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 🐛 CWE-416
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2023-51598

CVE-2023-51598 Remote Code Execution in Hancom
📅 PUBLISHED: 2024-05-03 02:15 UTC 🔄 UPDATED: 2026-08-12 09:00 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.65%
👁️
0.65% probability
16.2× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1203
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS VECTOR BREAKDOWN 7.0
AV: L Attack Vector Local
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H Availability High
7.0
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2023-51598 is a critical Use-After-Free (UAF) vulnerability in Hancom Office Word, specifically during the parsing of DOC files. This flaw allows remote code execution (RCE) in the context of the current process. The vulnerability is triggered when a user opens a malicious DOC file or visits a crafted web page that loads the file. The issue stems from improper validation of object existence before performing operations, leading to a use-after-free condition. With a CVSS score of 7.0, this vulnerability poses a significant risk to users of Hancom Office, particularly in environments where document sharing is common. No public proof-of-concept (PoC) or exploit code has been released, and the EPSS score is 0.0%, indicating low exploitation activity currently. However, the lack of a patch from the vendor increases the risk of targeted attacks.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

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.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is not related to NPM, PyPI, Go, or Ruby packages. It affects the Hancom Office Word application, which is a proprietary software suite. No supply chain implications are identified.

CVSS Breakdown & Threat Level

  • CVSS Score: 7.0 (High)
  • Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Attack Vector: Local (requires user interaction to open a file)
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: Required (victim must open a malicious file or visit a malicious page)
  • Scope: Unchanged
  • Confidentiality Impact: High
  • Integrity Impact: High
  • Availability Impact: High

Threat Level: High. The vulnerability allows full compromise of the affected system with minimal user interaction. The lack of a patch makes it a prime target for advanced persistent threats (APTs) and targeted attacks.

Deep Dive & Mechanics

The vulnerability resides in the DOC file parsing engine of Hancom Office Word. When parsing a specially crafted DOC file, the application fails to properly validate the existence of an object before performing operations on it. This leads to a use-after-free condition, where memory that has been freed is still referenced. An attacker can exploit this by crafting a DOC file that triggers the UAF, allowing them to overwrite freed memory with controlled data. This can lead to arbitrary code execution in the context of the Hancom Office Word process.

Root Cause: The lack of validation of object existence before use. The parser does not check if an object has been freed or reallocated, leading to a dangling pointer.

Attack Vector: The attacker must convince the victim to open a malicious DOC file or visit a web page that triggers the file download and opening. This is typically achieved through social engineering, such as phishing emails with malicious attachments.

Impact: Successful exploitation allows the attacker to execute arbitrary code with the privileges of the current user. This can lead to data theft, installation of malware, or further compromise of the system.

Vulnerable vs. Patched Code

No official patch has been released by Hancom. The vulnerable code is in the DOC parsing module. A patched version would include proper validation of object existence before use, such as checking if a pointer is still valid or using smart pointers to manage memory.

Vulnerable Code (Conceptual):

void parseDocObject(DocObject* obj) {
    // No validation of obj existence
    obj->process(); // Use-after-free if obj was freed
}

Patched Code (Conceptual):

void parseDocObject(DocObject* obj) {
    if (obj == nullptr) {
        return; // Validate existence before use
    }
    obj->process();
}

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • Hancom Office Word installed (vulnerable version)
  • A crafted DOC file (not publicly available)

Steps:

  1. Craft a malicious DOC file that triggers the UAF vulnerability. This requires deep knowledge of the DOC file format and the specific parsing flaw.
  2. Deliver the file to the target via email, download link, or other social engineering methods.
  3. When the target opens the file in Hancom Office Word, the exploit triggers, executing arbitrary code.

Note: No public exploit code is available. The following is a conceptual example of how the exploit might be structured.

# Conceptual exploit script (not functional)
import struct

def craft_malicious_doc():
    # Craft a DOC file that triggers UAF
    # This is a placeholder for the actual exploit logic
    payload = b""
    # ... exploit logic ...
    return payload

with open("malicious.doc", "wb") as f:
    f.write(craft_malicious_doc())

Blue Team (Defensive)

Detection:

  • Monitor for unusual Hancom Office Word crashes or memory access violations.
  • Use endpoint detection and response (EDR) tools to detect anomalous behavior from Hancom Office Word.
  • Implement application whitelisting to prevent execution of untrusted code.

Mitigation:

  • Disable automatic opening of DOC files from untrusted sources.
  • Use sandboxing or virtualization for document processing.
  • Apply the principle of least privilege to user accounts.

Indicators of Compromise (IOCs)

  • File Hashes: No known malicious files have been identified.
  • Network Indicators: No specific network indicators are available.
  • Behavioral Indicators:
    • Hancom Office Word crashes or hangs when opening DOC files.
    • Unexpected child processes spawned by Hancom Office Word.
    • Unusual memory access patterns or heap corruption.

Detection Engineering

YARA Rule

rule CVE_2023_51598_Hancom_UAF {
    meta:
        description = "Detects potential exploitation of CVE-2023-51598 in Hancom Office Word"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2023-51598"
    strings:
        $s1 = "Hancom Office Word" nocase
        $s2 = "DOC" nocase
        $s3 = "UseAfterFree" nocase
    condition:
        $s1 and $s2 and $s3
}

Sigma Rule

title: CVE-2023-51598 Hancom Office Word UAF Exploitation
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects potential exploitation of CVE-2023-51598 via Hancom Office Word crashes or memory errors
author: Valters IT
date: 2025-04-10
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: 'Hwp.exe'
        CommandLine|contains: '.doc'
    condition: selection
falsepositives:
    - Legitimate DOC file processing
level: high

Suricata Rule

alert tcp $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2023-51598 Hancom Office Word UAF Exploit"; flow:to_server,established; content:"|48 61 6e 63 6f 6d|"; distance:0; within:10; classtype:attempted-user; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable automatic opening of DOC files in Hancom Office Word settings.
  2. Use alternative document viewers (e.g., LibreOffice) until a patch is available.
  3. Implement strict email filtering to block suspicious DOC attachments.
  4. Educate users about the risks of opening documents from untrusted sources.

Long-term Actions:

  1. Monitor vendor updates from Hancom for a security patch.
  2. Apply the patch as soon as it is released.
  3. Conduct a security audit of document processing workflows.

Workarounds:

  • Convert DOC files to PDF or other safer formats before opening.
  • Use a sandboxed environment for document processing.

Valters IT Signature:
This report is provided for educational and defensive purposes only. Unauthorized exploitation of this vulnerability is illegal. Always follow responsible disclosure practices.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

Hancom Office
Hancom Word

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2023-51598/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.