CVE-2025-67733: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in valkey-io valkey
Valkey is a distributed key-value database. Prior to versions 9.0.2, 8.1.6, 8.0.7, and 7.2.12, a malicious user can use scripting commands to inject arbitrary information into the response stream for the given client, potentially corrupting or returning tampered data to other users on the same connection. The error handling code for lua scripts does not properly handle null characters. Versions 9.0.2, 8.1.6, 8.0.7, and 7.2.12 fix the issue.
AI Analysis
Technical Summary
CVE-2025-67733 is a vulnerability classified under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) affecting valkey, a distributed key-value database. The issue stems from the error handling code for Lua scripting within valkey, which fails to properly handle null characters in script outputs. This improper handling enables a malicious user to inject arbitrary information into the response stream sent to clients sharing the same connection. The injection can lead to data corruption or tampering, affecting the integrity and availability of the database responses. The vulnerability affects multiple versions of valkey prior to 7.2.12, 8.0.7, 8.1.6, and 9.0.2, with patches released in these versions to address the issue. The CVSS 3.1 score of 8.5 reflects a high severity due to network attack vector, low attack complexity, required privileges, no user interaction, and a scope change. While confidentiality is not impacted, the integrity and availability of data are at risk. No known exploits have been reported yet, but the vulnerability presents a significant risk to environments using affected valkey versions, especially those exposing the database to untrusted users or multi-tenant scenarios.
Potential Impact
The primary impact of CVE-2025-67733 is on data integrity and availability within valkey database deployments. An attacker with limited privileges can inject malicious data into the response stream, potentially causing data corruption or delivering tampered data to other users sharing the same connection. This can undermine trust in the database's correctness and disrupt dependent applications or services. In multi-tenant or shared environments, this could lead to cross-user data contamination or denial of service conditions. Although confidentiality is not directly compromised, the integrity and availability issues can have cascading effects on business operations, data analytics, and decision-making processes relying on accurate data. Organizations using affected valkey versions in critical infrastructure, financial services, or cloud environments may face operational disruptions and reputational damage if exploited.
Mitigation Recommendations
To mitigate CVE-2025-67733, organizations should immediately upgrade valkey to the fixed versions 7.2.12, 8.0.7, 8.1.6, or 9.0.2 depending on their current version. Beyond patching, administrators should audit and restrict Lua scripting permissions to trusted users only, minimizing the risk of malicious script execution. Network segmentation and access controls should be enforced to limit exposure of valkey instances to untrusted networks or users. Monitoring and logging of scripting activities and response anomalies can help detect exploitation attempts early. Additionally, implementing connection isolation or per-user session handling can reduce the risk of cross-user data injection. Regular security assessments and code reviews of custom Lua scripts used in valkey environments are recommended to ensure no unsafe handling of special characters or null bytes. Finally, organizations should maintain an incident response plan tailored to database integrity incidents.
Affected Countries
United States, Germany, United Kingdom, Japan, South Korea, France, Canada, Australia, Netherlands, Singapore
CVE-2025-67733: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in valkey-io valkey
Description
Valkey is a distributed key-value database. Prior to versions 9.0.2, 8.1.6, 8.0.7, and 7.2.12, a malicious user can use scripting commands to inject arbitrary information into the response stream for the given client, potentially corrupting or returning tampered data to other users on the same connection. The error handling code for lua scripts does not properly handle null characters. Versions 9.0.2, 8.1.6, 8.0.7, and 7.2.12 fix the issue.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-67733 is a vulnerability classified under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) affecting valkey, a distributed key-value database. The issue stems from the error handling code for Lua scripting within valkey, which fails to properly handle null characters in script outputs. This improper handling enables a malicious user to inject arbitrary information into the response stream sent to clients sharing the same connection. The injection can lead to data corruption or tampering, affecting the integrity and availability of the database responses. The vulnerability affects multiple versions of valkey prior to 7.2.12, 8.0.7, 8.1.6, and 9.0.2, with patches released in these versions to address the issue. The CVSS 3.1 score of 8.5 reflects a high severity due to network attack vector, low attack complexity, required privileges, no user interaction, and a scope change. While confidentiality is not impacted, the integrity and availability of data are at risk. No known exploits have been reported yet, but the vulnerability presents a significant risk to environments using affected valkey versions, especially those exposing the database to untrusted users or multi-tenant scenarios.
Potential Impact
The primary impact of CVE-2025-67733 is on data integrity and availability within valkey database deployments. An attacker with limited privileges can inject malicious data into the response stream, potentially causing data corruption or delivering tampered data to other users sharing the same connection. This can undermine trust in the database's correctness and disrupt dependent applications or services. In multi-tenant or shared environments, this could lead to cross-user data contamination or denial of service conditions. Although confidentiality is not directly compromised, the integrity and availability issues can have cascading effects on business operations, data analytics, and decision-making processes relying on accurate data. Organizations using affected valkey versions in critical infrastructure, financial services, or cloud environments may face operational disruptions and reputational damage if exploited.
Mitigation Recommendations
To mitigate CVE-2025-67733, organizations should immediately upgrade valkey to the fixed versions 7.2.12, 8.0.7, 8.1.6, or 9.0.2 depending on their current version. Beyond patching, administrators should audit and restrict Lua scripting permissions to trusted users only, minimizing the risk of malicious script execution. Network segmentation and access controls should be enforced to limit exposure of valkey instances to untrusted networks or users. Monitoring and logging of scripting activities and response anomalies can help detect exploitation attempts early. Additionally, implementing connection isolation or per-user session handling can reduce the risk of cross-user data injection. Regular security assessments and code reviews of custom Lua scripts used in valkey environments are recommended to ensure no unsafe handling of special characters or null bytes. Finally, organizations should maintain an incident response plan tailored to database integrity incidents.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-12-11T00:45:45.790Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699cbd8cbe58cf853bc4b3d6
Added to database: 2/23/2026, 8:50:20 PM
Last enriched: 3/3/2026, 1:24:22 AM
Last updated: 4/10/2026, 8:46:29 AM
Views: 72
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.