☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2025-51005

CVE-2025-51005 Denial of Service in Tcpreplay
📅 PUBLISHED: 2025-09-23 00:00 UTC 🔄 UPDATED: 2026-09-23 10:16 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.39%
👁️
0.39% probability
9.6× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: UNKNOWN / CHECK VENDOR
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-2025-51005 is a heap-buffer-overflow vulnerability discovered in the tcpliveplay utility of tcpreplay version 4.5.1. The flaw resides in the do_checksum_math_liveplay function within tcpliveplay.c. When processing a specially crafted pcap file, the program incorrectly handles memory during checksum calculation, leading to a heap-based buffer overflow. This can be exploited to cause a denial of service (DoS) condition, potentially crashing the application or causing unpredictable behavior. No public exploit code or patch is currently available.

⚡ 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 affects the tcpreplay package, which is commonly distributed through Linux package managers (e.g., apt, yum) and source code repositories. Users are advised to monitor official distribution channels for updates. As no patch exists, the primary mitigation is to avoid processing untrusted pcap files with the tcpliveplay utility.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Base Score: 6.2 (Medium)
  • Attack Vector (AV): Local (L) – The attacker must have local access to the system or be able to deliver a malicious pcap file.
  • Attack Complexity (AC): Low (L) – No special conditions are required to trigger the overflow.
  • Privileges Required (PR): None (N) – No authentication is needed.
  • User Interaction (UI): Required (R) – The victim must open the malicious pcap file with tcpliveplay.
  • Scope (S): Unchanged (U) – The vulnerability does not affect other components.
  • Confidentiality (C): None (N) – No data exposure.
  • Integrity (I): None (N) – No data modification.
  • Availability (A): High (H) – The overflow can crash the application, causing a denial of service.

Threat Level: Medium. The vulnerability requires user interaction and local access, but it can be triggered with low complexity and no privileges.

Deep Dive & Mechanics

The vulnerability is a heap-based buffer overflow in the do_checksum_math_liveplay function of tcpliveplay.c. This function is responsible for computing checksums for live TCP replay operations. When processing a crafted pcap file, the function fails to properly validate the size of the input data before writing to a heap-allocated buffer. Specifically, the overflow occurs during the checksum calculation loop, where an attacker can manipulate packet headers to cause the function to read or write beyond the allocated buffer boundaries.

The root cause is a missing bounds check on the packet length or the number of bytes processed in the checksum routine. This allows an attacker to craft a pcap file with malformed TCP segments that, when parsed, trigger an out-of-bounds memory access. The overflow can corrupt adjacent heap metadata, leading to a crash or potentially arbitrary code execution under specific memory conditions.

Vulnerable vs. Patched Code

Vulnerable Code (tcpreplay-4.5.1): The vulnerable code is in tcpliveplay.c within the do_checksum_math_liveplay function. The exact line numbers are not publicly available, but the logic likely resembles:

void do_checksum_math_liveplay(u_char *data, int len) {
    // No bounds check on len
    for (int i = 0; i < len; i++) {
        // Write to heap buffer without verifying size
        checksum_buffer[i] = data[i];
    }
}

Patched Code (Hypothetical): A proper fix would include a bounds check before the loop:

void do_checksum_math_liveplay(u_char *data, int len) {
    if (len > MAX_BUFFER_SIZE) {
        // Handle error or truncate
        len = MAX_BUFFER_SIZE;
    }
    for (int i = 0; i < len; i++) {
        checksum_buffer[i] = data[i];
    }
}

No official patch is available as of this report.

Exploitation & Lab Setup

Red Team (Exploitation)

No public exploit code is available. However, a proof-of-concept can be developed by crafting a pcap file with a malformed TCP segment that triggers the overflow. The following steps outline a potential approach:

  1. Craft a malicious pcap file: Use a tool like scapy to create a pcap with a TCP packet that has an oversized payload or manipulated header fields.
  2. Deliver the file: Convince the victim to process the file with tcpliveplay.
  3. Trigger the overflow: The do_checksum_math_liveplay function will attempt to write beyond the heap buffer, causing a crash.

Example Python script to generate a malicious pcap:

from scapy.all import *
import struct

# Craft a TCP packet with a large payload
ip = IP(src="192.168.1.1", dst="192.168.1.2")
tcp = TCP(sport=1234, dport=80, flags="S")
payload = "A" * 10000  # Large payload to trigger overflow
packet = ip/tcp/payload

# Write to pcap file
wrpcap("malicious.pcap", packet)

Blue Team (Defense)

  • Monitor for crashes: Use system logs to detect crashes of tcpliveplay or related processes.
  • Restrict file execution: Limit the use of tcpliveplay to trusted pcap files only.
  • Use sandboxing: Run tcpliveplay in a sandboxed environment to contain potential damage.
  • Apply memory protections: Enable ASLR and DEP to mitigate exploitation.

Indicators of Compromise (IOCs)

  • File Hashes (SHA256): (None available, but monitor for pcap files with unusual sizes or structures)
  • Process Anomalies: Unexpected crashes of tcpliveplay or high memory usage.
  • Network Traffic: Unusual pcap files being transferred to the system.
  • Log Entries: Segmentation faults or heap corruption errors in system logs.

Detection Engineering

YARA Rule

rule CVE_2025_51005_HeapOverflow {
    meta:
        description = "Detects malicious pcap files targeting CVE-2025-51005"
        author = "Valters IT"
        date = "2025-04-10"
    strings:
        $tcp_header = { 45 00 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? }
        $large_payload = /[A-Za-z0-9]{1000,}/
    condition:
        $tcp_header and #large_payload > 5
}

Sigma Rule

title: CVE-2025-51005 Heap Overflow in tcpliveplay
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects crashes or abnormal behavior of tcpliveplay
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith: '/tcpliveplay'
        ExitCode: -11  # SIGSEGV
    condition: selection
falsepositives:
    - Legitimate crashes due to other bugs
level: medium

Suricata Rule

alert tcp any any -> any any (msg:"CVE-2025-51005 Heap Overflow in tcpliveplay"; flow:to_server; content:"|45 00|"; depth:2; byte_test:2,>,1000,2; sid:1000001; rev:1;)

Remediation & Mitigation

  • Immediate: Do not process untrusted pcap files with tcpliveplay.
  • Short-term: Monitor for updates from the tcpreplay project. If possible, apply a patch from the official repository.
  • Long-term: Consider using alternative tools for pcap replay that are actively maintained and patched.
  • Workaround: If tcpliveplay is essential, run it in a restricted environment with limited privileges and memory protections.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-51005/ · 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.