Memcached command injection via unsanitized meta arguments
Published Nov 19, 2022 · Updated Apr 15, 2025
Code injection in Dalli 3.2.0 through 3.2.2 allows remote attackers to alter memcached data through crafted Meta Protocol arguments. RequestFormatter appends CAS values and flush delays to raw text commands without numeric validation, so newline-delimited input becomes another memcached command. A consuming application must let untrusted input reach one of those arguments; injected commands can then modify cached data.
Summary
What happened
Code injection in Dalli 3.2.0 through 3.2.2 allows remote attackers to alter memcached data through crafted Meta Protocol arguments. RequestFormatter appends CAS values and flush delays to raw text commands without numeric validation, so newline-delimited input becomes another memcached command. A consuming application must let untrusted input reach one of those arguments; injected commands can then modify cached data.
The record
- CVE
- CVE-2022-4064
- Published
- Nov 19, 2022
- Updated
- Apr 15, 2025
- Vendor
- Dalli Project
- Product
- Dalli
- Classifications
- CWE-74
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 19, 2022CVE publishedPublication date reported by the CVE source.
- Apr 15, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.2.0
- Affected versionversion=3.2.1
- Affected versionversion=3.2.2
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Newline command-smuggling proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo