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
    • 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-2025-68138

CVE-2025-68138: EVerest libocpp Memory Leak DoS Flaw

CVE-2025-68138 is a memory leak vulnerability in EVerest libocpp that causes denial of service through memory exhaustion. This article covers the technical details, affected versions, security impact, and mitigation.

Published: January 23, 2026

CVE-2025-68138 Overview

CVE-2025-68138 is a memory leak vulnerability in EVerest libocpp, a C++ implementation of the Open Charge Point Protocol (OCPP) used in EV charging software stacks. The vulnerability exists in versions prior to 0.30.1 where pointers returned by strdup calls are never freed. Each connection attempt causes newly allocated memory areas to be leaked, potentially leading to memory exhaustion and denial of service conditions on affected EV charging infrastructure.

Critical Impact

Attackers on the adjacent network can exploit this memory leak to exhaust system memory resources through repeated connection attempts, causing denial of service on EV charging stations running vulnerable EVerest libocpp versions.

Affected Products

  • EVerest libocpp versions prior to 0.30.1
  • EVerest Core installations using vulnerable libocpp versions
  • EV charging infrastructure utilizing the Open Charge Point Protocol implementation

Discovery Timeline

  • 2026-01-21 - CVE-2025-68138 published to NVD
  • 2026-01-21 - Last updated in NVD database

Technical Details for CVE-2025-68138

Vulnerability Analysis

This vulnerability is classified under CWE-770 (Allocation of Resources Without Limits or Throttling). The flaw resides in the WebSocket implementation within libocpp, specifically in the websocket_libwebsockets.cpp file. When handling connection attempts, the code uses the strdup function to duplicate strings, but fails to subsequently free the allocated memory. This creates a classic memory leak condition that compounds with each new connection attempt.

The attack vector requires adjacent network access, meaning an attacker must be on the same local network segment as the vulnerable EV charging station. However, no privileges or user interaction are required to exploit this vulnerability. The impact extends beyond the vulnerable component itself, potentially affecting other services on the same charging station platform as memory resources become depleted.

Root Cause

The root cause is improper memory management in the C++ codebase. The strdup function allocates new memory on the heap and copies a string into it, returning a pointer to the new allocation. The calling code is responsible for freeing this memory when it's no longer needed. In libocpp prior to version 0.30.1, this cleanup step was missing, causing memory to accumulate indefinitely with each connection attempt to the WebSocket endpoint.

Attack Vector

An attacker positioned on the adjacent network can exploit this vulnerability by initiating repeated connection attempts to the charging station's OCPP WebSocket interface. Each connection attempt triggers the vulnerable strdup call without corresponding memory deallocation. Over time, or through rapid connection flooding, the attacker can exhaust available system memory, causing the charging station software to become unresponsive or crash.

The attack does not require authentication or valid OCPP credentials—simply initiating the connection handshake is sufficient to trigger the memory allocation. This makes the vulnerability particularly concerning for EV charging infrastructure exposed on local networks where an attacker might gain adjacent network access.

Detection Methods for CVE-2025-68138

Indicators of Compromise

  • Gradual increase in memory consumption on EV charging station systems over time
  • Memory usage spikes correlated with connection attempt activity to OCPP WebSocket endpoints
  • System instability or out-of-memory errors on charging infrastructure running libocpp
  • Unusual volume of connection attempts from specific adjacent network sources

Detection Strategies

  • Monitor system memory utilization trends on charging station platforms running EVerest
  • Implement connection rate limiting and logging on OCPP WebSocket endpoints
  • Deploy network intrusion detection to identify connection flooding patterns from adjacent network segments
  • Use memory profiling tools to detect leak patterns in libocpp processes

Monitoring Recommendations

  • Configure alerts for abnormal memory growth on systems running EVerest libocpp
  • Log and analyze WebSocket connection attempt patterns for volumetric anomalies
  • Establish baseline memory usage metrics for EV charging infrastructure to identify deviations
  • Implement network segmentation monitoring to detect unauthorized adjacent network access

How to Mitigate CVE-2025-68138

Immediate Actions Required

  • Upgrade EVerest libocpp to version 0.30.1 or later immediately
  • Implement network segmentation to restrict adjacent network access to charging station infrastructure
  • Apply connection rate limiting on OCPP WebSocket interfaces as a temporary measure
  • Monitor memory utilization closely on affected systems until patches are applied

Patch Information

The vulnerability is fixed in EVerest libocpp version 0.30.1. Organizations should update to this version or later to remediate the memory leak. The fix ensures proper deallocation of memory allocated by strdup calls in the WebSocket connection handling code. Detailed information about the fix is available in the GitHub Security Advisory.

Workarounds

  • Implement aggressive connection rate limiting at the network layer to slow memory exhaustion
  • Configure periodic service restarts during off-peak hours to reclaim leaked memory
  • Deploy network access controls to restrict which hosts can initiate OCPP connections
  • Monitor and alert on memory thresholds to enable proactive intervention before service degradation
bash
# Configuration example - Network rate limiting for OCPP endpoints
# Limit connection attempts from adjacent network to mitigate DoS risk
iptables -A INPUT -p tcp --dport 9000 -m connlimit --connlimit-above 10 --connlimit-mask 24 -j DROP

# Example cron job for periodic service restart (temporary workaround)
# 0 3 * * * systemctl restart everest-core

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLibocpp

  • SeverityMEDIUM

  • CVSS Score4.7

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-770
  • Technical References
  • GitHub Security Advisory

  • GitHub PoC Source Code
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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