Editor crash via minimum-integer division overflow
Published Dec 5, 2022 · Updated Apr 14, 2025
Denial of service in Vim before 9.0.0804 allows local users to crash the editor by evaluating a crafted division expression. The num_divide() function in src/eval.c passes VARNUM_MIN divided by -1 to the native division operator, producing an unrepresentable result and a floating-point exception. Triggering the condition requires Vim to evaluate the expression, and the consequence is termination of the affected editor process.
Summary
What happened
Denial of service in Vim before 9.0.0804 allows local users to crash the editor by evaluating a crafted division expression. The num_divide() function in src/eval.c passes VARNUM_MIN divided by -1 to the native division operator, producing an unrepresentable result and a floating-point exception. Triggering the condition requires Vim to evaluate the expression, and the consequence is termination of the affected editor process.
The record
- CVE
- CVE-2022-4293
- Published
- Dec 5, 2022
- Updated
- Apr 14, 2025
- Vendor
- Vim
- Product
- Vim
- Classifications
- CWE-697, CWE-1077
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Dec 5, 2022CVE publishedPublication date reported by the CVE source.
- Apr 14, 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=unspecified <9.0.0804
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
- Huntr proof of concept for CVE-2022-4293proof of concept · unverified
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