A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-34451

CVE-2025-34451: Proxychains-ng Buffer Overflow Vulnerability

CVE-2025-34451 is a stack-based buffer overflow in Proxychains-ng that occurs when parsing malicious proxy configurations. This flaw can cause crashes or enable exploitation. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: June 2, 2026

CVE-2025-34451 Overview

CVE-2025-34451 is a stack-based buffer overflow in rofl0r/proxychains-ng, a popular tool that redirects network connections through proxy servers. The flaw exists in the proxy_from_string() function within src/libproxychains.c. Versions up to and including 4.17, prior to commit cc005b7, fail to validate the length of username and password fields parsed from proxy configuration entries. Crafted entries with overly long credentials write beyond fixed-size stack buffers, causing memory corruption or process crashes. The vulnerability is categorized under [CWE-121] Stack-based Buffer Overflow and [CWE-787] Out-of-bounds Write.

Critical Impact

Local attackers controlling the proxychains configuration file can trigger denial of service and, depending on compiler mitigations and execution context, potentially escalate to code execution.

Affected Products

  • rofl0r/proxychains-ng versions up to and including 4.17
  • All builds prior to commit cc005b7
  • Any application or script invoked through vulnerable proxychains-ng binaries

Discovery Timeline

  • 2025-12-18 - CVE-2025-34451 published to NVD
  • 2025-12-31 - Last updated in NVD database

Technical Details for CVE-2025-34451

Vulnerability Analysis

The proxy_from_string() function parses proxy entries of the form type://user:password@host:port from the proxychains configuration file. It extracts the username and password substrings, then copies them into fixed-size stack buffers (user_buf and pass_buf, each 256 bytes) using memcpy(). Before the patch, the length validation only applied when the proxy type was SOCKS5. For other proxy types such as HTTP and SOCKS4, no length check ran before the copy. A configuration entry with a username or password exceeding 255 bytes overwrites adjacent stack memory, including saved return addresses and frame pointers.

Root Cause

The root cause is a missing bounds check that was guarded by a proxy-type condition. The original code applied the ul > 255 || pl > 255 check only when proxytype == RS_PT_SOCKS5. Other proxy types bypassed validation entirely and proceeded directly to memcpy(user_buf, u, ul), where ul is attacker-controlled.

Attack Vector

Exploitation requires local access to influence the proxychains configuration file. This includes scenarios where the configuration path is writable by a lower-privileged user, where PROXYCHAINS_CONF_FILE is set in an environment a user can manipulate, or where a privileged process consumes a configuration file controlled by an unprivileged account. Successful exploitation corrupts stack memory and may bypass stack canaries depending on toolchain mitigations.

c
// Security patch in src/libproxychains.c - fixes the missing bounds check
// Source: https://github.com/httpsgithu/proxychains-ng/commit/cc005b7
		ul = p-u;
		p++;
		pl = at-p;
-		if(proxytype == RS_PT_SOCKS5 && (ul > 255 || pl > 255))
+		if(ul > 255 || pl > 255)
			return 0;
		memcpy(user_buf, u, ul);
		user_buf[ul]=0;

The patch removes the proxytype == RS_PT_SOCKS5 condition so the length check applies to every proxy type. Oversized credential fields now cause the function to return 0 instead of overflowing the stack buffer.

Detection Methods for CVE-2025-34451

Indicators of Compromise

  • Unexpected crashes or segmentation faults in processes launched through the proxychains4 wrapper.
  • proxychains.conf files containing ProxyList entries with username or password fields exceeding 255 bytes.
  • Core dumps showing corrupted stack frames inside proxy_from_string() or libproxychains4.so.
  • Modifications to proxychains configuration files by non-administrative accounts.

Detection Strategies

  • Scan filesystems for installed proxychains-ng packages at versions 4.17 or earlier and inventory the binaries.
  • Audit proxychains.conf, ~/.proxychains/proxychains.conf, and /etc/proxychains.conf for malformed ProxyList entries containing abnormally long credential strings.
  • Monitor execve telemetry for invocations of proxychains4 and correlate with subsequent process termination signals.

Monitoring Recommendations

  • Alert on write events targeting proxychains configuration paths from unexpected user contexts.
  • Track package manager events for installations of proxychains-ng versions prior to the fix.
  • Forward Linux audit logs covering SIGSEGV signals on processes loading libproxychains4.so to a central data lake for correlation.

How to Mitigate CVE-2025-34451

Immediate Actions Required

  • Update proxychains-ng to a build that includes commit cc005b7 or later.
  • Restrict write permissions on proxychains.conf to the root user only.
  • Audit all systems where unprivileged users can influence environment variables that point to alternative configuration files.
  • Remove proxychains-ng from systems where it is not operationally required.

Patch Information

The fix is committed in cc005b7 of the upstream rofl0r/proxychains-ng repository. The patch removes the proxy-type-specific guard around the credential length check, ensuring all proxy types validate input lengths before copying. Rebuild and redeploy libproxychains4.so from source after applying the commit, or wait for downstream distribution package updates. See the proxychains-ng commit cc005b7 and VulnCheck advisory for technical details.

Workarounds

  • Set strict file permissions: chmod 644 /etc/proxychains.conf and chown root:root /etc/proxychains.conf.
  • Prevent unprivileged users from supplying alternate configuration files by sanitizing the PROXYCHAINS_CONF_FILE environment variable in privileged scripts.
  • Validate any ProxyList entry username and password fields to ensure they remain under 255 bytes before deployment.
bash
# Verify installed version and enforce safe configuration permissions
proxychains4 --version
sudo chown root:root /etc/proxychains.conf
sudo chmod 644 /etc/proxychains.conf

# Inspect configuration for oversized credential fields
awk '/^[a-z]+/ {for(i=1;i<=NF;i++) if(length($i)>255) print FILENAME":"NR}' /etc/proxychains.conf

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechProxychains Ng

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/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-121

  • CWE-787
  • Technical References
  • GitHub Security Advisory MCSAID-2025-008

  • VulnCheck Advisory on Stack Overflow
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Issue Discussion
  • Latest CVEs
  • CVE-2026-49199: Acer Predator Connect W6x Firmware RCE Flaw

  • CVE-2026-46344: Openquantumsafe Liboqs DOS Vulnerability

  • CVE-2026-44518: Openquantumsafe Liboqs DoS Vulnerability

  • CVE-2026-42951: MacGregor VDR Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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