Authenticated service crash via Lua integer wraparound
Published Jun 15, 2020 · Updated Aug 4, 2024
Integer overflow in Redis before 6.0.3 allows remote authenticated users to crash the service through a crafted Lua struct format. The lua_struct.c getnum parser accumulates decimal widths in an int without checking multiplication and addition against INT_MAX, so a wrapped negative size becomes a large size_t and drives a stack-based out-of-bounds write. Lua execution permission is required; the demonstrated consequence is memory corruption and an application crash, while sandbox escape has not been confirmed.
Summary
What happened
Integer overflow in Redis before 6.0.3 allows remote authenticated users to crash the service through a crafted Lua struct format. The lua_struct.c getnum parser accumulates decimal widths in an int without checking multiplication and addition against INT_MAX, so a wrapped negative size becomes a large size_t and drives a stack-based out-of-bounds write. Lua execution permission is required; the demonstrated consequence is memory corruption and an application crash, while sandbox escape has not been confirmed.
The record
- CVE
- CVE-2020-14147
- Published
- Jun 15, 2020
- Updated
- Aug 4, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-190, CWE-787, T1499.004
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 15, 2020CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record 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?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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
- Redis lua_struct.c struct.pack crash 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