idx int64 | project string | commit_id string | project_url string | commit_url string | commit_message string | target int64 | func string | func_hash float64 | file_name string | file_hash float64 | cwe list | cve string | cve_desc string | nvd_url string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
517,245 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static void didset_options2(void)
{
// Initialize the highlight_attr[] table.
(void)highlight_changed();
// Parse default for 'clipboard'.
(void)opt_strings_flags(p_cb, p_cb_values, &cb_flags, true);
// Parse default for 'fillchars'.
(void)set_chars_option(&p_fcs);
// Parse default for 'listchars'.
(... | 125,516,156,932,228,700,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,246 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static void check_winopt(winopt_T *wop)
{
check_string_option(&wop->wo_fdi);
check_string_option(&wop->wo_fdm);
check_string_option(&wop->wo_fdm_save);
check_string_option(&wop->wo_fde);
check_string_option(&wop->wo_fdt);
check_string_option(&wop->wo_fmr);
check_string_option(&wop->wo_rlc);
check_string... | 89,515,585,016,343,970,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,247 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static bool valid_filetype(char_u *val)
{
for (char_u *s = val; *s != NUL; s++) {
if (!ASCII_ISALNUM(*s) && vim_strchr((char_u *)".-_", *s) == NULL) {
return false;
}
}
return true;
} | 316,037,629,717,020,800,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,248 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | set_options_bin (
int oldval,
int newval,
int opt_flags /* OPT_LOCAL and/or OPT_GLOBAL */
)
{
/*
* The option values that are changed when 'bin' changes are
* copied when 'bin is set and restored when 'bin' is reset.
*/
if (newval) {
if (!oldval) { /* switched ... | 264,538,583,107,893,630,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,249 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | showoneopt (
vimoption_T *p,
int opt_flags /* OPT_LOCAL or OPT_GLOBAL */
)
{
char_u *varp;
int save_silent = silent_mode;
silent_mode = FALSE;
info_message = TRUE; /* use mch_msg(), not mch_errmsg() */
varp = get_varp_scope(p, opt_flags);
// for 'modified' w... | 84,880,749,966,218,750,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,250 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void set_fileformat(int eol_style, int opt_flags)
{
char *p = NULL;
switch (eol_style) {
case EOL_UNIX:
p = FF_UNIX;
break;
case EOL_MAC:
p = FF_MAC;
break;
case EOL_DOS:
p = FF_DOS;
break;
}
// p is NULL if "eol_style" is EOL_UNKNO... | 306,477,975,773,194,270,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,251 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void vimrc_found(char_u *fname, char_u *envname)
{
char_u *p;
if (fname != NULL) {
p = (char_u *)vim_getenv((char *)envname);
if (p == NULL) {
/* Set $MYVIMRC to the first vimrc file found. */
p = (char_u *)FullName_save((char *)fname, FALSE);
if (p != NULL) {
vim_setenv((cha... | 236,617,075,585,832,700,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,252 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | size_t copy_option_part(char_u **option, char_u *buf, size_t maxlen,
char *sep_chars)
{
size_t len = 0;
char_u *p = *option;
// skip '.' at start of option part, for 'suffixes'
if (*p == '.') {
buf[len++] = *p++;
}
while (*p != NUL && vim_strchr((char_u *)sep_chars, *p) == NULL... | 239,436,598,767,132,860,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,253 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void set_iminsert_global(void)
{
p_iminsert = curbuf->b_p_iminsert;
} | 223,682,642,037,784,820,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,254 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static char_u *illegal_char(char_u *errbuf, int c)
{
if (errbuf == NULL)
return (char_u *)"";
sprintf((char *)errbuf, _("E539: Illegal character <%s>"),
(char *)transchar(c));
return errbuf;
} | 38,932,159,407,576,140,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,255 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | set_context_in_set_cmd (
expand_T *xp,
char_u *arg,
int opt_flags /* OPT_GLOBAL and/or OPT_LOCAL */
)
{
char_u nextchar;
uint32_t flags = 0; /* init for GCC */
int opt_idx = 0; /* init for GCC */
char_u *p;
char_u *s;
int is_term_option = FALSE;
... | 179,607,291,745,571,470,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,256 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int default_fileformat(void)
{
switch (*p_ffs) {
case 'm': return EOL_MAC;
case 'd': return EOL_DOS;
}
return EOL_UNIX;
} | 333,247,622,813,393,100,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,257 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static char_u *set_chars_option(char_u **varp)
{
int round, i, len, entries;
char_u *p, *s;
int c1, c2 = 0;
struct charstab {
int *cp;
char *name;
};
static struct charstab filltab[] =
{
{&fill_stl, "stl"},
{&fill_stlnc, "stlnc"},
{&fill_vert, "vert"},
{&fill_f... | 20,134,505,753,836,830,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,258 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void free_string_option(char_u *p)
{
if (p != empty_option)
xfree(p);
} | 258,646,502,567,393,020,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,259 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int get_option_value_strict(char *name,
int64_t *numval,
char **stringval,
int opt_type,
void *from)
{
if (get_tty_option(name, stringval)) {
return SOPT_STRING | SOPT_GLOBAL;
}
char_u *varp = NULL... | 89,947,302,122,809,470,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,260 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void set_imsearch_global(void)
{
p_imsearch = curbuf->b_p_imsearch;
} | 225,535,570,154,203,970,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,261 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static void check_redraw(uint32_t flags)
{
/* Careful: P_RCLR and P_RALL are a combination of other P_ flags */
bool doclear = (flags & P_RCLR) == P_RCLR;
bool all = ((flags & P_RALL) == P_RALL || doclear);
if ((flags & P_RSTAT) || all) /* mark all status lines dirty */
status_redraw_all();
if (... | 275,441,573,115,666,900,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,262 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static void langmap_set_entry(int from, int to)
{
langmap_entry_T *entries = (langmap_entry_T *)(langmap_mapga.ga_data);
unsigned int a = 0;
assert(langmap_mapga.ga_len >= 0);
unsigned int b = (unsigned int)langmap_mapga.ga_len;
/* Do a binary search for an existing entry. */
while (a != b) {
unsigned ... | 276,731,298,428,151,120,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,263 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static char_u *compile_cap_prog(synblock_T *synblock)
{
regprog_T *rp = synblock->b_cap_prog;
char_u *re;
if (*synblock->b_p_spc == NUL)
synblock->b_cap_prog = NULL;
else {
/* Prepend a ^ so that we only match at one column */
re = concat_str((char_u *)"^", synblock->b_p_spc);
synblock->... | 183,789,419,020,012,000,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,264 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static char_u *option_expand(int opt_idx, char_u *val)
{
/* if option doesn't need expansion nothing to do */
if (!(options[opt_idx].flags & P_EXPAND) || options[opt_idx].var == NULL)
return NULL;
if (val == NULL) {
val = *(char_u **)options[opt_idx].var;
}
// If val is longer than MAXPATHL no meani... | 261,364,918,614,990,200,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,265 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int makeset(FILE *fd, int opt_flags, int local_only)
{
vimoption_T *p;
char_u *varp; /* currently used value */
char_u *varp_fresh; /* local value */
char_u *varp_local = NULL; /* fresh value */
char *cmd;
int rou... | 162,952,283,469,846,270,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,266 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int was_set_insecurely(char_u *opt, int opt_flags)
{
int idx = findoption(opt);
if (idx >= 0) {
uint32_t *flagp = insecure_flag(idx, opt_flags);
return (*flagp & P_INSECURE) != 0;
}
EMSG2(_(e_intern2), "was_set_insecurely()");
return -1;
} | 267,269,046,219,687,450,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,267 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void set_title_defaults(void)
{
int idx1;
/*
* If GUI is (going to be) used, we can always set the window title and
* icon name. Saves a bit of time, because the X11 display server does
* not need to be contacted.
*/
idx1 = findoption((char_u *)"title");
if (idx1 >= 0 && !(options[idx1].flags & P_... | 240,782,212,417,969,330,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,268 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int get_sw_value(buf_T *buf)
{
long result = buf->b_p_sw ? buf->b_p_sw : buf->b_p_ts;
assert(result >= 0 && result <= INT_MAX);
return (int)result;
} | 176,838,936,266,142,340,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,269 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int get_fileformat(buf_T *buf)
{
int c = *buf->b_p_ff;
if (buf->b_p_bin || c == 'u') {
return EOL_UNIX;
}
if (c == 'm') {
return EOL_MAC;
}
return EOL_DOS;
} | 189,566,647,176,192,100,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,270 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static void paste_option_changed(void)
{
static int old_p_paste = FALSE;
static int save_sm = 0;
static int save_sta = 0;
static int save_ru = 0;
static int save_ri = 0;
static int save_hkmap = 0;
if (p_paste) {
/*
* Paste switched from off to on.
* Save the current values, so they can be r... | 37,401,391,585,451,097,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,271 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int get_fileformat_force(buf_T *buf, exarg_T *eap)
{
int c;
if (eap != NULL && eap->force_ff != 0) {
c = eap->cmd[eap->force_ff];
} else {
if ((eap != NULL && eap->force_bin != 0)
? (eap->force_bin == FORCE_BIN) : buf->b_p_bin) {
return EOL_UNIX;
}
c = *buf->b_p_ff;
}
if (c == '... | 290,375,951,528,918,500,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,272 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | do_set (
char_u *arg, /* option string (may be written to!) */
int opt_flags
)
{
int opt_idx;
char_u *errmsg;
char_u errbuf[80];
char_u *startarg;
int prefix; /* 1: nothing, 0: "no", 2: "inv" in front of name */
char_u nextchar; /* next non-white ch... | 63,549,220,249,634,490,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,273 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | char_u *find_shada_parameter(int type)
{
char_u *p;
for (p = p_shada; *p; ++p) {
if (*p == type)
return p + 1;
if (*p == 'n') /* 'n' is always the last one */
break;
p = vim_strchr(p, ','); /* skip until next ',' */
if (p == NULL) /* hit the en... | 312,901,191,706,102,780,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,274 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static void check_string_option(char_u **pp)
{
if (*pp == NULL)
*pp = empty_option;
} | 295,143,052,869,404,600,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,275 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | set_option_value (
char_u *name,
long number,
char_u *string,
int opt_flags /* OPT_LOCAL or 0 (both) */
)
{
if (set_tty_option((char *)name, (char *)string)) {
return NULL;
}
int opt_idx;
char_u *varp;
opt_idx = findoption(name);
if (opt_idx < 0)
EMSG2(_("E355... | 61,788,268,801,527,455,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,276 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static char_u *get_varp_scope(vimoption_T *p, int opt_flags)
{
if ((opt_flags & OPT_GLOBAL) && p->indir != PV_NONE) {
if (p->var == VAR_WIN)
return (char_u *)GLOBAL_WO(get_varp(p));
return p->var;
}
if ((opt_flags & OPT_LOCAL) && ((int)p->indir & PV_BOTH)) {
switch ((int)p->indir) {
case PV_... | 189,664,058,946,234,930,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,277 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void check_options(void)
{
int opt_idx;
for (opt_idx = 0; options[opt_idx].fullname != NULL; opt_idx++)
if ((options[opt_idx].flags & P_STRING) && options[opt_idx].var != NULL)
check_string_option((char_u **)get_varp(&(options[opt_idx])));
} | 187,697,728,857,511,550,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,278 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static int find_key_option(const char_u *arg)
{
return find_key_option_len(arg, STRLEN(arg));
} | 243,971,768,365,448,150,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,279 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static int optval_default(vimoption_T *p, char_u *varp)
{
int dvi;
if (varp == NULL)
return TRUE; /* hidden option is always at default */
dvi = ((p->flags & P_VI_DEF) || p_cp) ? VI_DEFAULT : VIM_DEFAULT;
if (p->flags & P_NUM)
return *(long *)varp == (long)p->def_val[dvi];
if (p->flags & P... | 327,041,306,471,421,860,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,280 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | bool file_ff_differs(buf_T *buf, bool ignore_empty)
{
/* In a buffer that was never loaded the options are not valid. */
if (buf->b_flags & BF_NEVERLOADED)
return FALSE;
if (ignore_empty
&& (buf->b_flags & BF_NEW)
&& buf->b_ml.ml_line_count == 1
&& *ml_get_buf(buf, (linenr_T)1, FALSE) == NUL... | 47,690,029,139,812,765,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,281 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int option_was_set(char_u *name)
{
int idx;
idx = findoption(name);
if (idx < 0) /* unknown option */
return FALSE;
if (options[idx].flags & P_WAS_SET)
return TRUE;
return FALSE;
} | 178,386,212,406,425,170,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,282 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void set_number_default(char *name, long val)
{
int opt_idx;
opt_idx = findoption((char_u *)name);
if (opt_idx >= 0)
options[opt_idx].def_val[VI_DEFAULT] = (char_u *)val;
} | 229,877,298,025,598,650,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,283 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static int put_setbool(FILE *fd, char *cmd, char *name, int value)
{
if (value < 0) /* global/local option using global value */
return OK;
if (fprintf(fd, "%s %s%s", cmd, value ? "" : "no", name) < 0
|| put_eol(fd) < 0)
return FAIL;
return OK;
} | 248,289,908,911,509,430,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,284 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void free_all_options(void)
{
int i;
for (i = 0; options[i].fullname; i++) {
if (options[i].indir == PV_NONE) {
/* global option: free value and default value. */
if (options[i].flags & P_ALLOCED && options[i].var != NULL)
free_string_option(*(char_u **)options[i].var);
if (options[i]... | 125,741,674,607,668,140,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,285 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static int put_setnum(FILE *fd, char *cmd, char *name, long *valuep)
{
long wc;
if (fprintf(fd, "%s %s=", cmd, name) < 0)
return FAIL;
if (wc_use_keyname((char_u *)valuep, &wc)) {
/* print 'wildchar' and 'wildcharm' as a key name */
if (fputs((char *)get_special_key_name((int)wc, 0), fd) < 0)
r... | 76,215,394,265,353,490,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,286 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | did_set_string_option (
int opt_idx, /* index in options[] table */
char_u **varp, /* pointer to the option variable */
int new_value_alloced, /* new value was allocated */
char_u *oldval, /* previous value of the option ... | 209,905,660,793,532,500,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,287 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void copy_winopt(winopt_T *from, winopt_T *to)
{
to->wo_arab = from->wo_arab;
to->wo_list = from->wo_list;
to->wo_nu = from->wo_nu;
to->wo_rnu = from->wo_rnu;
to->wo_nuw = from->wo_nuw;
to->wo_rl = from->wo_rl;
to->wo_rlc = vim_strsave(from->wo_rlc);
to->wo_stl = vim_strsave(from->wo_stl);
to->wo_wra... | 70,145,532,151,496,300,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,288 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | unsigned int get_bkc_value(buf_T *buf)
{
return buf->b_bkc_flags ? buf->b_bkc_flags : bkc_flags;
} | 196,455,092,462,533,360,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,289 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | char_u *get_equalprg(void)
{
if (*curbuf->b_p_ep == NUL)
return p_ep;
return curbuf->b_p_ep;
} | 83,099,102,768,916,540,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,290 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static void fill_breakat_flags(void)
{
char_u *p;
int i;
for (i = 0; i < 256; i++)
breakat_flags[i] = FALSE;
if (p_breakat != NULL)
for (p = p_breakat; *p; p++)
breakat_flags[*p] = TRUE;
} | 1,377,316,502,543,630,300,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,291 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void reset_modifiable(void)
{
int opt_idx;
curbuf->b_p_ma = FALSE;
p_ma = FALSE;
opt_idx = findoption((char_u *)"ma");
if (opt_idx >= 0)
options[opt_idx].def_val[VI_DEFAULT] = FALSE;
} | 190,987,786,088,612,670,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,292 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int get_shada_parameter(int type)
{
char_u *p;
p = find_shada_parameter(type);
if (p != NULL && ascii_isdigit(*p))
return atoi((char *)p);
return -1;
} | 118,363,266,470,552,120,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,293 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static int string_to_key(char_u *arg)
{
if (*arg == '<')
return find_key_option(arg + 1);
if (*arg == '^')
return Ctrl_chr(arg[1]);
return *arg;
} | 230,297,330,578,470,170,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,294 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static char_u *check_cedit(void)
{
int n;
if (*p_cedit == NUL)
cedit_key = -1;
else {
n = string_to_key(p_cedit);
if (vim_isprintc(n))
return e_invarg;
cedit_key = n;
}
return NULL;
} | 28,447,471,788,036,300,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,295 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static void langmap_init(void)
{
for (int i = 0; i < 256; i++)
langmap_mapchar[i] = (char_u)i; /* we init with a one-to-one map */
ga_init(&langmap_mapga, sizeof(langmap_entry_T), 8);
} | 242,873,051,320,267,440,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,296 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int find_key_option_len(const char_u *arg, size_t len)
{
int key;
int modifiers;
// Don't use get_special_key_code() for t_xx, we don't want it to call
// add_termcap_entry().
if (len >= 4 && arg[0] == 't' && arg[1] == '_') {
key = TERMCAP2KEY(arg[2], arg[3]);
} else {
arg--; // put arg at the '<'... | 94,633,405,001,961,690,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,297 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ARG(1)
{
if (val == NULL || *val == NUL) {
return dest;
}
const void *iter = NULL;
do {
size_t dir_len;
const char *dir;
iter = (forward ? vim_colon_env_iter : vim_colon_env_iter_rev)(
val, iter, &dir, &dir_len);
... | 85,317,901,860,519,450,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,298 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void set_helplang_default(const char *lang)
{
int idx;
if (lang == NULL || STRLEN(lang) < 2) /* safety check */
return;
idx = findoption((char_u *)"hlg");
if (idx >= 0 && !(options[idx].flags & P_WAS_SET)) {
if (options[idx].flags & P_ALLOCED)
free_string_option(p_hlg);
p_hlg = (char_... | 167,711,176,162,736,670,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,299 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void unset_global_local_option(char *name, void *from)
{
vimoption_T *p;
buf_T *buf = (buf_T *)from;
int opt_idx = findoption((uint8_t *)name);
if (opt_idx < 0) {
EMSG2(_("E355: Unknown option: %s"), name);
return;
}
p = &(options[opt_idx]);
switch ((int)p->indir)
{
// global option with l... | 114,687,337,656,565,760,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,300 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | char_u *skip_to_option_part(char_u *p)
{
if (*p == ',') {
p++;
}
while (*p == ' ') {
p++;
}
return p;
} | 204,521,752,670,292,160,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,301 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | if (val == NULL || *val == NUL) {
return 0;
} | 103,268,875,955,863,600,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,302 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | char_u *check_colorcolumn(win_T *wp)
{
char_u *s;
int col;
unsigned int count = 0;
int color_cols[256];
int j = 0;
if (wp->w_buffer == NULL)
return NULL; /* buffer was closed */
for (s = wp->w_p_cc; *s != NUL && count < 255; ) {
if (*s == '-' || *s == '+') {
/* -N and +N: add to ... | 234,006,543,057,854,880,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,303 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static int opt_strings_flags(
char_u *val, /* new value */
char **values, /* array of valid string values */
unsigned *flagp,
bool list /* when TRUE: accept a list of values */
)
{
unsigned int new_flags = 0;
while (*val) {
for (unsigned int i = 0;; ++i) {
... | 145,894,803,317,682,730,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,304 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | bool can_bs(int what)
{
switch (*p_bs) {
case '2': return TRUE;
case '1': return what != BS_START;
case '0': return FALSE;
}
return vim_strchr(p_bs, what) != NULL;
} | 324,896,811,670,632,130,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,305 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | get_option_value (
char_u *name,
long *numval,
char_u **stringval, /* NULL when only checking existence */
int opt_flags
)
{
if (get_tty_option((char *)name, (char **)stringval)) {
return 0;
}
int opt_idx;
char_u *varp;
opt_idx = findoption(name);
if (opt_idx < 0) ... | 57,786,339,710,737,030,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,306 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | FUNC_ATTR_NONNULL_ARG(2) FUNC_ATTR_WARN_UNUSED_RESULT
{
if (options[opt_idx].var == NULL) { // don't set hidden option
return NULL;
}
char *const s = xstrdup(value);
char **const varp = (char **)get_varp_scope(
&(options[opt_idx]),
((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0
? (((int... | 147,533,562,665,680,880,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,307 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int findoption_len(const char_u *const arg, const size_t len)
{
char *s, *p;
static int quick_tab[27] = { 0, 0 }; // quick access table
int is_term_opt;
/*
* For first call: Initialize the quick-access table.
* It contains the index for the first option that starts with a certain
* letter. There are... | 162,481,062,163,427,160,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,308 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | set_string_option_global (
int opt_idx, /* option index */
char_u **varp /* pointer to option variable */
)
{
char_u **p, *s;
/* the global value is always allocated */
if (options[opt_idx].var == VAR_WIN)
p = (char_u **)GLOBAL_WO(varp);
else
p = (char_u **)o... | 112,964,154,414,979,880,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,309 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | int get_sts_value(void)
{
long result = curbuf->b_p_sts < 0 ? get_sw_value(curbuf) : curbuf->b_p_sts;
assert(result >= 0 && result <= INT_MAX);
return (int)result;
} | 217,331,770,627,870,000,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,310 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | void set_init_3(void)
{
// Set 'shellpipe' and 'shellredir', depending on the 'shell' option.
// This is done after other initializations, where 'shell' might have been
// set, but only if they have not been set before.
int idx_srr;
int do_srr;
int idx_sp;
int do_sp;
idx_srr = findoption((char_u *)"srr... | 87,780,358,992,353,300,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,311 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static int put_setstring(FILE *fd, char *cmd, char *name, char_u **valuep, int expand)
{
char_u *s;
char_u *buf;
if (fprintf(fd, "%s %s=", cmd, name) < 0)
return FAIL;
if (*valuep != NULL) {
/* Output 'pastetoggle' as key names. For other
* options some characters have to be escaped wit... | 58,704,579,733,816,670,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,312 | neovim | 4fad66fbe637818b6b3d6bc5d21923ba72795040 | https://github.com/neovim/neovim | https://github.com/neovim/neovim/commit/4fad66fbe637818b6b3d6bc5d21923ba72795040 | vim-patch:8.0.0056
Problem: When setting 'filetype' there is no check for a valid name.
Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a | 0 | static int wc_use_keyname(char_u *varp, long *wcp)
{
if (((long *)varp == &p_wc) || ((long *)varp == &p_wcm)) {
*wcp = *(long *)varp;
if (IS_SPECIAL(*wcp) || find_special_key_in_table((int)*wcp) >= 0)
return TRUE;
}
return FALSE;
} | 76,390,172,021,448,190,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | 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 execution of arbitrary code if a file with a specially crafted modeline is opened. | https://nvd.nist.gov/vuln/detail/CVE-2016-1248 |
517,460 | monit | f12d0cdb42d4e74dffe1525d4062c815c48ac57a | https://bitbucket.org/tildeslash/monit | https://bitbucket.org/tildeslash/monit/commits/f12d0cdb42d4e74dffe1525d4062c815c48ac57a | Fixed: Buffer overrun vulnerability in URL decoding. Thanks to Zack Flack for report. | 0 | static char *is_str_defined(char *s) {
return((s && *s) ? s : "(not defined)");
} | 132,769,819,003,423,940,000,000,000,000,000,000,000 | None | null | [
"CWE-125"
] | CVE-2019-11455 | A buffer over-read in Util_urlDecode in util.c in Tildeslash Monit before 5.25.3 allows a remote authenticated attacker to retrieve the contents of adjacent memory via manipulation of GET or POST parameters. The attacker can also cause a denial of service (application outage). | https://nvd.nist.gov/vuln/detail/CVE-2019-11455 |
517,461 | monit | f12d0cdb42d4e74dffe1525d4062c815c48ac57a | https://bitbucket.org/tildeslash/monit | https://bitbucket.org/tildeslash/monit/commits/f12d0cdb42d4e74dffe1525d4062c815c48ac57a | Fixed: Buffer overrun vulnerability in URL decoding. Thanks to Zack Flack for report. | 0 | static void printevents(unsigned int events) {
if (events == Event_Null) {
printf("No events");
} else if (events == Event_All) {
printf("All events");
} else {
if (IS_EVENT_SET(events, Event_Action))
printf("Action ");
... | 263,938,466,090,728,450,000,000,000,000,000,000,000 | None | null | [
"CWE-125"
] | CVE-2019-11455 | A buffer over-read in Util_urlDecode in util.c in Tildeslash Monit before 5.25.3 allows a remote authenticated attacker to retrieve the contents of adjacent memory via manipulation of GET or POST parameters. The attacker can also cause a denial of service (application outage). | https://nvd.nist.gov/vuln/detail/CVE-2019-11455 |
517,462 | monit | f12d0cdb42d4e74dffe1525d4062c815c48ac57a | https://bitbucket.org/tildeslash/monit | https://bitbucket.org/tildeslash/monit/commits/f12d0cdb42d4e74dffe1525d4062c815c48ac57a | Fixed: Buffer overrun vulnerability in URL decoding. Thanks to Zack Flack for report. | 0 | static char _x2c(char *hex) {
register char digit;
digit = ((hex[0] >= 'A') ? ((hex[0] & 0xdf) - 'A')+10 : (hex[0] - '0'));
digit *= 16;
digit += (hex[1] >= 'A' ? ((hex[1] & 0xdf) - 'A')+10 : (hex[1] - '0'));
return(digit);
} | 204,361,104,051,965,230,000,000,000,000,000,000,000 | None | null | [
"CWE-125"
] | CVE-2019-11455 | A buffer over-read in Util_urlDecode in util.c in Tildeslash Monit before 5.25.3 allows a remote authenticated attacker to retrieve the contents of adjacent memory via manipulation of GET or POST parameters. The attacker can also cause a denial of service (application outage). | https://nvd.nist.gov/vuln/detail/CVE-2019-11455 |
517,463 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | ParseNodePtr Parser::CreateParamPatternNode(ParseNodePtr pnode1)
{
ParseNodePtr paramPatternNode = CreateNode(knopParamPattern, pnode1->ichMin, pnode1->ichLim);
paramPatternNode->sxParamPattern.pnode1 = pnode1;
paramPatternNode->sxParamPattern.pnodeNext = nullptr;
paramPatternNode->sxParamPattern.locati... | 118,622,893,679,973,610,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,464 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | OpCode GetNop() const
{
AnalysisAssert(isDeferred || pnodeStmt != nullptr);
return isDeferred ? op : pnodeStmt->nop;
} | 175,916,778,833,206,240,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,465 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | ~AutoParsingSuperRestrictionStateRestorer()
{
AssertMsg(this->m_parser != nullptr, "This just should not happen");
this->m_parser->m_parsingSuperRestrictionState = m_originalParsingSuperRestrictionState;
} | 159,632,666,623,548,150,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,466 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | ParseNodePtr Parser::ParseDestructuredArrayLiteral(tokens declarationType, bool isDecl, bool topLevel)
{
Assert(m_token.tk == tkLBrack);
charcount_t ichMin = m_pscan->IchMinTok();
m_pscan->Scan();
ParseNodePtr pnodeDestructArr = nullptr;
ParseNodePtr pnodeList = nullptr;
ParseNodePtr *lastNode... | 194,425,530,023,277,700,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,467 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | ParseNodePtr Parser::CreateTempNode(ParseNode* initExpr)
{
ParseNodePtr pnode = CreateNode(knopTemp, (charcount_t)0);
pnode->sxVar.pnodeInit =initExpr;
pnode->sxVar.pnodeNext = nullptr;
return pnode;
} | 18,031,305,775,941,134,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,468 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | LPCOLESTR Parser::AppendNameHints(LPCOLESTR left, LPCOLESTR right, uint32 *pNameLength, uint32 *pShortNameOffset, bool ignoreAddDotWithSpace, bool wrapInBrackets)
{
uint32 leftLen = (left == nullptr) ? 0 : (uint32) wcslen(left);
uint32 rightLen = (right == nullptr) ? 0 : (uint32) wcslen(right);
if (pShortNa... | 306,626,682,519,623,400,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,469 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | void Parser::TrackAssignment(ParseNodePtr pnodeT, IdentToken* pToken)
{
if (buildAST)
{
Assert(pnodeT != nullptr);
if (pnodeT->nop == knopName)
{
PidRefStack *ref = pnodeT->sxPid.pid->GetTopRef();
Assert(ref);
ref->isAsg = true;
}
}
els... | 334,470,516,595,627,260,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,470 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | inline bool Parser::IsNaNOrInfinityLiteral(LPCOLESTR str)
{
// Note: wcscmp crashes when one of the parameters is NULL.
return str &&
(wcscmp(_u("NaN"), str) == 0 ||
wcscmp(_u("Infinity"), str) == 0 ||
(CheckForNegativeInfinity && wcscmp(_u("-Infinity"), str) == 0));
} | 73,723,421,611,867,040,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,471 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | IdentPtrList* Parser::EnsureRequestedModulesList()
{
if (m_currentNodeProg->sxModule.requestedModules == nullptr)
{
m_currentNodeProg->sxModule.requestedModules = Anew(&m_nodeAllocator, IdentPtrList, &m_nodeAllocator);
}
return m_currentNodeProg->sxModule.requestedModules;
} | 167,060,918,057,837,750,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,472 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | Parser::CreateCallNode(OpCode nop, ParseNodePtr pnode1, ParseNodePtr pnode2,charcount_t ichMin,charcount_t ichLim)
{
Assert(!this->m_deferringAST);
DebugOnly(VerifyNodeSize(nop, kcbPnCall));
ParseNodePtr pnode = (ParseNodePtr)m_nodeAllocator.Alloc(kcbPnCall);
Assert(m_pCurrentAstSize != nullptr);
*... | 117,022,259,709,064,000,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,473 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | void Parser::CheckStrictFormalParameters()
{
if (m_token.tk == tkID)
{
// single parameter arrow function case
IdentPtr pid = m_token.GetIdentifier(m_phtbl);
CheckStrictModeEvalArgumentsUsage(pid);
return;
}
Assert(m_token.tk == tkLParen);
m_pscan->ScanForcingPid();
... | 152,026,873,680,519,060,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,474 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | void Parser::SetNestedFuncEscapes() const
{
if (m_sourceContextInfo ?
!PHASE_OFF_RAW(Js::DisableStackFuncOnDeferredEscapePhase, m_sourceContextInfo->sourceContextId, m_currentNodeFunc->sxFnc.functionId) :
!PHASE_OFF1(Js::DisableStackFuncOnDeferredEscapePhase))
{
m_currentNodeFun... | 148,709,848,290,331,380,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,475 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | void Parser::ParseImportClause(ModuleImportOrExportEntryList* importEntryList, bool parsingAfterComma)
{
bool parsedNamespaceOrNamedImport = false;
switch (m_token.tk)
{
case tkID:
// This is the default binding identifier.
// If we already saw a comma in the import clause, this is a s... | 324,771,050,275,096,950,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,476 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | ParseNodePtr Parser::ParseSuper(ParseNodePtr pnode, bool fAllowCall)
{
ParseNodePtr currentNodeFunc = GetCurrentFunctionNode();
if (buildAST) {
pnode = CreateNodeWithScanner<knopSuper>();
}
m_pscan->ScanForcingPid();
switch (m_token.tk)
{
case tkDot: // super.prop
case tkL... | 94,008,200,766,786,030,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,477 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | ParseNodePtr Parser::ParseTry()
{
ParseNodePtr pnode = nullptr;
StmtNest stmt;
Assert(tkTRY == m_token.tk);
if (buildAST)
{
pnode = CreateNode(knopTry);
}
m_pscan->Scan();
if (tkLCurly != m_token.tk)
{
Error(ERRnoLcurly);
}
PushStmt<buildAST>(&stmt, pnode, kn... | 97,795,390,483,815,250,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,478 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | void Parser::PopFuncBlockScope(ParseNodePtr *ppnodeScopeSave, ParseNodePtr *ppnodeExprScopeSave)
{
Assert(m_ppnodeExprScope == nullptr || *m_ppnodeExprScope == nullptr);
m_ppnodeExprScope = ppnodeExprScopeSave;
AssertMem(m_ppnodeScope);
Assert(nullptr == *m_ppnodeScope);
m_ppnodeScope = ppnodeScope... | 312,370,950,046,855,600,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,479 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | void Parser::ValidateFormals()
{
ParseFncFormals<false>(nullptr, nullptr, fFncNoFlgs);
// Eat the tkRParen. The ParseFncDeclHelper caller expects to see it.
m_pscan->Scan();
} | 297,102,650,994,075,930,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,480 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | BOOL Parser::DeferredParse(Js::LocalFunctionId functionId)
{
if ((m_grfscr & fscrDeferFncParse) != 0)
{
if (m_stoppedDeferredParse)
{
return false;
}
if (PHASE_OFF_RAW(Js::DeferParsePhase, m_sourceContextInfo->sourceContextId, functionId))
{
return... | 262,965,492,135,862,880,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,481 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | ParseNodePtr Parser::GenerateEmptyConstructor(bool extends)
{
ParseNodePtr pnodeFnc;
// Create the node.
pnodeFnc = CreateNode(knopFncDecl);
pnodeFnc->sxFnc.ClearFlags();
pnodeFnc->sxFnc.SetNested(NULL != m_currentNodeFunc);
pnodeFnc->sxFnc.SetStrictMode();
pnodeFnc->sxFnc.SetDeclaration(TR... | 248,520,651,970,879,100,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,482 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | ParseNodePtr PnFnc::GetBodyScope() const
{
if (this->pnodeBodyScope == nullptr)
{
return nullptr;
}
Assert(this->pnodeBodyScope->nop == knopBlock &&
this->pnodeBodyScope->sxBlock.pnodeNext == nullptr);
return this->pnodeBodyScope->sxBlock.pnodeScopes;
} | 75,786,851,373,506,290,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,483 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | ParseNodePtr Parser::CreateCallNode(OpCode nop, ParseNodePtr pnode1, ParseNodePtr pnode2)
{
charcount_t ichMin;
charcount_t ichLim;
if (nullptr == pnode1)
{
Assert(nullptr == pnode2);
ichMin = m_pscan->IchMinTok();
ichLim = m_pscan->IchLimTok();
}
else
{
if (... | 290,760,531,058,806,570,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,484 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | Parser::MemberNameToTypeMap* Parser::CreateMemberNameMap(ArenaAllocator* pAllocator)
{
Assert(pAllocator);
return Anew(pAllocator, MemberNameToTypeMap, pAllocator, 5);
} | 243,389,869,141,717,570,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,485 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | void Parser::DeferOrEmitPotentialSpreadError(ParseNodePtr pnodeT)
{
if (m_parenDepth > 0)
{
if (m_token.tk == tkRParen)
{
if (!m_deferEllipsisError)
{
// Capture only the first error instance.
m_pscan->Capture(&m_EllipsisErrLoc);
... | 77,375,972,369,279,345,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,486 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | Parser::~Parser(void)
{
if (m_scriptContext == nullptr || m_scriptContext->GetGuestArena() == nullptr)
{
// If the scriptContext or guestArena have gone away, there is no point clearing each item of this list.
// Just reset it so that destructor of the SList will be no-op
m_registeredReg... | 4,580,016,938,448,044,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,487 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | HRESULT Parser::ParseCesu8Source(__out ParseNodePtr* parseTree, LPCUTF8 pSrc, size_t length, ULONG grfsrc, CompileScriptException *pse,
Js::LocalFunctionId * nextFunctionId, SourceContextInfo * sourceContextInfo)
{
m_functionBody = nullptr;
m_parseType = ParseType_Upfront;
return ParseSourceInternal( pa... | 60,423,773,769,992,590,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,488 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | bool Parser::IsES6DestructuringEnabled() const
{
return m_scriptContext->GetConfig()->IsES6DestructuringEnabled();
} | 9,643,580,934,717,089,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,489 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | template<bool buildAST> void Parser::ParseComputedName(ParseNodePtr* ppnodeName, LPCOLESTR* ppNameHint, LPCOLESTR* ppFullNameHint, uint32 *pNameLength, uint32 *pShortNameOffset)
{
m_pscan->Scan();
ParseNodePtr pnodeNameExpr = ParseExpr<buildAST>(koplCma, nullptr, TRUE, FALSE, *ppNameHint, pNameLength, pShortNam... | 106,011,970,089,235,870,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,490 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | void ParseNode::Dump()
{
switch(nop)
{
case knopFncDecl:
case knopProg:
LPCOLESTR name = Js::Constants::AnonymousFunction;
if(this->sxFnc.pnodeName)
{
name = this->sxFnc.pnodeName->sxVar.pid->Psz();
}
Output::Print(_u("%s (%d) [%d, %d]:\n"), name, thi... | 15,996,988,148,878,925,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
517,491 | ChakraCore | 402f3d967c0a905ec5b9ca9c240783d3f2c15724 | https://github.com/Microsoft/ChakraCore | https://github.com/Microsoft/ChakraCore/commit/402f3d967c0a905ec5b9ca9c240783d3f2c15724 | [CVE-2017-0028] Fix binding of 'async' identifier in the presence of async arrow function. | 0 | ParseNodePtr Parser::PnodeLabel(IdentPtr pid, ParseNodePtr pnodeLabels)
{
AssertMem(pid);
AssertNodeMemN(pnodeLabels);
StmtNest *pstmt;
ParseNodePtr pnodeT;
// Look in the statement stack.
for (pstmt = m_pstmtCur; nullptr != pstmt; pstmt = pstmt->pstmtOuter)
{
AssertNodeMem(pstmt->... | 216,900,101,953,350,200,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2017-0028 | A remote code execution vulnerability exists when Microsoft scripting engine improperly accesses objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain t... | https://nvd.nist.gov/vuln/detail/CVE-2017-0028 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.