CVE-2022-4293: Floating Point Comparison with Incorrect Operator in vim/vim
Vulnerability summary
CVE-2022-4293 is a medium (CVSS 6.8) vulnerability in vim. EPSS estimates a 0.78% chance of exploitation in the next 30 days, higher than 57.1% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 05-12-2022PublishedVulnerability first disclosed.
- 14-04-2025Last modifiedVulnerability information updated.
Description
Floating Point Comparison with Incorrect Operator in GitHub repository vim/vim prior to 9.0.0804.
CVSS metrics
7 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated6.8MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- NVDNIST6.8MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
EPSS trend
Probability
0.78%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
Increase +0.30 pp
From 0.48% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.dev)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-1077Floating Point Comparison with Incorrect OperatorThe code performs a comparison such as an equality test between two float (floating point) values, but it uses comparison operators that do not account for the possibility of loss of precision.
- CWE-697Incorrect ComparisonThe product compares two entities in a security-relevant context, but the comparison is incorrect.
Affected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- vim< 9.0.0999-r0
Debian1 product
- vim< 2:9.0.0813-1
Ubuntu1 product
- vim< 2:8.1.2269-1ubuntu5.18 | < 2:8.2.3995-1ubuntu2.12
4 vendors · 5 products
References
9 links- security.gentoo.org/glsa/202305-16Vendor Advisory