☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Openbsd logo [ WEBSITE ] [ VENDOR STATS ]
SOON 🐛 CWE-20
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2023-52558

CVE-2023-52558 Denial of Service in Openbsd
📅 PUBLISHED: 2024-03-01 16:33 UTC 🔄 UPDATED: 2026-08-21 19:30 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.07%
👁️
0.07% probability
1.8× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1499
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Global License: Open Source
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2023-52558 is a denial-of-service vulnerability affecting OpenBSD 7.3 and 7.4. The flaw resides in the kernel's network buffer handling, where specially crafted escape sequences can cause a buffer split operation to crash the system. This vulnerability requires no authentication and can be triggered remotely, leading to a kernel panic and complete system unavailability. No public proof-of-concept or exploit code is currently available, and the EPSS score is 0.0%, indicating low exploitation activity in the wild. The vendor has released errata patches to address the issue.

⚡ 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

CVSS Breakdown & Threat Level

The CVSS score is listed as 0.0, which is likely a placeholder. Based on the description (remote, unauthenticated, kernel crash), a reasonable estimated CVSSv3 vector would be:

  • Attack Vector (AV): Network (N)
  • Attack Complexity (AC): Low (L)
  • Privileges Required (PR): None (N)
  • User Interaction (UI): None (N)
  • Scope (S): Unchanged (U)
  • Confidentiality (C): None (N)
  • Integrity (I): None (N)
  • Availability (A): High (H)
  • Estimated CVSS Score: 7.5 (High)

Threat Level: High. The vulnerability can be exploited remotely without authentication to cause a denial of service, making it a significant threat to availability.

Deep Dive & Mechanics

The vulnerability is rooted in the OpenBSD kernel's network stack, specifically in the handling of network buffers (mbufs). When the kernel receives network data that includes specially crafted escape sequences, it attempts to split a buffer at a certain length. Due to improper input validation (CWE-20), the split operation can lead to a memory corruption or an infinite loop, ultimately causing a kernel panic.

The escape sequences are likely part of a network protocol (e.g., TCP, UDP, or a raw socket) that the kernel processes. The flaw is triggered when the buffer size or alignment conditions are met, causing the m_split or similar function to enter an invalid state. This is a classic input validation issue where the kernel fails to check boundary conditions before performing a memory operation.

Vulnerable vs. Patched Code

The exact code change is not publicly available, but the patch involves correcting the buffer split logic to properly validate the split length and buffer boundaries. The vulnerable code likely looked like:

// Vulnerable: no check on split length
struct mbuf *m_split(struct mbuf *m, int len) {
    // ... direct split without validating len against m->m_len
}

The patched version would include a bounds check:

// Patched: validate split length
struct mbuf *m_split(struct mbuf *m, int len) {
    if (len > m->m_len) {
        // handle error or return NULL
        return NULL;
    }
    // ... safe split
}

Exploitation & Lab Setup

Red Team

No public exploit code is available. To develop a proof-of-concept, an attacker would need to:

  1. Identify the exact escape sequences that trigger the vulnerability (likely through reverse engineering the kernel network stack).
  2. Craft network packets containing these sequences.
  3. Send the packets to a vulnerable OpenBSD system (7.3 or 7.4 unpatched).

A potential lab setup:

  • Target: OpenBSD 7.4 VM (unpatched)
  • Attacker: Linux or Kali machine with raw socket capabilities
  • Tool: Custom Python script using scapy to send crafted packets
# Example skeleton for crafting packets (not functional without exact sequence)
from scapy.all import *
target_ip = "192.168.1.10"
# Craft packet with escape sequence in payload
payload = b"\x1b[?25h"  # Example escape sequence (not verified)
packet = IP(dst=target_ip)/TCP(dport=80)/Raw(load=payload)
send(packet, loop=1, inter=0.1)

Blue Team

Detection and defense:

  • Monitor for kernel panics: Enable crash dump collection and analyze for patterns.
  • Network monitoring: Look for unusual escape sequences in network traffic (e.g., ANSI escape codes in non-terminal protocols).
  • Patch management: Apply OpenBSD errata 002 (7.4) or 019 (7.3) immediately.
  • Firewall rules: Restrict access to OpenBSD systems to trusted networks only.

Indicators of Compromise (IOCs)

  • Network: Packets containing ANSI escape sequences (e.g., \x1b[, \x9b) in unexpected protocol fields.
  • System: Kernel panic logs with references to m_split or mbuf corruption.
  • File: /var/log/messages entries showing panic: kernel trap with network stack trace.

Detection Engineering

YARA Rule

rule CVE_2023_52558_OpenBSD_Kernel_Panic {
    meta:
        description = "Detects network packets with ANSI escape sequences targeting OpenBSD"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2023-52558"
    strings:
        $ansi_escape = /\x1b\[[0-9;]*[A-Za-z]/
        $csi_escape = /\x9b[0-9;]*[A-Za-z]/
    condition:
        any of them
}

Sigma Rule

title: CVE-2023-52558 OpenBSD Kernel Panic via Escape Sequences
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects network traffic containing ANSI escape sequences that may trigger CVE-2023-52558
author: Valters IT
date: 2025-04-10
logsource:
    category: network_connection
    product: suricata
detection:
    selection:
        payload|contains: 
            - '\x1b['
            - '\x9b'
    condition: selection
falsepositives:
    - Legitimate terminal traffic (e.g., SSH sessions)
level: high

Suricata Rule

alert tcp any any -> any any (msg:"CVE-2023-52558 OpenBSD Kernel Panic Attempt"; content:"|1b 5b|"; within:100; classtype:attempted-dos; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Apply Patches: Immediately update OpenBSD to the latest errata:
    • For 7.4: Apply errata 002
    • For 7.3: Apply errata 019
  2. Network Segmentation: Isolate OpenBSD systems behind firewalls to limit exposure.
  3. Monitoring: Enable kernel crash dump analysis and network intrusion detection.
  4. Workaround: If patching is not possible, restrict network access to the vulnerable systems and disable unnecessary services.

Valters IT
DevSecOps & Cyber Threat Intelligence

👁️ 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.

OpenBSD 7.4
OpenBSD 7.3

💣 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-52558/ · 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.