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-67733

CVE-2025-67733: Lfprojects Valkey XSS Vulnerability

CVE-2025-67733 is an XSS vulnerability in Lfprojects Valkey that allows malicious users to inject arbitrary data into response streams. This article covers the technical details, affected versions, and mitigation steps.

Published: February 27, 2026

CVE-2025-67733 Overview

CVE-2025-67733 is a Code Injection vulnerability affecting Valkey, a distributed key-value database. The vulnerability exists in the error handling code for Lua scripts, which does not properly handle null characters. A malicious user can exploit this flaw by using scripting commands to inject arbitrary information into the response stream for a given client, potentially corrupting or returning tampered data to other users on the same connection.

Critical Impact

Authenticated attackers can inject malicious content into response streams, leading to data corruption, integrity violations, and potential denial of service conditions affecting shared database connections.

Affected Products

  • Valkey versions prior to 9.0.2
  • Valkey versions prior to 8.1.6
  • Valkey versions prior to 8.0.7
  • Valkey versions prior to 7.2.12

Discovery Timeline

  • 2026-02-23 - CVE-2025-67733 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2025-67733

Vulnerability Analysis

This vulnerability stems from improper input validation in Valkey's Lua scripting engine, specifically in the error handling code path. When processing Lua script errors, the application fails to properly sanitize null characters, allowing attackers to manipulate the response stream.

The flaw is classified under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), commonly known as injection vulnerabilities. In this case, the downstream component is the response stream parser that processes data returned to connected clients.

An authenticated attacker with scripting command privileges can craft malicious Lua scripts containing embedded null characters in error-triggering code paths. When the error handler processes these scripts, the null characters are not properly escaped, allowing the attacker to inject arbitrary data into the response stream. This injected data can then be returned to other users sharing the same database connection, leading to data integrity issues or service disruption.

Root Cause

The root cause of CVE-2025-67733 lies in the Lua script error handling code within Valkey. The error handler does not implement proper validation or sanitization of null characters (\0) when constructing error response messages. Null characters have special significance in C-based string handling and can truncate strings or allow data to bleed between memory boundaries when not properly managed.

When a Lua script triggers an error condition containing null characters, the error handling routine passes these characters directly to the response stream without proper encoding or escaping. This allows the attacker to effectively terminate the error message prematurely and inject additional response data that gets interpreted as legitimate server responses by connected clients.

Attack Vector

The attack requires network access and authenticated access to execute Lua scripting commands on the Valkey server. The attacker exploits the vulnerability through the following mechanism:

  1. The attacker connects to a Valkey instance with privileges to execute Lua scripts
  2. A specially crafted Lua script is executed that triggers an error condition containing null character sequences
  3. The error handler fails to properly sanitize these null characters when constructing the response
  4. Arbitrary data injected after the null character corrupts the response stream
  5. Other clients sharing the connection may receive corrupted or tampered data

The vulnerability is particularly impactful in shared database connection scenarios, such as connection pooling configurations commonly used in production environments. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2025-67733

Indicators of Compromise

  • Unusual Lua script execution patterns with embedded null characters or non-printable characters
  • Client-side reports of corrupted or unexpected data being returned from Valkey queries
  • Anomalous response sizes or malformed responses in connection logs
  • Unexpected script errors in Valkey logs, particularly those containing binary data

Detection Strategies

  • Monitor Lua script execution logs for scripts containing null bytes or other control characters
  • Implement response validation on client applications to detect malformed or unexpected responses
  • Deploy network-level monitoring to identify suspicious patterns in Valkey protocol traffic
  • Review scripting command access logs for unusual activity from specific users or connections

Monitoring Recommendations

  • Enable verbose logging on Valkey instances to capture detailed scripting activity
  • Implement alerting for script execution failures with unusual error messages
  • Monitor connection pool health metrics for signs of response stream corruption
  • Audit user access to scripting commands and restrict to trusted principals only

How to Mitigate CVE-2025-67733

Immediate Actions Required

  • Upgrade Valkey to patched versions: 9.0.2, 8.1.6, 8.0.7, or 7.2.12 immediately
  • Restrict access to Lua scripting commands using ACLs to limit exposure to trusted users only
  • Review and audit existing Lua scripts deployed in your environment for suspicious patterns
  • Enable logging and monitoring for scripting command execution as an interim detection measure

Patch Information

Linux Foundation Projects has released security patches addressing this vulnerability. Organizations should upgrade to the following fixed versions based on their current deployment:

Current Version BranchPatched Version
9.0.x9.0.2
8.1.x8.1.6
8.0.x8.0.7
7.2.x7.2.12

For complete patch details and upgrade instructions, consult the Valkey Security Advisory on GitHub.

Workarounds

  • Disable Lua scripting functionality if not required for your use case by removing scripting command ACLs
  • Implement strict ACL policies to limit scripting commands to only essential, trusted users
  • Use dedicated connections per client rather than connection pooling to limit cross-user impact
  • Deploy network segmentation to restrict which systems can execute scripts against Valkey instances
bash
# Example: Restrict scripting commands using Valkey ACL
# Create a restricted user without scripting capabilities
ACL SETUSER restricted_user on >password ~* &* +@all -@scripting

# Verify the user cannot execute Lua scripts
ACL LIST

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechLfprojects Valkey

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-74
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27623: Lfprojects Valkey DoS Vulnerability

  • CVE-2026-21863: Valkey Clusterbus DOS Vulnerability
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