# MGASA-2021-0481

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2021-10-20 · Modified: 2026-04-16
- Record: https://cvemate.com/vulnerability/MGASA-2021-0481 · JSON: https://cvemate.com/vulnerability/MGASA-2021-0481/json

## Description

```text
Updated vim packages fix security vulnerability

CVE-2021-3778: vim: Heap-based Buffer Overflow in utf_ptr2char()
Fix: patch 8.2.3409: reading beyond end of line with invalid utf-8 character
When vim 8.2 is built with --with-features=huge --enable-gui=none
and address sanitizer, a heap-buffer overflow occurs when running:
echo "Ywp2XTCqCi4KeQpAMA==" | base64 -d > fuzz000.txt
vim -u NONE -X -Z -e -s -S fuzz000.txt -c :qa!

CVE-2021-3796: vim: Use After Free in nv_replace()
Fix: patch 8.2.3428: using freed memory when replacing
When vim 8.2 is built with --with-features=huge --enable-gui=none
and address sanitizer, a use-after-free occurs when running:
LC_ALL=C vim -U NONE -X -Z -e -s -S poc -c :qa!
with the poc file provided.
```

## Signals

- CVSS: none published
- EPSS: not scored
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- mageia vim (Mageia): \< 8.2.2143-3.2.mga8

## References

- <https://advisories.mageia.org/MGASA-2021-0481.html>
- <https://bugs.mageia.org/show_bug.cgi?id=29501>
- <https://github.com/vim/vim/commit/65b605665997fad54ef39a93199e305af2fe4d7f>
- <https://huntr.dev/bounties/d9c17308-2c99-4f9f-a706-f7f72c24c273/>
- <https://github.com/vim/vim/commit/35a9a00afcb20897d462a766793ff45534810dc3>
- <https://huntr.dev/bounties/ab60b7f3-6fb1-4ac2-a4fa-4d592e08008d/>
- <https://ubuntu.com/security/notices/USN-5093-1>
- <https://www.openwall.com/lists/oss-security/2021/10/01/1>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/TE62UMYBZE4AE53K6OBBWK32XQ7544QM/>

---

Data as of 2026-12-05T07:31:45.807Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
