ZDI-26-833: Valkey clusterCreatePublishMsgBlock Numeric Truncation Error Remote Code Execution Vulnerability
- Vulnerability ID: ZDI-26-833
- CVE ID: -
- CVSS Score: 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
- Credit: Nenad Stojanovski
Summary
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Valkey. Authentication is required to exploit this vulnerability.
Affected Products
- Affected Vendor: Valkey
- Affected Product: Valkey
Technical Details
The specific flaw exists within the handling of the parameters supplied to the PUBLISH message handler in the clusterCreatePublishMsgBlock function. The issue results from the lack of proper validation of user-supplied data, which can result in an incorrect calculation before allocating a buffer.
Impact
An attacker can leverage this vulnerability to execute arbitrary code in the context of the service account running the Valkey service.
Mitigation
- Apply the official security update issued by Valkey.
- Enforce strong authentication mechanisms and restrict access to the Valkey instance to trusted users only.
References
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.