The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2018-25299

CVE-2018-25299: Prime95 Buffer Overflow Vulnerability

CVE-2018-25299 is a local buffer overflow flaw in Prime95 29.4b8 that enables arbitrary code execution via SEH exploitation. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 30, 2026

CVE-2018-25299 Overview

CVE-2018-25299 is a local buffer overflow vulnerability affecting Prime95 version 29.4b8, a popular application used for stress testing CPUs and participating in the Great Internet Mersenne Prime Search (GIMPS) project. The vulnerability exists in the PrimeNet connection settings functionality, specifically within the optional proxy hostname field. Attackers can exploit this flaw to trigger a buffer overflow condition that overwrites structured exception handling (SEH) mechanisms, ultimately enabling arbitrary code execution on the target system.

Critical Impact

Successful exploitation allows attackers to execute arbitrary system commands with the privileges of the Prime95 process, potentially leading to complete system compromise through local access.

Affected Products

  • Prime95 version 29.4b8
  • Prime95 installations with PrimeNet connectivity features enabled
  • Windows systems running vulnerable Prime95 versions

Discovery Timeline

  • 2026-04-29 - CVE CVE-2018-25299 published to NVD
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2018-25299

Vulnerability Analysis

This vulnerability is classified under CWE-120 (Buffer Copy without Checking Size of Input), a classic memory corruption issue that occurs when data is copied to a buffer without proper bounds checking. The flaw resides in how Prime95 processes user-supplied input in the proxy hostname configuration field within the PrimeNet connection settings dialog.

When a user enters an excessively long string in the proxy hostname field, the application fails to validate the input length before copying it to a fixed-size buffer. This oversight allows the attacker-controlled data to overflow beyond the allocated buffer boundaries, corrupting adjacent memory regions including the SEH chain.

The exploitation leverages Windows Structured Exception Handling mechanisms. By carefully crafting the overflow payload, an attacker can overwrite the SEH handler pointers with addresses pointing to malicious shellcode. When an exception is triggered (which can be forced as part of the overflow), the corrupted SEH handler executes the attacker's payload instead of legitimate exception handling code.

Root Cause

The root cause of CVE-2018-25299 is improper input validation in the proxy hostname processing routine. The application uses unsafe string copy operations that do not verify whether the input data exceeds the destination buffer's capacity. This is a fundamental secure coding violation where user-controlled input is directly copied to a stack-based buffer without length restrictions, enabling stack buffer overflow attacks that can hijack program execution flow through SEH manipulation.

Attack Vector

The attack vector for this vulnerability requires local access to the system running Prime95. An attacker must be able to interact with the Prime95 application interface or manipulate its configuration files. The exploitation process involves:

  1. Accessing the Prime95 application's PrimeNet connection settings
  2. Entering a specially crafted malicious string in the proxy hostname field
  3. The oversized input overflows the buffer and corrupts the SEH chain on the stack
  4. Triggering an exception causes the corrupted SEH handler to execute
  5. The attacker's shellcode payload runs with the privileges of the Prime95 process

The vulnerability does not require authentication and has no user interaction requirements beyond the initial application access. The attack complexity is low, making it relatively straightforward to exploit for attackers with local system access. For detailed technical information about the exploitation technique, refer to the Exploit-DB entry #44649.

Detection Methods for CVE-2018-25299

Indicators of Compromise

  • Unusual Prime95 process behavior or unexpected child processes spawning
  • Crash dumps from Prime95 showing SEH chain corruption or stack overflow conditions
  • Modified Prime95 configuration files (prime.txt or local.txt) containing abnormally long proxy hostname values
  • Evidence of shellcode execution patterns in memory analysis following Prime95 crashes

Detection Strategies

  • Monitor for Prime95 process crashes accompanied by access violation exceptions
  • Implement application whitelisting to detect unauthorized code execution from Prime95 context
  • Use endpoint detection and response (EDR) solutions to monitor for SEH overwrite patterns
  • Deploy memory protection technologies that can detect stack buffer overflow attempts

Monitoring Recommendations

  • Enable Windows Event Log monitoring for application crashes related to Prime95
  • Configure security tools to alert on suspicious process creation from Prime95
  • Implement file integrity monitoring on Prime95 configuration files
  • Review endpoint telemetry for memory corruption exploitation indicators

How to Mitigate CVE-2018-25299

Immediate Actions Required

  • Upgrade Prime95 to a patched version that addresses the buffer overflow vulnerability
  • Restrict local access to systems running Prime95 to authorized users only
  • Consider disabling PrimeNet connectivity features if not required for operations
  • Apply defense-in-depth measures including DEP (Data Execution Prevention) and ASLR (Address Space Layout Randomization)

Patch Information

Users should download the latest version of Prime95 from the official Mersenne Download Page. The Mersenne Organization maintains the official Prime95 releases. Verify that your version is newer than 29.4b8 to ensure protection against this vulnerability. Additional technical details are available in the VulnCheck Advisory.

Workarounds

  • Avoid using the PrimeNet proxy configuration feature until the application is updated
  • Run Prime95 in an isolated environment or sandbox to contain potential exploitation
  • Implement network segmentation to limit the impact of potential compromise
  • Use application control policies to restrict Prime95 from spawning child processes

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechPrime95

  • SeverityHIGH

  • CVSS Score8.6

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Technical References
  • Exploit-DB #44649

  • Mersenne Organization Homepage

  • Mersenne Download Page

  • VulnCheck Advisory: Prime95 Buffer Overflow
  • Related CVEs
  • CVE-2018-25293: Prime95 Buffer Overflow DoS Vulnerability

  • CVE-2019-25327: Prime95 Buffer Overflow RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English