Skip to content

overflow in ex address parsing

Low
chrisbra published GHSA-6g74-hr6q-pr8g Nov 16, 2023

Package

Vim (Vim)

Affected versions

< v9.0.2110

Patched versions

v9.0.2110

Description

overflow in ex address parsing

Date: 16.11.2023
Severity: Low

When parsing relative ex addresses one may unintentionally cause an
overflow. Ironacially this happens in the existing overflow check, because
the line number becomes negative and LONG_MAX - lnum will cause the overflow.

Impact is low, user interaction is required and a crash may not even happen.

So verify that the line numer is actually positive before doing the actual overflow
check.

The Vim project would like to thank Fabian Toepfer for reporting this issue
which is now fixed in Vim patch 9.0.2110.

Severity

Low
2.8
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L

CVE ID

CVE-2023-48235

Weaknesses

No CWEs