OESA-2024-2115 (CVE-2024-43802)
Vulnerability from osv_openeuler – Published: 2024-09-06 11:07 – Updated: 2026-08-06 11:07 – Source websiteVim is an advanced text editor that seeks to provide the power of the de-facto Unix editor 'Vi', with a more complete feature set. Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.
Security Fix(es):
Vim is an improved version of the unix vi text editor. When flushing the typeahead buffer, Vim moves the current position in the typeahead buffer but does not check whether there is enough space left in the buffer to handle the next characters. So this may lead to the tb_off position within the typebuf variable to point outside of the valid buffer size, which can then later lead to a heap-buffer overflow in e.g. ins_typebuf(). Therefore, when flushing the typeahead buffer, check if there is enough space left before advancing the off position. If not, fall back to flush current typebuf contents. It's not quite clear yet, what can lead to this situation. It seems to happen when error messages occur (which will cause Vim to flush the typeahead buffer) in comnination with several long mappgins and so it may eventually move the off position out of a valid buffer size. Impact is low since it is not easily reproducible and requires to have several mappings active and run into some error condition. But when this happens, this will cause a crash. The issue has been fixed as of Vim patch v9.1.0697. Users are advised to upgrade. There are no known workarounds for this issue.(CVE-2024-43802)
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"aarch64": [
"vim-X11-9.0-27.oe2203sp4.aarch64.rpm",
"vim-common-9.0-27.oe2203sp4.aarch64.rpm",
"vim-debuginfo-9.0-27.oe2203sp4.aarch64.rpm",
"vim-debugsource-9.0-27.oe2203sp4.aarch64.rpm",
"vim-enhanced-9.0-27.oe2203sp4.aarch64.rpm",
"vim-minimal-9.0-27.oe2203sp4.aarch64.rpm"
],
"noarch": [
"vim-filesystem-9.0-27.oe2203sp4.noarch.rpm"
],
"src": [
"vim-9.0-27.oe2203sp4.src.rpm"
],
"x86_64": [
"vim-X11-9.0-27.oe2203sp4.x86_64.rpm",
"vim-common-9.0-27.oe2203sp4.x86_64.rpm",
"vim-debuginfo-9.0-27.oe2203sp4.x86_64.rpm",
"vim-debugsource-9.0-27.oe2203sp4.x86_64.rpm",
"vim-enhanced-9.0-27.oe2203sp4.x86_64.rpm",
"vim-minimal-9.0-27.oe2203sp4.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:22.03-LTS-SP4",
"name": "vim",
"purl": "pkg:rpm/openEuler/vim\u0026distro=openEuler-22.03-LTS-SP4"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.0-27.oe2203sp4"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"vim-X11-9.0-27.oe2203sp3.aarch64.rpm",
"vim-common-9.0-27.oe2203sp3.aarch64.rpm",
"vim-debuginfo-9.0-27.oe2203sp3.aarch64.rpm",
"vim-debugsource-9.0-27.oe2203sp3.aarch64.rpm",
"vim-enhanced-9.0-27.oe2203sp3.aarch64.rpm",
"vim-minimal-9.0-27.oe2203sp3.aarch64.rpm"
],
"noarch": [
"vim-filesystem-9.0-27.oe2203sp3.noarch.rpm"
],
"src": [
"vim-9.0-27.oe2203sp3.src.rpm"
],
"x86_64": [
"vim-X11-9.0-27.oe2203sp3.x86_64.rpm",
"vim-common-9.0-27.oe2203sp3.x86_64.rpm",
"vim-debuginfo-9.0-27.oe2203sp3.x86_64.rpm",
"vim-debugsource-9.0-27.oe2203sp3.x86_64.rpm",
"vim-enhanced-9.0-27.oe2203sp3.x86_64.rpm",
"vim-minimal-9.0-27.oe2203sp3.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:22.03-LTS-SP3",
"name": "vim",
"purl": "pkg:rpm/openEuler/vim\u0026distro=openEuler-22.03-LTS-SP3"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.0-27.oe2203sp3"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"vim-X11-9.0-26.oe2003sp4.aarch64.rpm",
"vim-common-9.0-26.oe2003sp4.aarch64.rpm",
"vim-debuginfo-9.0-26.oe2003sp4.aarch64.rpm",
"vim-debugsource-9.0-26.oe2003sp4.aarch64.rpm",
"vim-enhanced-9.0-26.oe2003sp4.aarch64.rpm",
"vim-minimal-9.0-26.oe2003sp4.aarch64.rpm"
],
"noarch": [
"vim-filesystem-9.0-26.oe2003sp4.noarch.rpm"
],
"src": [
"vim-9.0-26.oe2003sp4.src.rpm"
],
"x86_64": [
"vim-X11-9.0-26.oe2003sp4.x86_64.rpm",
"vim-common-9.0-26.oe2003sp4.x86_64.rpm",
"vim-debuginfo-9.0-26.oe2003sp4.x86_64.rpm",
"vim-debugsource-9.0-26.oe2003sp4.x86_64.rpm",
"vim-enhanced-9.0-26.oe2003sp4.x86_64.rpm",
"vim-minimal-9.0-26.oe2003sp4.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:20.03-LTS-SP4",
"name": "vim",
"purl": "pkg:rpm/openEuler/vim\u0026distro=openEuler-20.03-LTS-SP4"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.0-26.oe2003sp4"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"vim-X11-9.0-27.oe2203sp1.aarch64.rpm",
"vim-common-9.0-27.oe2203sp1.aarch64.rpm",
"vim-debuginfo-9.0-27.oe2203sp1.aarch64.rpm",
"vim-debugsource-9.0-27.oe2203sp1.aarch64.rpm",
"vim-enhanced-9.0-27.oe2203sp1.aarch64.rpm",
"vim-minimal-9.0-27.oe2203sp1.aarch64.rpm"
],
"noarch": [
"vim-filesystem-9.0-27.oe2203sp1.noarch.rpm"
],
"src": [
"vim-9.0-27.oe2203sp1.src.rpm"
],
"x86_64": [
"vim-X11-9.0-27.oe2203sp1.x86_64.rpm",
"vim-common-9.0-27.oe2203sp1.x86_64.rpm",
"vim-debuginfo-9.0-27.oe2203sp1.x86_64.rpm",
"vim-debugsource-9.0-27.oe2203sp1.x86_64.rpm",
"vim-enhanced-9.0-27.oe2203sp1.x86_64.rpm",
"vim-minimal-9.0-27.oe2203sp1.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:22.03-LTS-SP1",
"name": "vim",
"purl": "pkg:rpm/openEuler/vim\u0026distro=openEuler-22.03-LTS-SP1"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.0-27.oe2203sp1"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"vim-X11-9.0.2092-11.oe2403.aarch64.rpm",
"vim-common-9.0.2092-11.oe2403.aarch64.rpm",
"vim-debuginfo-9.0.2092-11.oe2403.aarch64.rpm",
"vim-debugsource-9.0.2092-11.oe2403.aarch64.rpm",
"vim-enhanced-9.0.2092-11.oe2403.aarch64.rpm",
"vim-minimal-9.0.2092-11.oe2403.aarch64.rpm"
],
"noarch": [
"vim-filesystem-9.0.2092-11.oe2403.noarch.rpm"
],
"src": [
"vim-9.0.2092-11.oe2403.src.rpm"
],
"x86_64": [
"vim-X11-9.0.2092-11.oe2403.x86_64.rpm",
"vim-common-9.0.2092-11.oe2403.x86_64.rpm",
"vim-debuginfo-9.0.2092-11.oe2403.x86_64.rpm",
"vim-debugsource-9.0.2092-11.oe2403.x86_64.rpm",
"vim-enhanced-9.0.2092-11.oe2403.x86_64.rpm",
"vim-minimal-9.0.2092-11.oe2403.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:24.03-LTS",
"name": "vim",
"purl": "pkg:rpm/openEuler/vim\u0026distro=openEuler-24.03-LTS"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.0.2092-11.oe2403"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"severity": "Medium"
},
"details": "Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor \u0026apos;Vi\u0026apos;, with a more complete feature set. Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.\n\nSecurity Fix(es):\n\nVim is an improved version of the unix vi text editor. When flushing the typeahead buffer, Vim moves the current position in the typeahead buffer but does not check whether there is enough space left in the buffer to handle the next characters. So this may lead to the tb_off position within the typebuf variable to point outside of the valid buffer size, which can then later lead to a heap-buffer overflow in e.g. ins_typebuf(). Therefore, when flushing the typeahead buffer, check if there is enough space left before advancing the off position. If not, fall back to flush current typebuf contents. It\u0026apos;s not quite clear yet, what can lead to this situation. It seems to happen when error messages occur (which will cause Vim to flush the typeahead buffer) in comnination with several long mappgins and so it may eventually move the off position out of a valid buffer size. Impact is low since it is not easily reproducible and requires to have several mappings active and run into some error condition. But when this happens, this will cause a crash. The issue has been fixed as of Vim patch v9.1.0697. Users are advised to upgrade. There are no known workarounds for this issue.(CVE-2024-43802)",
"id": "OESA-2024-2115",
"modified": "2026-08-06T11:07:35Z",
"published": "2024-09-06T11:07:35Z",
"references": [
{
"type": "ADVISORY",
"url": "https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2024-2115"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-43802"
}
],
"schema_version": "1.7.2",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
}
],
"summary": "vim security update",
"upstream": [
"CVE-2024-43802"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.