prior_version
stringlengths
69
33.8k
after_version
stringlengths
27
34.8k
vuln_id
stringlengths
13
19
cwe_id
stringclasses
137 values
score
float64
0
10
chain
stringlengths
78
111
dataset
stringclasses
2 values
summary
stringlengths
44
6.88k
published_date
stringdate
2009-05-11 00:00:00
2022-08-11 00:00:00
chain_len
int64
1
1
project
stringlengths
26
59
commit_href
stringlengths
74
107
commit_sha
stringlengths
40
40
patch
stringclasses
1 value
chain_ord
stringlengths
44
44
before_first_fix_commit
stringlengths
44
88
last_fix_commit
stringlengths
40
40
chain_ord_pos
int64
1
1
commit_datetime
stringlengths
20
20
message
stringlengths
2
8.66k
author
stringlengths
2
44
comments
stringclasses
155 values
stats
stringclasses
474 values
files
listlengths
1
1
file_extension
stringclasses
14 values
cwe
stringclasses
25 values
file_paths
listlengths
1
1
file_paths_str
stringlengths
4
162
num_files
int64
1
1
static const ut8 *r_bin_dwarf_parse_comp_unit(Sdb *s, const ut8 *obuf, &cu->hdr, debug_str, debug_str_len); if (cu->dies[cu->length].attr_values[i].name == DW_AT_comp_dir) { const char *name = cu->dies[cu->length].attr_values[i].encoding.str_struct.string; sdb_set (s, "DW_AT_comp_dir", name, 0); } ...
static const ut8 *r_bin_dwarf_parse_comp_unit(Sdb *s, const ut8 *obuf, &cu->hdr, debug_str, debug_str_len); if (cu->dies[cu->length].attr_values[i].name == DW_AT_comp_dir) { const char *name = cu->dies[cu->length].attr_values[i].encoding.str_struct.string; if (name > 1024) { // solve some null derefs ...
CVE-2018-14015
{'CWE-119'}
2.9
{'https://github.com/radareorg/radare2/commit/d37d2b858ac47f2f108034be0bcecadaddfbc8b3'}
nvd
The sdb_set_internal function in sdb.c in radare2 2.7.0 allows remote attackers to cause a denial of service (invalid read and application crash) via a crafted ELF file because of missing input validation in r_bin_dwarf_parse_comp_unit in libr/bin/dwarf.c.
2018-07-12
1
https://github.com/radareorg/radare2
https://github.com/radareorg/radare2/commit/d37d2b858ac47f2f108034be0bcecadaddfbc8b3
d37d2b858ac47f2f108034be0bcecadaddfbc8b3
SINGLE
['d37d2b858ac47f2f108034be0bcecadaddfbc8b3']
{'e84cf425bca83b21e5aa5cdd4c22818fb7610e53'}
d37d2b858ac47f2f108034be0bcecadaddfbc8b3
1
06/24/2018, 22:07:45
Fix #10465 - Avoid string on low addresses (workaround) for corrupted dwarf (#10478)
radare
null
{'additions': 5, 'deletions': 1, 'total': 6}
[ { "additions": 5, "changes": 6, "deletions": 1, "patch": "@@ -1361,7 +1361,11 @@ static const ut8 *r_bin_dwarf_parse_comp_unit(Sdb *s, const ut8 *obuf,\n \t\t\t\t\t&cu->hdr, debug_str, debug_str_len);\n \t\t\tif (cu->dies[cu->length].attr_values[i].name == DW_AT_comp_dir) {\n \t\t\t\tconst char *nam...
c
CWE-119
[ "libr/bin/dwarf.c" ]
libr/bin/dwarf.c
1
static bool r_bin_mdmp_init_directory_entry(struct r_bin_mdmp_obj *obj, struct m /* We could confirm data sizes but a malcious MDMP will always get around ** this! But we can ensure that the data is not outside of the file */ if (entry->location.rva + entry->location.data_size > obj->b->length) { eprintf("[ERROR]...
static bool r_bin_mdmp_init_directory_entry(struct r_bin_mdmp_obj *obj, struct m /* We could confirm data sizes but a malcious MDMP will always get around ** this! But we can ensure that the data is not outside of the file */ if (entry->location.rva + entry->location.data_size > obj->b->length) { eprintf ("[ERROR...
CVE-2018-14016
{'CWE-125'}
2.9
{'https://github.com/radareorg/radare2/commit/eb7deb281df54771fb8ecf5890dc325a7d22d3e2'}
nvd
The r_bin_mdmp_init_directory_entry function in mdmp.c in radare2 2.7.0 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted Mini Crash Dump file.
2018-07-12
1
https://github.com/radareorg/radare2
https://github.com/radareorg/radare2/commit/eb7deb281df54771fb8ecf5890dc325a7d22d3e2
eb7deb281df54771fb8ecf5890dc325a7d22d3e2
SINGLE
['eb7deb281df54771fb8ecf5890dc325a7d22d3e2']
{'ad11c112324ca4add9aa25b9879885fa75ea17e4'}
eb7deb281df54771fb8ecf5890dc325a7d22d3e2
1
07/09/2018, 11:55:45
Fix #10464 - oobread crash in mdmp (#10683)
radare
null
{'additions': 8, 'deletions': 7, 'total': 15}
[ { "additions": 8, "changes": 15, "deletions": 7, "patch": "@@ -362,7 +362,7 @@ static bool r_bin_mdmp_init_directory_entry(struct r_bin_mdmp_obj *obj, struct m\n \t/* We could confirm data sizes but a malcious MDMP will always get around\n \t** this! But we can ensure that the data is not outside of...
c
CWE-125
[ "libr/bin/format/mdmp/mdmp.c" ]
libr/bin/format/mdmp/mdmp.c
1
R_API RBinJavaAttrInfo *r_bin_java_read_next_attr(RBinJavaObj *bin, const ut64 o R_API RBinJavaAttrInfo *r_bin_java_read_next_attr_from_buffer(ut8 *buffer, st64 sz, st64 buf_offset) { RBinJavaAttrInfo *attr = NULL; char *name = NULL; ut64 offset = 0; ut16 name_idx; st64 nsz; RBinJavaAttrMetas *type_info = NULL;...
R_API RBinJavaAttrInfo *r_bin_java_read_next_attr(RBinJavaObj *bin, const ut64 o R_API RBinJavaAttrInfo *r_bin_java_read_next_attr_from_buffer(ut8 *buffer, st64 sz, st64 buf_offset) { RBinJavaAttrInfo *attr = NULL; ut64 offset = 0; ut16 name_idx; st64 nsz; if (!buffer || ((int) sz) < 4 || buf_offset < 0) { ep...
CVE-2018-14017
{'CWE-125'}
2.9
{'https://github.com/radareorg/radare2/commit/e9ce0d64faf19fa4e9c260250fbdf25e3c11e152'}
nvd
The r_bin_java_annotation_new function in shlr/java/class.c in radare2 2.7.0 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted .class file because of missing input validation in r_bin_java_line_number_table_attr_new.
2018-07-12
1
https://github.com/radareorg/radare2
https://github.com/radareorg/radare2/commit/e9ce0d64faf19fa4e9c260250fbdf25e3c11e152
e9ce0d64faf19fa4e9c260250fbdf25e3c11e152
SINGLE
['e9ce0d64faf19fa4e9c260250fbdf25e3c11e152']
{'c6a3b6bc4902fdbadebfd9e41b9387e6594c1e93'}
e9ce0d64faf19fa4e9c260250fbdf25e3c11e152
1
06/27/2018, 11:56:59
Fix #10498 - Fix crash in fuzzed java files (#10511)
radare
null
{'additions': 12, 'deletions': 9, 'total': 21}
[ { "additions": 12, "changes": 21, "deletions": 9, "patch": "@@ -2070,11 +2070,9 @@ R_API RBinJavaAttrInfo *r_bin_java_read_next_attr(RBinJavaObj *bin, const ut64 o\n \n R_API RBinJavaAttrInfo *r_bin_java_read_next_attr_from_buffer(ut8 *buffer, st64 sz, st64 buf_offset) {\n \tRBinJavaAttrInfo *attr =...
c
CWE-125
[ "shlr/java/class.c" ]
shlr/java/class.c
1
CWebSock::EPageReqResult CWebSock::PrintTemplate(const CString& sPageName, } CString CWebSock::GetSkinPath(const CString& sSkinName) { CString sRet = CZNC::Get().GetZNCPath() + "/webskins/" + sSkinName; if (!CFile::IsDir(sRet)) { sRet = CZNC::Get().GetCurPath() + "/webskins/" + sSkinName; if...
CWebSock::EPageReqResult CWebSock::PrintTemplate(const CString& sPageName, } CString CWebSock::GetSkinPath(const CString& sSkinName) { const CString sSkin = sSkinName.Replace_n("/", "_").Replace_n(".", "_"); CString sRet = CZNC::Get().GetZNCPath() + "/webskins/" + sSkin; if (!CFile::IsDir(sRet)) { ...
CVE-2018-14056
{'CWE-22'}
2.9
{'https://github.com/znc/znc/commit/a4a5aeeb17d32937d8c7d743dae9a4cc755ce773'}
nvd
ZNC before 1.7.1-rc1 is prone to a path traversal flaw via ../ in a web skin name to access files outside of the intended skins directories.
2018-07-15
1
https://github.com/znc/znc
https://github.com/znc/znc/commit/a4a5aeeb17d32937d8c7d743dae9a4cc755ce773
a4a5aeeb17d32937d8c7d743dae9a4cc755ce773
SINGLE
['a4a5aeeb17d32937d8c7d743dae9a4cc755ce773']
{'d22fef8620cdd87490754f607e7153979731c69d'}
a4a5aeeb17d32937d8c7d743dae9a4cc755ce773
1
07/13/2018, 23:12:28
Don't let web skin name ../../../../ access files outside of usual skins directories. Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this.
Alexey Sokolov
null
{'additions': 5, 'deletions': 3, 'total': 8}
[ { "additions": 5, "changes": 8, "deletions": 3, "patch": "@@ -557,13 +557,15 @@ CWebSock::EPageReqResult CWebSock::PrintTemplate(const CString& sPageName,\n }\n \n CString CWebSock::GetSkinPath(const CString& sSkinName) {\n- CString sRet = CZNC::Get().GetZNCPath() + \"/webskins/\" + sSkinName;\n+...
cpp
CWE-22
[ "src/WebModules.cpp" ]
src/WebModules.cpp
1
static int cmd_handle_untagged(struct ImapData *idata) mutt_debug(2, "Handling untagged NO\n"); /* Display the warning message from the server */ mutt_error("%s", s + 3); } return 0;
static int cmd_handle_untagged(struct ImapData *idata) mutt_debug(2, "Handling untagged NO\n"); /* Display the warning message from the server */ mutt_error("%s", s + 2); } return 0;
CVE-2018-14349
{'CWE-20'}
6.4
{'https://github.com/neomutt/neomutt/commit/36a29280448097f34ce9c94606195f2ac643fed1'}
nvd
An issue was discovered in Mutt before 1.10.1 and NeoMutt before 2018-07-16. imap/command.c mishandles a NO response without a message.
2018-07-17
1
https://github.com/neomutt/neomutt
https://github.com/neomutt/neomutt/commit/36a29280448097f34ce9c94606195f2ac643fed1
36a29280448097f34ce9c94606195f2ac643fed1
SINGLE
['36a29280448097f34ce9c94606195f2ac643fed1']
{'1b0f0d0988e6df4e32e9f4bf8780846ea95d4485'}
36a29280448097f34ce9c94606195f2ac643fed1
1
07/07/2018, 19:15:56
Handle NO response without message properly
JerikoOne
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -892,7 +892,7 @@ static int cmd_handle_untagged(struct ImapData *idata)\n mutt_debug(2, \"Handling untagged NO\\n\");\n \n /* Display the warning message from the server */\n- mutt_error(\"%s\", s + 3);\n+ mutt_error(\"%s\", ...
c
CWE-20
[ "imap/command.c" ]
imap/command.c
1
static int msg_parse_fetch(struct ImapHeader *h, char *s) } s++; ptmp = tmp; while (*s && *s != '\"') *ptmp++ = *s++; if (*s != '\"') return -1; static int msg_parse_fetch(struct ImapHeader *h, char *s) s += 11; SKIPWS(s); ptmp = tmp; while (isdigit...
static int msg_parse_fetch(struct ImapHeader *h, char *s) } s++; ptmp = tmp; while (*s && (*s != '\"') && (ptmp != (tmp + sizeof(tmp) - 1))) *ptmp++ = *s++; if (*s != '\"') return -1; static int msg_parse_fetch(struct ImapHeader *h, char *s) s += 11; SKIPWS(s);...
CVE-2018-14350
{'CWE-787'}
6.4
{'https://github.com/neomutt/neomutt/commit/1b0f0d0988e6df4e32e9f4bf8780846ea95d4485'}
nvd
An issue was discovered in Mutt before 1.10.1 and NeoMutt before 2018-07-16. imap/message.c has a stack-based buffer overflow for a FETCH response with a long INTERNALDATE field.
2018-07-17
1
https://github.com/neomutt/neomutt
https://github.com/neomutt/neomutt/commit/1b0f0d0988e6df4e32e9f4bf8780846ea95d4485
1b0f0d0988e6df4e32e9f4bf8780846ea95d4485
SINGLE
['1b0f0d0988e6df4e32e9f4bf8780846ea95d4485']
{'57971dba06346b2d7179294f4528b8d4427a7c5d'}
1b0f0d0988e6df4e32e9f4bf8780846ea95d4485
1
07/07/2018, 19:03:46
Don't overflow stack buffer in msg_parse_fetch
JerikoOne
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -330,7 +330,7 @@ static int msg_parse_fetch(struct ImapHeader *h, char *s)\n }\n s++;\n ptmp = tmp;\n- while (*s && *s != '\\\"')\n+ while (*s && (*s != '\\\"') && (ptmp != (tmp + sizeof(tmp) - 1)))\n *p...
c
CWE-787
[ "imap/message.c" ]
imap/message.c
1
static void cmd_parse_status(struct ImapData *idata, char *s) idata->status = IMAP_FATAL; return; } mailbox = idata->buf; s = mailbox + litlen; *s = '\0';
static void cmd_parse_status(struct ImapData *idata, char *s) idata->status = IMAP_FATAL; return; } if (strlen(idata->buf) < litlen) { mutt_debug(1, "Error parsing STATUS mailbox\n"); return; } mailbox = idata->buf; s = mailbox + litlen; *s = '\0';
CVE-2018-14351
{'CWE-20'}
6.4
{'https://github.com/neomutt/neomutt/commit/3c49c44be9b459d9c616bcaef6eb5d51298c1741'}
nvd
An issue was discovered in Mutt before 1.10.1 and NeoMutt before 2018-07-16. imap/command.c mishandles a long IMAP status mailbox literal count size.
2018-07-17
1
https://github.com/neomutt/neomutt
https://github.com/neomutt/neomutt/commit/3c49c44be9b459d9c616bcaef6eb5d51298c1741
3c49c44be9b459d9c616bcaef6eb5d51298c1741
SINGLE
['3c49c44be9b459d9c616bcaef6eb5d51298c1741']
{'36a29280448097f34ce9c94606195f2ac643fed1'}
3c49c44be9b459d9c616bcaef6eb5d51298c1741
1
07/07/2018, 20:19:58
Ensure litlen isn't larger than our mailbox
JerikoOne
null
{'additions': 7, 'deletions': 0, 'total': 7}
[ { "additions": 7, "changes": 7, "deletions": 0, "patch": "@@ -635,6 +635,13 @@ static void cmd_parse_status(struct ImapData *idata, char *s)\n idata->status = IMAP_FATAL;\n return;\n }\n+\n+ if (strlen(idata->buf) < litlen)\n+ {\n+ mutt_debug(1, \"Error parsing STATUS mail...
c
CWE-20
[ "imap/command.c" ]
imap/command.c
1
void imap_quote_string(char *dest, size_t dlen, const char *src, bool quote_back const char *s = src; *pt++ = '"'; /* save room for trailing quote-char */ dlen -= 2; for (; *s && dlen; s++) {
void imap_quote_string(char *dest, size_t dlen, const char *src, bool quote_back const char *s = src; *pt++ = '"'; /* save room for quote-chars */ dlen -= 3; for (; *s && dlen; s++) {
CVE-2018-14352
{'CWE-787'}
6.4
{'https://github.com/neomutt/neomutt/commit/e27b65b3bf8defa34db58919496056caf3850cd4'}
nvd
An issue was discovered in Mutt before 1.10.1 and NeoMutt before 2018-07-16. imap_quote_string in imap/util.c does not leave room for quote characters, leading to a stack-based buffer overflow.
2018-07-17
1
https://github.com/neomutt/neomutt
https://github.com/neomutt/neomutt/commit/e27b65b3bf8defa34db58919496056caf3850cd4
e27b65b3bf8defa34db58919496056caf3850cd4
SINGLE
['e27b65b3bf8defa34db58919496056caf3850cd4']
{'65d64a5b60a4a3883f2cd799d92c6091d8854f23'}
e27b65b3bf8defa34db58919496056caf3850cd4
1
07/07/2018, 20:35:56
imap_quote_string make room for quotes
JerikoOne
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -814,8 +814,8 @@ void imap_quote_string(char *dest, size_t dlen, const char *src, bool quote_back\n const char *s = src;\n \n *pt++ = '\"';\n- /* save room for trailing quote-char */\n- dlen -= 2;\n+ /* save room for quote-chars */\...
c
CWE-787
[ "imap/util.c" ]
imap/util.c
1
int imap_subscribe(char *path, bool subscribe) char errstr[STRING]; struct Buffer err, token; struct ImapMbox mx; if (!mx_is_imap(path) || imap_parse_path(path, &mx) || !mx.mbox) { int imap_subscribe(char *path, bool subscribe) mutt_buffer_init(&err); err.data = errstr; err.dsize = sizeof(errstr...
int imap_subscribe(char *path, bool subscribe) char errstr[STRING]; struct Buffer err, token; struct ImapMbox mx; size_t len = 0; if (!mx_is_imap(path) || imap_parse_path(path, &mx) || !mx.mbox) { int imap_subscribe(char *path, bool subscribe) mutt_buffer_init(&err); err.data = errstr; err.dsi...
CVE-2018-14354
{'CWE-78'}
6.4
{'https://github.com/neomutt/neomutt/commit/95e80bf9ff10f68cb6443f760b85df4117cb15eb'}
nvd
An issue was discovered in Mutt before 1.10.1 and NeoMutt before 2018-07-16. They allow remote IMAP servers to execute arbitrary commands via backquote characters, related to the mailboxes command associated with a manual subscription or unsubscription.
2018-07-17
1
https://github.com/neomutt/neomutt
https://github.com/neomutt/neomutt/commit/95e80bf9ff10f68cb6443f760b85df4117cb15eb
95e80bf9ff10f68cb6443f760b85df4117cb15eb
SINGLE
['95e80bf9ff10f68cb6443f760b85df4117cb15eb']
{'51c4efb8ccae3dab550fe8909fc76fb2462f0a89'}
95e80bf9ff10f68cb6443f760b85df4117cb15eb
1
07/07/2018, 01:50:14
Quote path in imap_subscribe
JerikoOne
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -1709,6 +1709,7 @@ int imap_subscribe(char *path, bool subscribe)\n char errstr[STRING];\n struct Buffer err, token;\n struct ImapMbox mx;\n+ size_t len = 0;\n \n if (!mx_is_imap(path) || imap_parse_path(path, &mx) || !mx.mbox)\n ...
c
CWE-78
[ "imap/imap.c" ]
imap/imap.c
1
header_cache_t *imap_hcache_open(struct ImapData *idata, const char *path) FREE(&mx.mbox); } mutt_account_tourl(&idata->conn->account, &url); url.path = mbox; url_tostring(&url, cachepath, sizeof(cachepath), U_PATH);
header_cache_t *imap_hcache_open(struct ImapData *idata, const char *path) FREE(&mx.mbox); } if (strstr(mbox, "/../") || (strcmp(mbox, "..") == 0) || (strncmp(mbox, "../", 3) == 0)) return NULL; size_t len = strlen(mbox); if ((len > 3) && (strcmp(mbox + len - 3, "/..") == 0)) return NULL; mutt_...
CVE-2018-14355
{'CWE-22'}
2.9
{'https://github.com/neomutt/neomutt/commit/57971dba06346b2d7179294f4528b8d4427a7c5d'}
nvd
An issue was discovered in Mutt before 1.10.1 and NeoMutt before 2018-07-16. imap/util.c mishandles ".." directory traversal in a mailbox name.
2018-07-17
1
https://github.com/neomutt/neomutt
https://github.com/neomutt/neomutt/commit/57971dba06346b2d7179294f4528b8d4427a7c5d
57971dba06346b2d7179294f4528b8d4427a7c5d
SINGLE
['57971dba06346b2d7179294f4528b8d4427a7c5d']
{'2761cab29583bbb7188cd052db5b33e7e545ed71'}
57971dba06346b2d7179294f4528b8d4427a7c5d
1
07/09/2018, 14:26:26
Selectively cache headers Co-authored-by: JerikoOne <jeriko.one@gmx.us>
Richard Russon
null
{'additions': 6, 'deletions': 0, 'total': 6}
[ { "additions": 6, "changes": 6, "deletions": 0, "patch": "@@ -245,6 +245,12 @@ header_cache_t *imap_hcache_open(struct ImapData *idata, const char *path)\n FREE(&mx.mbox);\n }\n \n+ if (strstr(mbox, \"/../\") || (strcmp(mbox, \"..\") == 0) || (strncmp(mbox, \"../\", 3) == 0))\n+ return NUL...
c
CWE-22
[ "imap/util.c" ]
imap/util.c
1
int nntp_add_group(char *line, void *data) { struct NntpServer *nserv = data; struct NntpData *nntp_data = NULL; char group[LONG_STRING]; char desc[HUGE_STRING] = ""; char mod; anum_t first, last; if (!nserv || !line) return 0; if (sscanf(line, "%s " ANUM " " ANUM " %c %[^\n]", group, &last, &fir...
int nntp_add_group(char *line, void *data) { struct NntpServer *nserv = data; struct NntpData *nntp_data = NULL; char group[LONG_STRING] = ""; char desc[HUGE_STRING] = ""; char mod; anum_t first, last; if (!nserv || !line) return 0; /* These sscanf limits must match the sizes of the group and des...
CVE-2018-14360
{'CWE-787'}
6.4
{'https://github.com/neomutt/neomutt/commit/6296f7153f0c9d5e5cd3aaf08f9731e56621bdd3'}
nvd
An issue was discovered in NeoMutt before 2018-07-16. nntp_add_group in newsrc.c has a stack-based buffer overflow because of incorrect sscanf usage.
2018-07-17
1
https://github.com/neomutt/neomutt
https://github.com/neomutt/neomutt/commit/6296f7153f0c9d5e5cd3aaf08f9731e56621bdd3
6296f7153f0c9d5e5cd3aaf08f9731e56621bdd3
SINGLE
['6296f7153f0c9d5e5cd3aaf08f9731e56621bdd3']
{'737c17798bf8555807a883a4346efb8d56704a79'}
6296f7153f0c9d5e5cd3aaf08f9731e56621bdd3
1
07/03/2018, 22:08:41
Set length modifiers for group and desc nntp_add_group parses a line controlled by the connected nntp server. Restrict the maximum lengths read into the stack buffers group, and desc.
JerikoOne
null
{'additions': 6, 'deletions': 2, 'total': 8}
[ { "additions": 6, "changes": 8, "deletions": 2, "patch": "@@ -592,16 +592,20 @@ int nntp_add_group(char *line, void *data)\n {\n struct NntpServer *nserv = data;\n struct NntpData *nntp_data = NULL;\n- char group[LONG_STRING];\n+ char group[LONG_STRING] = \"\";\n char desc[HUGE_STRING] = \"\...
c
CWE-787
[ "newsrc.c" ]
newsrc.c
1
static int nntp_fetch_headers(struct Context *ctx, void *hc, anum_t first, fc.last = last; fc.restore = restore; fc.messages = mutt_mem_calloc(last - first + 1, sizeof(unsigned char)); #ifdef USE_HCACHE fc.hc = hc; #endif
static int nntp_fetch_headers(struct Context *ctx, void *hc, anum_t first, fc.last = last; fc.restore = restore; fc.messages = mutt_mem_calloc(last - first + 1, sizeof(unsigned char)); if (fc.messages == NULL) return -1; #ifdef USE_HCACHE fc.hc = hc; #endif
CVE-2018-14361
{'CWE-20'}
6.4
{'https://github.com/neomutt/neomutt/commit/9e927affe3a021175f354af5fa01d22657c20585'}
nvd
An issue was discovered in NeoMutt before 2018-07-16. nntp.c proceeds even if memory allocation fails for messages data.
2018-07-17
1
https://github.com/neomutt/neomutt
https://github.com/neomutt/neomutt/commit/9e927affe3a021175f354af5fa01d22657c20585
9e927affe3a021175f354af5fa01d22657c20585
SINGLE
['9e927affe3a021175f354af5fa01d22657c20585']
{'6296f7153f0c9d5e5cd3aaf08f9731e56621bdd3'}
9e927affe3a021175f354af5fa01d22657c20585
1
07/03/2018, 22:22:12
Add alloc fail check in nntp_fetch_headers
JerikoOne
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -1288,6 +1288,8 @@ static int nntp_fetch_headers(struct Context *ctx, void *hc, anum_t first,\n fc.last = last;\n fc.restore = restore;\n fc.messages = mutt_mem_calloc(last - first + 1, sizeof(unsigned char));\n+ if (fc.messages == ...
c
CWE-20
[ "nntp.c" ]
nntp.c
1
int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) else samples_in_chunk = 1; /* copy extradata if it exists */ if (trk->vos_len == 0 && par->extradata_size > 0 && !TAG_IS_AVCI(trk->tag) &&
int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) else samples_in_chunk = 1; if (samples_in_chunk < 1) { av_log(s, AV_LOG_ERROR, "fatal error, input packet contains no samples\n"); return AVERROR_PATCHWELCOME; } /* copy extradata if it exists */ if (trk->vos_len =...
CVE-2018-14394
{'CWE-369'}
2.9
{'https://github.com/FFmpeg/FFmpeg/commit/3a2d21bc5f97aa0161db3ae731fc2732be6108b8'}
nvd
libavformat/movenc.c in FFmpeg before 4.0.2 allows attackers to cause a denial of service (application crash caused by a divide-by-zero error) with a user crafted Waveform audio file.
2018-07-19
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/3a2d21bc5f97aa0161db3ae731fc2732be6108b8
3a2d21bc5f97aa0161db3ae731fc2732be6108b8
SINGLE
['3a2d21bc5f97aa0161db3ae731fc2732be6108b8']
{'ee1e3ca5eb1ec7d34e925d129c893e33847ee0b7'}
3a2d21bc5f97aa0161db3ae731fc2732be6108b8
1
07/06/2018, 20:23:25
avformat/movenc: Check input sample count Fixes: division by 0 Fixes: fpe_movenc.c_199_1.wav Fixes: fpe_movenc.c_199_2.wav Fixes: fpe_movenc.c_199_3.wav Fixes: fpe_movenc.c_199_4.wav Fixes: fpe_movenc.c_199_5.wav Fixes: fpe_movenc.c_199_6.wav Fixes: fpe_movenc.c_199_7.wav Found-by: #CHEN HONGXU# <HCHEN017@e.ntu.edu.s...
Michael Niedermayer
{'com_1': {'author': 'hongxuchen', 'datetime': '07/19/2018, 11:19:58', 'body': 'Assigned to [CVE-2018-14394](https://nvd.nist.gov/vuln/detail/CVE-2018-14394) .'}}
{'additions': 5, 'deletions': 0, 'total': 5}
[ { "additions": 5, "changes": 5, "deletions": 0, "patch": "@@ -5269,6 +5269,11 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)\n else\n samples_in_chunk = 1;\n \n+ if (samples_in_chunk < 1) {\n+ av_log(s, AV_LOG_ERROR, \"fatal error, input packet contains no sample...
c
CWE-369
[ "libavformat/movenc.c" ]
libavformat/movenc.c
1
<div class="form-inline"> <label> <?php echo lang_get( 'query_name' ) ?>&nbsp; <input type="text" size="25" name="filter_name" maxlength="64" value="<?php echo filter_get_field( $f_filter_id, 'name' ) ?>"> </label> </div> </div>
<div class="form-inline"> <label> <?php echo lang_get( 'query_name' ) ?>&nbsp; <input type="text" size="25" name="filter_name" maxlength="64" value="<?php echo string_display_line( filter_get_field( $f_filter_id, 'name' ) ) ?>"> </label> </div> </div>
CVE-2018-14504
{'CWE-79'}
2.9
{'http://github.com/mantisbt/mantisbt/commit/8b5fa243dbf04344a55fe880135ec149fc1f439f'}
nvd
An issue was discovered in manage_filter_edit_page.php in MantisBT 2.x through 2.15.0. A cross-site scripting (XSS) vulnerability in the Edit Filter page allows execution of arbitrary code (if CSP settings permit it) when displaying a filter with a crafted name (e.g., 'foobar" onclick="alert(1)').
2018-08-03
1
http://github.com/mantisbt/mantisbt
http://github.com/mantisbt/mantisbt/commit/8b5fa243dbf04344a55fe880135ec149fc1f439f
8b5fa243dbf04344a55fe880135ec149fc1f439f
SINGLE
['8b5fa243dbf04344a55fe880135ec149fc1f439f']
{'4efac90ed89a5c009108b641e2e95683791a165a'}
8b5fa243dbf04344a55fe880135ec149fc1f439f
1
07/13/2018, 13:18:46
Fix XSS on filter edit page (CVE-2018-14504) Teun Beijers reported a cross-site scripting (XSS) vulnerability in the Edit Filter page which allows execution of arbitrary code (if CSP settings permit it) when displaying a filter with a crafted name. Prevent the attack by sanitizing the filter name before display. Fix...
Roland Becker
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -124,7 +124,7 @@\n \t\t\t\t\t\t<div class=\"form-inline\">\n \t\t\t\t\t\t\t<label>\n \t\t\t\t\t\t\t\t<?php echo lang_get( 'query_name' ) ?>&nbsp;\n-\t\t\t\t\t\t\t\t<input type=\"text\" size=\"25\" name=\"filter_name\" maxlength=\"64\" valu...
php
CWE-79
[ "manage_filter_edit_page.php" ]
manage_filter_edit_page.php
1
static struct ucma_multicast* ucma_alloc_multicast(struct ucma_context *ctx) return NULL; mutex_lock(&mut); mc->id = idr_alloc(&multicast_idr, mc, 0, 0, GFP_KERNEL); mutex_unlock(&mut); if (mc->id < 0) goto error; static ssize_t ucma_process_join(struct ucma_file *file, goto err3; } mutex_unlock(&file->m...
static struct ucma_multicast* ucma_alloc_multicast(struct ucma_context *ctx) return NULL; mutex_lock(&mut); mc->id = idr_alloc(&multicast_idr, NULL, 0, 0, GFP_KERNEL); mutex_unlock(&mut); if (mc->id < 0) goto error; static ssize_t ucma_process_join(struct ucma_file *file, goto err3; } mutex_lock(&mut); ...
CVE-2018-14734
{'CWE-416'}
8.5
{'https://github.com/torvalds/linux/commit/cb2595c1393b4a5211534e6f0a0fbad369e21ad8'}
nvd
drivers/infiniband/core/ucma.c in the Linux kernel through 4.17.11 allows ucma_leave_multicast to access a certain data structure after a cleanup step in ucma_process_join, which allows attackers to cause a denial of service (use-after-free).
2018-07-29
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/cb2595c1393b4a5211534e6f0a0fbad369e21ad8
cb2595c1393b4a5211534e6f0a0fbad369e21ad8
SINGLE
['cb2595c1393b4a5211534e6f0a0fbad369e21ad8']
{'e4b1672ac0a54c7740cbc4ff39dfdc56182236cb'}
cb2595c1393b4a5211534e6f0a0fbad369e21ad8
1
06/01/2018, 18:31:44
infiniband: fix a possible use-after-free bug ucma_process_join() will free the new allocated "mc" struct, if there is any error after that, especially the copy_to_user(). But in parallel, ucma_leave_multicast() could find this "mc" through idr_find() before ucma_process_join() frees it, since it is already published...
Cong Wang
null
{'additions': 5, 'deletions': 1, 'total': 6}
[ { "additions": 5, "changes": 6, "deletions": 1, "patch": "@@ -235,7 +235,7 @@ static struct ucma_multicast* ucma_alloc_multicast(struct ucma_context *ctx)\n \t\treturn NULL;\n \n \tmutex_lock(&mut);\n-\tmc->id = idr_alloc(&multicast_idr, mc, 0, 0, GFP_KERNEL);\n+\tmc->id = idr_alloc(&multicast_idr, ...
c
CWE-416
[ "drivers/infiniband/core/ucma.c" ]
drivers/infiniband/core/ucma.c
1
static char * get_next_file(FILE *VFile, char *ptr) { char *ret; ret = fgets(ptr, PATH_MAX, VFile); if (!ret) return NULL; if (ptr[strlen(ptr) - 1] == '\n') ptr[strlen(ptr) - 1] = '\0'; return ret; }
static char * get_next_file(FILE *VFile, char *ptr) { char *ret; size_t len; ret = fgets(ptr, PATH_MAX, VFile); if (!ret) return NULL; len = strlen (ptr); if (len > 0 && ptr[len - 1] == '\n') ptr[len - 1] = '\0'; return ret; }
CVE-2018-14879
{'CWE-120'}
6.4
{'https://github.com/the-tcpdump-group/tcpdump/commit/9ba91381954ad325ea4fd26b9c65a8bd9a2a85b6'}
nvd
The command-line argument parser in tcpdump before 4.9.3 has a buffer overflow in tcpdump.c:get_next_file().
2019-10-03
1
https://github.com/the-tcpdump-group/tcpdump
https://github.com/the-tcpdump-group/tcpdump/commit/9ba91381954ad325ea4fd26b9c65a8bd9a2a85b6
9ba91381954ad325ea4fd26b9c65a8bd9a2a85b6
SINGLE
['9ba91381954ad325ea4fd26b9c65a8bd9a2a85b6']
{'d7505276842e85bfd067fa21cdb32b8a2dc3c5e4'}
9ba91381954ad325ea4fd26b9c65a8bd9a2a85b6
1
06/17/2018, 21:15:19
(for 4.9.3) CVE-2018-14879/fix -V to fail invalid input safely get_next_file() did not check the return value of strlen() and underflowed an array index if the line read by fgets() from the file started with \0. This caused an out-of-bounds read and could cause a write. Add the missing check. This vulnerability was d...
Denis Ovsienko
null
{'additions': 4, 'deletions': 2, 'total': 6}
[ { "additions": 4, "changes": 6, "deletions": 2, "patch": "@@ -699,13 +699,15 @@ static char *\n get_next_file(FILE *VFile, char *ptr)\n {\n \tchar *ret;\n+\tsize_t len;\n \n \tret = fgets(ptr, PATH_MAX, VFile);\n \tif (!ret)\n \t\treturn NULL;\n \n-\tif (ptr[strlen(ptr) - 1] == '\\n')\n-\t\tptr[strl...
c
CWE-120
[ "tcpdump.c" ]
tcpdump.c
1
void WifiPacket::handle_prism(const u_char *pc, size_t len) prism2_pkthdr hdr; /* get the fields */ hdr.host_time = EXTRACT_LE_32BITS(pc+32); hdr.mac_time = EXTRACT_LE_32BITS(pc+44); hdr.channel = EXTRACT_LE_32BITS(pc+56); hdr.rssi = EXTRACT_LE_32BITS(pc+68); hdr.sq = EXTRACT_LE_32B...
void WifiPacket::handle_prism(const u_char *pc, size_t len) prism2_pkthdr hdr; /* get the fields */ if (len>=144){ hdr.host_time = EXTRACT_LE_32BITS(pc+32); hdr.mac_time = EXTRACT_LE_32BITS(pc+44); hdr.channel = EXTRACT_LE_32BITS(pc+56); hdr.rssi = EXTRACT_LE_32BITS(pc...
CVE-2018-14938
{'CWE-190', 'CWE-125'}
4.9
{'https://github.com/simsong/tcpflow/commit/a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb'}
nvd
An issue was discovered in wifipcap/wifipcap.cpp in TCPFLOW through 1.5.0-alpha. There is an integer overflow in the function handle_prism during caplen processing. If the caplen is less than 144, one can cause an integer overflow in the function handle_80211, which will result in an out-of-bounds read and may allow ac...
2018-08-05
1
https://github.com/simsong/tcpflow
https://github.com/simsong/tcpflow/commit/a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb
a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb
SINGLE
['a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb']
{'aad5f4ddc1b06512efb14ae1aa638d7409e2471b'}
a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb
1
08/03/2018, 01:33:09
fixed buffer overflow
Simson L. Garfinkel
null
{'additions': 15, 'deletions': 11, 'total': 26}
[ { "additions": 15, "changes": 26, "deletions": 11, "patch": "@@ -1492,17 +1492,19 @@ void WifiPacket::handle_prism(const u_char *pc, size_t len)\n prism2_pkthdr hdr;\n \n /* get the fields */\n- hdr.host_time \t= EXTRACT_LE_32BITS(pc+32);\n- hdr.mac_time \t= EXTRACT_LE_32BITS(pc+44);\n...
cpp
CWE-125
[ "src/wifipcap/wifipcap.cpp" ]
src/wifipcap/wifipcap.cpp
1
void WifiPacket::handle_prism(const u_char *pc, size_t len) prism2_pkthdr hdr; /* get the fields */ hdr.host_time = EXTRACT_LE_32BITS(pc+32); hdr.mac_time = EXTRACT_LE_32BITS(pc+44); hdr.channel = EXTRACT_LE_32BITS(pc+56); hdr.rssi = EXTRACT_LE_32BITS(pc+68); hdr.sq = EXTRACT_LE_32B...
void WifiPacket::handle_prism(const u_char *pc, size_t len) prism2_pkthdr hdr; /* get the fields */ if (len>=144){ hdr.host_time = EXTRACT_LE_32BITS(pc+32); hdr.mac_time = EXTRACT_LE_32BITS(pc+44); hdr.channel = EXTRACT_LE_32BITS(pc+56); hdr.rssi = EXTRACT_LE_32BITS(pc...
CVE-2018-14938
{'CWE-190', 'CWE-125'}
4.9
{'https://github.com/simsong/tcpflow/commit/a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb'}
nvd
An issue was discovered in wifipcap/wifipcap.cpp in TCPFLOW through 1.5.0-alpha. There is an integer overflow in the function handle_prism during caplen processing. If the caplen is less than 144, one can cause an integer overflow in the function handle_80211, which will result in an out-of-bounds read and may allow ac...
2018-08-05
1
https://github.com/simsong/tcpflow
https://github.com/simsong/tcpflow/commit/a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb
a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb
SINGLE
['a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb']
{'aad5f4ddc1b06512efb14ae1aa638d7409e2471b'}
a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb
1
08/03/2018, 01:33:09
fixed buffer overflow
Simson L. Garfinkel
null
{'additions': 15, 'deletions': 11, 'total': 26}
[ { "additions": 15, "changes": 26, "deletions": 11, "patch": "@@ -1492,17 +1492,19 @@ void WifiPacket::handle_prism(const u_char *pc, size_t len)\n prism2_pkthdr hdr;\n \n /* get the fields */\n- hdr.host_time \t= EXTRACT_LE_32BITS(pc+32);\n- hdr.mac_time \t= EXTRACT_LE_32BITS(pc+44);\n...
cpp
CWE-190
[ "src/wifipcap/wifipcap.cpp" ]
src/wifipcap/wifipcap.cpp
1
_pango_emoji_iter_next (PangoEmojiIter *iter) if (iter->is_emoji == PANGO_EMOJI_TYPE_IS_EMOJI (current_emoji_type)) { iter->is_emoji = !PANGO_EMOJI_TYPE_IS_EMOJI (current_emoji_type); return TRUE; } }
_pango_emoji_iter_next (PangoEmojiIter *iter) if (iter->is_emoji == PANGO_EMOJI_TYPE_IS_EMOJI (current_emoji_type)) { iter->is_emoji = !PANGO_EMOJI_TYPE_IS_EMOJI (current_emoji_type); /* Make sure we make progress. Weird sequences, like a VC15 followed * by VC16, can trick us into stalling...
CVE-2018-15120
{'CWE-119'}
2.9
{'https://github.com/GNOME/pango/commit/71aaeaf020340412b8d012fe23a556c0420eda5f'}
nvd
libpango in Pango 1.40.8 through 1.42.3, as used in hexchat and other products, allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via crafted text with invalid Unicode sequences.
2018-08-24
1
https://github.com/GNOME/pango
https://github.com/GNOME/pango/commit/71aaeaf020340412b8d012fe23a556c0420eda5f
71aaeaf020340412b8d012fe23a556c0420eda5f
SINGLE
['71aaeaf020340412b8d012fe23a556c0420eda5f']
{'ccfd3b466ca43b202681ce951600aac8f97d8dc4'}
71aaeaf020340412b8d012fe23a556c0420eda5f
1
08/18/2018, 02:29:36
Prevent an assertion with invalid Unicode sequences Invalid Unicode sequences, such as 0x2665 0xfe0e 0xfe0f, can trick the Emoji iter code into returning an empty segment, which then triggers an assertion in the itemizer. Prevent this by ensuring that we make progress. This issue was reported by Jeffrey M.
Matthias Clasen
null
{'additions': 6, 'deletions': 0, 'total': 6}
[ { "additions": 6, "changes": 6, "deletions": 0, "patch": "@@ -253,6 +253,12 @@ _pango_emoji_iter_next (PangoEmojiIter *iter)\n if (iter->is_emoji == PANGO_EMOJI_TYPE_IS_EMOJI (current_emoji_type))\n {\n iter->is_emoji = !PANGO_EMOJI_TYPE_IS_EMOJI (current_emoji_type);\n+\n+ /* Mak...
c
CWE-119
[ "pango/pango-emoji.c" ]
pango/pango-emoji.c
1
PHP_FUNCTION(readlink) PHP_FUNCTION(linkinfo) { char *link; size_t link_len; zend_stat_t sb; int ret; PHP_FUNCTION(linkinfo) return; } ret = VCWD_STAT(link, &sb); if (ret == -1) { php_error_docref(NULL, E_WARNING, "%s", strerror(errno)); RETURN_LONG(Z_L(-1)); } RETURN_LONG((zend_long) sb.st_dev); } /*...
PHP_FUNCTION(readlink) PHP_FUNCTION(linkinfo) { char *link; char *dirname; size_t link_len; zend_stat_t sb; int ret; PHP_FUNCTION(linkinfo) return; } dirname = estrndup(link, link_len); php_dirname(dirname, link_len); if (php_check_open_basedir(dirname)) { efree(dirname); RETURN_FALSE; } ret = VCWD...
CVE-2018-15132
{'CWE-200'}
2.9
{'https://github.com/php/php-src/commit/f151e048ed27f6f4eef729f3310d053ab5da71d4'}
nvd
An issue was discovered in ext/standard/link_win32.c in PHP before 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8. The linkinfo function on Windows doesn't implement the open_basedir check. This could be abused to find files on paths outside of the allowed directories.
2018-08-07
1
https://github.com/php/php-src
https://github.com/php/php-src/commit/f151e048ed27f6f4eef729f3310d053ab5da71d4
f151e048ed27f6f4eef729f3310d053ab5da71d4
SINGLE
['f151e048ed27f6f4eef729f3310d053ab5da71d4']
{'5ac5f313bd129007c59ac842985bfdb35258f37d'}
f151e048ed27f6f4eef729f3310d053ab5da71d4
1
07/03/2018, 12:04:22
Fixed bug #76459 windows linkinfo lacks openbasedir check
Anatol Belski
null
{'additions': 11, 'deletions': 0, 'total': 11}
[ { "additions": 11, "changes": 11, "deletions": 0, "patch": "@@ -87,6 +87,7 @@ PHP_FUNCTION(readlink)\n PHP_FUNCTION(linkinfo)\n {\n \tchar *link;\n+\tchar *dirname;\n \tsize_t link_len;\n \tzend_stat_t sb;\n \tint ret;\n@@ -95,12 +96,22 @@ PHP_FUNCTION(linkinfo)\n \t\treturn;\n \t}\n \n+\tdirname = ...
c
CWE-200
[ "ext/standard/link_win32.c" ]
ext/standard/link_win32.c
1
static int ng_pkt(git_pkt **out, const char *line, size_t len) pkt->ref = NULL; pkt->type = GIT_PKT_NG; line += 3; /* skip "ng " */ if (!(ptr = strchr(line, ' '))) goto out_err; len = ptr - line; static int ng_pkt(git_pkt **out, const char *line, size_t len) memcpy(pkt->ref, line, len); pkt->ref[len] = '\0'...
static int ng_pkt(git_pkt **out, const char *line, size_t len) pkt->ref = NULL; pkt->type = GIT_PKT_NG; if (len < 3) goto out_err; line += 3; /* skip "ng " */ len -= 3; if (!(ptr = memchr(line, ' ', len))) goto out_err; len = ptr - line; static int ng_pkt(git_pkt **out, const char *line, size_t len) memc...
CVE-2018-15501
{'CWE-125'}
2.9
{'https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649'}
nvd
In ng_pkt in transports/smart_pkt.c in libgit2 before 0.26.6 and 0.27.x before 0.27.4, a remote attacker can send a crafted smart-protocol "ng" packet that lacks a '\0' byte to trigger an out-of-bounds read that leads to DoS.
2018-08-18
1
https://github.com/libgit2/libgit2
https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649
1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649
SINGLE
['1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649']
{'faa7650b8d1ab7cb0709492bcc7c68464a944201'}
1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649
1
07/19/2018, 11:00:42
smart_pkt: fix potential OOB-read when processing ng packet OSS-fuzz has reported a potential out-of-bounds read when processing a "ng" smart packet: ==1==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6310000249c0 at pc 0x000000493a92 bp 0x7ffddc882cd0 sp 0x7ffddc882480 READ of size 65529 at 0x631000024...
Patrick Steinhardt
null
{'additions': 8, 'deletions': 2, 'total': 10}
[ { "additions": 8, "changes": 10, "deletions": 2, "patch": "@@ -299,8 +299,11 @@ static int ng_pkt(git_pkt **out, const char *line, size_t len)\n \tpkt->ref = NULL;\n \tpkt->type = GIT_PKT_NG;\n \n+\tif (len < 3)\n+\t\tgoto out_err;\n \tline += 3; /* skip \"ng \" */\n-\tif (!(ptr = strchr(line, ' '))...
c
CWE-125
[ "src/transports/smart_pkt.c" ]
src/transports/smart_pkt.c
1
unsigned paravirt_patch_call(void *insnbuf, struct branch *b = insnbuf; unsigned long delta = (unsigned long)target - (addr+5); if (tgt_clobbers & ~site_clobbers) return len; /* target would clobber too much for this site */ if (len < 5) return len; /* call too long for patch site */ b->opcode = 0xe8; /* ca...
unsigned paravirt_patch_call(void *insnbuf, struct branch *b = insnbuf; unsigned long delta = (unsigned long)target - (addr+5); if (len < 5) { #ifdef CONFIG_RETPOLINE WARN_ONCE("Failing to patch indirect CALL in %ps\n", (void *)addr); #endif return len; /* call too long for patch site */ } b->opcode = 0xe8;...
CVE-2018-15594
{'CWE-200'}
2.9
{'https://github.com/torvalds/linux/commit/5800dc5c19f34e6e03b5adab1282535cb102fafd'}
nvd
arch/x86/kernel/paravirt.c in the Linux kernel before 4.18.1 mishandles certain indirect calls, which makes it easier for attackers to conduct Spectre-v2 attacks against paravirtual guests.
2018-08-20
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/5800dc5c19f34e6e03b5adab1282535cb102fafd
5800dc5c19f34e6e03b5adab1282535cb102fafd
SINGLE
['5800dc5c19f34e6e03b5adab1282535cb102fafd']
{'208cbb32558907f68b3b2a081ca2337ac3744794'}
5800dc5c19f34e6e03b5adab1282535cb102fafd
1
08/03/2018, 14:41:39
x86/paravirt: Fix spectre-v2 mitigations for paravirt guests Nadav reported that on guests we're failing to rewrite the indirect calls to CALLEE_SAVE paravirt functions. In particular the pv_queued_spin_unlock() call is left unpatched and that is all over the place. This obviously wrecks Spectre-v2 mitigation (for par...
Peter Zijlstra
null
{'additions': 10, 'deletions': 4, 'total': 14}
[ { "additions": 10, "changes": 14, "deletions": 4, "patch": "@@ -88,10 +88,12 @@ unsigned paravirt_patch_call(void *insnbuf,\n \tstruct branch *b = insnbuf;\n \tunsigned long delta = (unsigned long)target - (addr+5);\n \n-\tif (tgt_clobbers & ~site_clobbers)\n-\t\treturn len;\t/* target would clobber...
c
CWE-200
[ "arch/x86/kernel/paravirt.c" ]
arch/x86/kernel/paravirt.c
1
return; } if (preg_match ('/\.(php5?|phtml|js|rb|py|pl|sh|bash|exe)$/i', $_FILES['file']['name'])) { echo json_encode (array ('success' => false, 'error' => __ ('Cannot upload executable files due to security.'))); return; } // some browsers may urlencode the file name $_FILES['file']['name'] = urldecode ($_FILES...
return; } // some browsers may urlencode the file name $_FILES['file']['name'] = urldecode ($_FILES['file']['name']); if (preg_match ('/\.(php5?|phtml|js|rb|py|pl|sh|bash|exe)$/i', $_FILES['file']['name'])) { echo json_encode (array ('success' => false, 'error' => __ ('Cannot upload executable files due to securit...
CVE-2018-15601
{'CWE-20'}
6.4
{'https://github.com/jbroadway/elefant/commit/afb3346e50b992bcba143660ca2149e563430e05'}
nvd
apps/filemanager/handlers/upload/drop.php in Elefant CMS 2.0.3 performs a urldecode step too late in the "Cannot upload executable files" protection mechanism.
2018-08-21
1
https://github.com/jbroadway/elefant
https://github.com/jbroadway/elefant/commit/afb3346e50b992bcba143660ca2149e563430e05
afb3346e50b992bcba143660ca2149e563430e05
SINGLE
['afb3346e50b992bcba143660ca2149e563430e05']
{'d4cfbab9b9fda695c14933ad636f00d2e821dc58'}
afb3346e50b992bcba143660ca2149e563430e05
1
08/20/2018, 20:27:52
Decode file names before restricting extensions
lux
{'com_1': {'author': 'fgeek', 'datetime': '09/09/2018, 18:47:32', 'body': 'CVE-2018-15601 has been assigned for this issue.'}}
{'additions': 3, 'deletions': 3, 'total': 6}
[ { "additions": 3, "changes": 6, "deletions": 3, "patch": "@@ -37,14 +37,14 @@\n \treturn;\n }\n \n+// some browsers may urlencode the file name\n+$_FILES['file']['name'] = urldecode ($_FILES['file']['name']);\n+\n if (preg_match ('/\\.(php5?|phtml|js|rb|py|pl|sh|bash|exe)$/i', $_FILES['file']['name'...
php
CWE-20
[ "apps/filemanager/handlers/upload/drop.php" ]
apps/filemanager/handlers/upload/drop.php
1
ExprResolveBoolean(struct xkb_context *ctx, const ExprDef *expr, case EXPR_INVERT: case EXPR_NOT: ok = ExprResolveBoolean(ctx, expr, set_rtrn); if (ok) *set_rtrn = !*set_rtrn; return ok;
ExprResolveBoolean(struct xkb_context *ctx, const ExprDef *expr, case EXPR_INVERT: case EXPR_NOT: ok = ExprResolveBoolean(ctx, expr->unary.child, set_rtrn); if (ok) *set_rtrn = !*set_rtrn; return ok;
CVE-2018-15853
{'CWE-400'}
2.9
{'https://github.com/xkbcommon/libxkbcommon/commit/1f9d1248c07cda8aaff762429c0dce146de8632a'}
nvd
Endless recursion exists in xkbcomp/expr.c in xkbcommon and libxkbcommon before 0.8.1, which could be used by local attackers to crash xkbcommon users by supplying a crafted keymap file that triggers boolean negation.
2018-08-25
1
https://github.com/xkbcommon/libxkbcommon
https://github.com/xkbcommon/libxkbcommon/commit/1f9d1248c07cda8aaff762429c0dce146de8632a
1f9d1248c07cda8aaff762429c0dce146de8632a
SINGLE
['1f9d1248c07cda8aaff762429c0dce146de8632a']
{'2cb5c2a3f3a74fb7478648a7811ca2b6e6272311'}
1f9d1248c07cda8aaff762429c0dce146de8632a
1
03/10/2018, 21:10:47
xkbcomp: fix stack overflow when evaluating boolean negation The expression evaluator would go into an infinite recursion when evaluating something like this as a boolean: `!True`. Instead of recursing to just `True` and negating, it recursed to `!True` itself again. Bug inherited from xkbcomp. Caught with the afl f...
Ran Benita
{'com_1': {'author': 'msmeissn', 'datetime': '08/24/2018, 09:25:09', 'body': 'CVE-2018-15853'}}
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -165,7 +165,7 @@ ExprResolveBoolean(struct xkb_context *ctx, const ExprDef *expr,\n \n case EXPR_INVERT:\n case EXPR_NOT:\n- ok = ExprResolveBoolean(ctx, expr, set_rtrn);\n+ ok = ExprResolveBoolean(ctx, expr->unary.ch...
c
CWE-400
[ "src/xkbcomp/expr.c" ]
src/xkbcomp/expr.c
1
ExprAppendMultiKeysymList(ExprDef *expr, ExprDef *append) darray_append(expr->keysym_list.symsNumEntries, numEntries); darray_concat(expr->keysym_list.syms, append->keysym_list.syms); FreeStmt((ParseCommon *) &append); return expr; }
ExprAppendMultiKeysymList(ExprDef *expr, ExprDef *append) darray_append(expr->keysym_list.symsNumEntries, numEntries); darray_concat(expr->keysym_list.syms, append->keysym_list.syms); FreeStmt((ParseCommon *) append); return expr; }
CVE-2018-15857
{'CWE-416'}
6.4
{'https://github.com/xkbcommon/libxkbcommon/commit/c1e5ac16e77a21f87bdf3bc4dea61b037a17dddb'}
nvd
An invalid free in ExprAppendMultiKeysymList in xkbcomp/ast-build.c in xkbcommon before 0.8.1 could be used by local attackers to crash xkbcommon keymap parsers or possibly have unspecified other impact by supplying a crafted keymap file.
2018-08-25
1
https://github.com/xkbcommon/libxkbcommon
https://github.com/xkbcommon/libxkbcommon/commit/c1e5ac16e77a21f87bdf3bc4dea61b037a17dddb
c1e5ac16e77a21f87bdf3bc4dea61b037a17dddb
SINGLE
['c1e5ac16e77a21f87bdf3bc4dea61b037a17dddb']
{'badb428e63387140720f22486b3acbd3d738859f'}
c1e5ac16e77a21f87bdf3bc4dea61b037a17dddb
1
07/30/2018, 04:11:46
xkbcomp: fix pointer value for FreeStmt Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer
{'com_1': {'author': 'msmeissn', 'datetime': '08/24/2018, 09:25:59', 'body': 'CVE-2018-15857.'}}
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -240,7 +240,7 @@ ExprAppendMultiKeysymList(ExprDef *expr, ExprDef *append)\n darray_append(expr->keysym_list.symsNumEntries, numEntries);\n darray_concat(expr->keysym_list.syms, append->keysym_list.syms);\n \n- FreeStmt((ParseCo...
c
CWE-416
[ "src/xkbcomp/ast-build.c" ]
src/xkbcomp/ast-build.c
1
CopyKeyAliasesToKeymap(struct xkb_keymap *keymap, KeyNamesInfo *info) key_aliases = calloc(num_key_aliases, sizeof(*key_aliases)); if (!key_aliases) return false; } i = 0; darray_foreach(alias, info->aliases) { if (alias->real != XKB_ATOM_NONE) { key_aliases...
CopyKeyAliasesToKeymap(struct xkb_keymap *keymap, KeyNamesInfo *info) key_aliases = calloc(num_key_aliases, sizeof(*key_aliases)); if (!key_aliases) return false; i = 0; darray_foreach(alias, info->aliases) { if (alias->real != XKB_ATOM_NONE) { k...
CVE-2018-15858
{'CWE-476'}
2.9
{'https://github.com/xkbcommon/libxkbcommon/commit/badb428e63387140720f22486b3acbd3d738859f'}
nvd
Unchecked NULL pointer usage when handling invalid aliases in CopyKeyAliasesToKeymap in xkbcomp/keycodes.c in xkbcommon before 0.8.1 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file.
2018-08-25
1
https://github.com/xkbcommon/libxkbcommon
https://github.com/xkbcommon/libxkbcommon/commit/badb428e63387140720f22486b3acbd3d738859f
badb428e63387140720f22486b3acbd3d738859f
SINGLE
['badb428e63387140720f22486b3acbd3d738859f']
{'9045b035981e4273ddbb64bfb31577bbf92d8597'}
badb428e63387140720f22486b3acbd3d738859f
1
07/23/2018, 01:48:35
keycodes: don't try to copy zero key aliases Move the aliases copy to within the (num_key_aliases > 0) block. Passing info->aliases into this fuction with invalid aliases will cause log messages but num_key_aliases stays on 0. The key_aliases array is never allocated and remains NULL. We then loop through the aliases...
Peter Hutterer
{'com_1': {'author': 'msmeissn', 'datetime': '08/24/2018, 09:26:53', 'body': 'CVE-2018-15858.'}}
{'additions': 7, 'deletions': 7, 'total': 14}
[ { "additions": 7, "changes": 14, "deletions": 7, "patch": "@@ -596,14 +596,14 @@ CopyKeyAliasesToKeymap(struct xkb_keymap *keymap, KeyNamesInfo *info)\n key_aliases = calloc(num_key_aliases, sizeof(*key_aliases));\n if (!key_aliases)\n return false;\n- }\n \n- i = 0...
c
CWE-476
[ "src/xkbcomp/keycodes.c" ]
src/xkbcomp/keycodes.c
1
ExprResolveLhs(struct xkb_context *ctx, const ExprDef *expr, *elem_rtrn = xkb_atom_text(ctx, expr->field_ref.element); *field_rtrn = xkb_atom_text(ctx, expr->field_ref.field); *index_rtrn = NULL; return true; case EXPR_ARRAY_REF: *elem_rtrn = xkb_atom_text(ctx, expr->array_r...
ExprResolveLhs(struct xkb_context *ctx, const ExprDef *expr, *elem_rtrn = xkb_atom_text(ctx, expr->field_ref.element); *field_rtrn = xkb_atom_text(ctx, expr->field_ref.field); *index_rtrn = NULL; return (*elem_rtrn != NULL && *field_rtrn != NULL); case EXPR_ARRAY_REF: *elem_...
CVE-2018-15859
{'CWE-476'}
2.9
{'https://github.com/xkbcommon/libxkbcommon/commit/bb4909d2d8fa6b08155e449986a478101e2b2634'}
nvd
Unchecked NULL pointer usage when parsing invalid atoms in ExprResolveLhs in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file, because lookup failures are mishandled.
2018-08-25
1
https://github.com/xkbcommon/libxkbcommon
https://github.com/xkbcommon/libxkbcommon/commit/bb4909d2d8fa6b08155e449986a478101e2b2634
bb4909d2d8fa6b08155e449986a478101e2b2634
SINGLE
['bb4909d2d8fa6b08155e449986a478101e2b2634']
{'5440aaa5222b02275b4fd982f5326c92c072982b'}
bb4909d2d8fa6b08155e449986a478101e2b2634
1
10/30/2017, 11:21:55
Fail expression lookup on invalid atoms If we fail atom lookup, then we should not claim that we successfully looked up the expression. Signed-off-by: Daniel Stone <daniels@collabora.com>
Daniel Stone
{'com_1': {'author': 'msmeissn', 'datetime': '08/24/2018, 09:27:01', 'body': 'CVE-2018-15859.'}}
{'additions': 5, 'deletions': 1, 'total': 6}
[ { "additions": 5, "changes": 6, "deletions": 1, "patch": "@@ -47,11 +47,15 @@ ExprResolveLhs(struct xkb_context *ctx, const ExprDef *expr,\n *elem_rtrn = xkb_atom_text(ctx, expr->field_ref.element);\n *field_rtrn = xkb_atom_text(ctx, expr->field_ref.field);\n *index_rtrn = NU...
c
CWE-476
[ "src/xkbcomp/expr.c" ]
src/xkbcomp/expr.c
1
ExprResolveLhs(struct xkb_context *ctx, const ExprDef *expr, *elem_rtrn = NULL; *field_rtrn = xkb_atom_text(ctx, expr->ident.ident); *index_rtrn = NULL; return true; case EXPR_FIELD_REF: *elem_rtrn = xkb_atom_text(ctx, expr->field_ref.element); *field_rtrn = xkb_atom...
ExprResolveLhs(struct xkb_context *ctx, const ExprDef *expr, *elem_rtrn = NULL; *field_rtrn = xkb_atom_text(ctx, expr->ident.ident); *index_rtrn = NULL; return (*field_rtrn != NULL); case EXPR_FIELD_REF: *elem_rtrn = xkb_atom_text(ctx, expr->field_ref.element); *fiel...
CVE-2018-15861
{'CWE-476'}
2.9
{'https://github.com/xkbcommon/libxkbcommon/commit/38e1766bc6e20108948aec8a0b222a4bad0254e9'}
nvd
Unchecked NULL pointer usage in ExprResolveLhs in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file that triggers an xkb_intern_atom failure.
2018-08-25
1
https://github.com/xkbcommon/libxkbcommon
https://github.com/xkbcommon/libxkbcommon/commit/38e1766bc6e20108948aec8a0b222a4bad0254e9
38e1766bc6e20108948aec8a0b222a4bad0254e9
SINGLE
['38e1766bc6e20108948aec8a0b222a4bad0254e9']
{'4e2ee9c3f6050d773f8bbe05bc0edb17f1ff8371'}
38e1766bc6e20108948aec8a0b222a4bad0254e9
1
06/26/2017, 16:21:45
xkbcomp: Don't falsely promise from ExprResolveLhs Every user of ExprReturnLhs goes on to unconditionally dereference the field return, which can be NULL if xkb_intern_atom fails. Return false if this is the case, so we fail safely. testcase: splice geometry data into interp Signed-off-by: Daniel Stone <daniels@coll...
Daniel Stone
{'com_1': {'author': 'msmeissn', 'datetime': '08/24/2018, 09:27:11', 'body': 'CVE-2018-15861.'}}
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -42,7 +42,7 @@ ExprResolveLhs(struct xkb_context *ctx, const ExprDef *expr,\n *elem_rtrn = NULL;\n *field_rtrn = xkb_atom_text(ctx, expr->ident.ident);\n *index_rtrn = NULL;\n- return true;\n+ return (...
c
CWE-476
[ "src/xkbcomp/expr.c" ]
src/xkbcomp/expr.c
1
LookupModMask(struct xkb_context *ctx, const void *priv, xkb_atom_t field, return false; str = xkb_atom_text(ctx, field); if (istreq(str, "all")) { *val_rtrn = MOD_REAL_MASK_ALL;
LookupModMask(struct xkb_context *ctx, const void *priv, xkb_atom_t field, return false; str = xkb_atom_text(ctx, field); if (!str) return false; if (istreq(str, "all")) { *val_rtrn = MOD_REAL_MASK_ALL;
CVE-2018-15862
{'CWE-476'}
2.9
{'https://github.com/xkbcommon/libxkbcommon/commit/4e2ee9c3f6050d773f8bbe05bc0edb17f1ff8371'}
nvd
Unchecked NULL pointer usage in LookupModMask in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file with invalid virtual modifiers.
2018-08-25
1
https://github.com/xkbcommon/libxkbcommon
https://github.com/xkbcommon/libxkbcommon/commit/4e2ee9c3f6050d773f8bbe05bc0edb17f1ff8371
4e2ee9c3f6050d773f8bbe05bc0edb17f1ff8371
SINGLE
['4e2ee9c3f6050d773f8bbe05bc0edb17f1ff8371']
{'96df3106d49438e442510c59acad306e94f3db4d'}
4e2ee9c3f6050d773f8bbe05bc0edb17f1ff8371
1
06/26/2017, 16:18:16
xkbcomp: Don't explode on invalid virtual modifiers testcase: 'virtualModifiers=LevelThreC' Signed-off-by: Daniel Stone <daniels@collabora.com>
Daniel Stone
{'com_1': {'author': 'msmeissn', 'datetime': '08/24/2018, 09:27:20', 'body': 'CVE-2018-15862.'}}
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -101,6 +101,8 @@ LookupModMask(struct xkb_context *ctx, const void *priv, xkb_atom_t field,\n return false;\n \n str = xkb_atom_text(ctx, field);\n+ if (!str)\n+ return false;\n \n if (istreq(str, \"all\")) {\n ...
c
CWE-476
[ "src/xkbcomp/expr.c" ]
src/xkbcomp/expr.c
1
ResolveStateAndPredicate(ExprDef *expr, enum xkb_match_operation *pred_rtrn, *pred_rtrn = MATCH_EXACTLY; if (expr->expr.op == EXPR_ACTION_DECL) { const char *pred_txt = xkb_atom_text(info->ctx, expr->action.name); if (!LookupString(symInterpretMatchMaskNames, pred_txt, pred_rtrn)) { ...
ResolveStateAndPredicate(ExprDef *expr, enum xkb_match_operation *pred_rtrn, *pred_rtrn = MATCH_EXACTLY; if (expr->expr.op == EXPR_ACTION_DECL) { const char *pred_txt = xkb_atom_text(info->ctx, expr->action.name); if (!LookupString(symInterpretMatchMaskNames, pred_txt, pred_rtrn) || ...
CVE-2018-15863
{'CWE-476'}
2.9
{'https://github.com/xkbcommon/libxkbcommon/commit/96df3106d49438e442510c59acad306e94f3db4d'}
nvd
Unchecked NULL pointer usage in ResolveStateAndPredicate in xkbcomp/compat.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file with a no-op modmask expression.
2018-08-25
1
https://github.com/xkbcommon/libxkbcommon
https://github.com/xkbcommon/libxkbcommon/commit/96df3106d49438e442510c59acad306e94f3db4d
96df3106d49438e442510c59acad306e94f3db4d
SINGLE
['96df3106d49438e442510c59acad306e94f3db4d']
{'a8ea7a1d3daa7bdcb877615ae0a252c189153bd2'}
96df3106d49438e442510c59acad306e94f3db4d
1
06/26/2017, 16:12:29
xkbcomp: Don't crash on no-op modmask expressions If we have an expression of the form 'l1' in an interp section, we unconditionally try to dereference its args, even if it has none. Signed-off-by: Daniel Stone <daniels@collabora.com>
Daniel Stone
{'com_1': {'author': 'msmeissn', 'datetime': '08/24/2018, 09:27:28', 'body': 'CVE-2018-15863.'}}
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -264,7 +264,8 @@ ResolveStateAndPredicate(ExprDef *expr, enum xkb_match_operation *pred_rtrn,\n *pred_rtrn = MATCH_EXACTLY;\n if (expr->expr.op == EXPR_ACTION_DECL) {\n const char *pred_txt = xkb_atom_text(info->ctx, expr->...
c
CWE-476
[ "src/xkbcomp/compat.c" ]
src/xkbcomp/compat.c
1
static ssize_t yurex_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) { struct usb_yurex *dev; int retval = 0; int bytes_read = 0; char in_buffer[20]; unsigned long flags; dev = file->private_data; mutex_lock(&dev->io_mutex); if (!dev->interface) { /* already disconnected */ r...
static ssize_t yurex_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) { struct usb_yurex *dev; int len = 0; char in_buffer[20]; unsigned long flags; dev = file->private_data; mutex_lock(&dev->io_mutex); if (!dev->interface) { /* already disconnected */ mutex_unlock(&dev->io_mut...
CVE-2018-16276
{'CWE-20'}
10
{'https://github.com/torvalds/linux/commit/f1e255d60ae66a9f672ff9a207ee6cd8e33d2679'}
nvd
An issue was discovered in yurex_read in drivers/usb/misc/yurex.c in the Linux kernel before 4.17.7. Local attackers could use user access read/writes with incorrect bounds checking in the yurex USB driver to crash the kernel or potentially escalate privileges.
2018-08-31
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/f1e255d60ae66a9f672ff9a207ee6cd8e33d2679
f1e255d60ae66a9f672ff9a207ee6cd8e33d2679
SINGLE
['f1e255d60ae66a9f672ff9a207ee6cd8e33d2679']
{'bba57eddadda936c94b5dccf73787cb9e159d0a5'}
f1e255d60ae66a9f672ff9a207ee6cd8e33d2679
1
07/06/2018, 15:12:56
USB: yurex: fix out-of-bounds uaccess in read handler In general, accessing userspace memory beyond the length of the supplied buffer in VFS read/write handlers can lead to both kernel memory corruption (via kernel_read()/kernel_write(), which can e.g. be triggered via sys_splice()) and privilege escalation inside use...
Jann Horn
null
{'additions': 6, 'deletions': 17, 'total': 23}
[ { "additions": 6, "changes": 23, "deletions": 17, "patch": "@@ -396,35 +396,24 @@ static ssize_t yurex_read(struct file *file, char __user *buffer, size_t count,\n \t\t\t loff_t *ppos)\n {\n \tstruct usb_yurex *dev;\n-\tint retval = 0;\n-\tint bytes_read = 0;\n+\tint len = 0;\n \tchar in_buffer[20]...
c
CWE-20
[ "drivers/usb/misc/yurex.c" ]
drivers/usb/misc/yurex.c
1
static Image *ReadXBMImage(const ImageInfo *image_info,ExceptionInfo *exception) { c=XBMInteger(image,hex_digits); if (c < 0) break; *p++=(unsigned char) c; if ((padding == 0) || (((i+2) % bytes_per_line) != 0)) *p++=(unsigned char) (c >> 8); static Image *ReadXBMImage(const...
static Image *ReadXBMImage(const ImageInfo *image_info,ExceptionInfo *exception) { c=XBMInteger(image,hex_digits); if (c < 0) { data=(unsigned char *) RelinquishMagickMemory(data); ThrowReaderException(CorruptImageError,"ImproperImageHeader"); } *p++=(unsigned ...
CVE-2018-16323
{'CWE-200'}
2.9
{'https://github.com/ImageMagick/ImageMagick/commit/216d117f05bff87b9dc4db55a1b1fadb38bcb786'}
nvd
ReadXBMImage in coders/xbm.c in ImageMagick before 7.0.8-9 leaves data uninitialized when processing an XBM file that has a negative pixel value. If the affected code is used as a library loaded into a process that includes sensitive information, that information sometimes can be leaked via the image data.
2018-09-01
1
https://github.com/ImageMagick/ImageMagick
https://github.com/ImageMagick/ImageMagick/commit/216d117f05bff87b9dc4db55a1b1fadb38bcb786
216d117f05bff87b9dc4db55a1b1fadb38bcb786
SINGLE
['216d117f05bff87b9dc4db55a1b1fadb38bcb786']
{'31dd8a92255400b040e8c629682699fe042a0c70'}
216d117f05bff87b9dc4db55a1b1fadb38bcb786
1
07/24/2018, 21:31:33
XBM coder leaves the hex image data uninitialized if hex value of the pixel is negative
Cristy
{'com_1': {'author': 'bastien-roucaries', 'datetime': '10/29/2018, 12:05:25', 'body': 'Can we have the im6 commit ?'}, 'com_2': {'author': 'dlemstra', 'datetime': '10/29/2018, 12:51:07', 'body': 'https://github.com/ImageMagick/ImageMagick6/commit/57565dace66d550042522e203f522da711d551a6'}}
{'additions': 8, 'deletions': 2, 'total': 10}
[ { "additions": 8, "changes": 10, "deletions": 2, "patch": "@@ -351,7 +351,10 @@ static Image *ReadXBMImage(const ImageInfo *image_info,ExceptionInfo *exception)\n {\n c=XBMInteger(image,hex_digits);\n if (c < 0)\n- break;\n+ {\n+ data=(unsigned char *) Relinqui...
c
CWE-200
[ "coders/xbm.c" ]
coders/xbm.c
1
$chunks = isset($_REQUEST["chunks"]) ? intval($_REQUEST["chunks"]) : 0; $fileName = isset($_REQUEST["name"]) ? $_REQUEST["name"] : ''; // Clean the fileName for security reasons $fileName = preg_replace('/[^\w\._]+/', '_', $fileName); $fileName= 'hello.jpg'; if(!empty($_FILES['file']['name'])) // dropzone su...
$chunks = isset($_REQUEST["chunks"]) ? intval($_REQUEST["chunks"]) : 0; $fileName = isset($_REQUEST["name"]) ? $_REQUEST["name"] : ''; // Clean the fileName for security reasons $fileName = preg_replace('/[^\w\._]+/', '_', $fileName); if(!empty($_FILES['file']['name'])) // dropzone support v2.1.9 { $fileName ...
CVE-2018-16388
{'CWE-434'}
6.4
{'https://github.com/e107inc/e107/commit/e5bb5297f68e56537c004cdbb48a30892e9f6f4c'}
nvd
e107_web/js/plupload/upload.php in e107 2.1.8 allows remote attackers to execute arbitrary PHP code by uploading a .php filename with the image/jpeg content type.
2018-09-12
1
https://github.com/e107inc/e107
https://github.com/e107inc/e107/commit/e5bb5297f68e56537c004cdbb48a30892e9f6f4c
e5bb5297f68e56537c004cdbb48a30892e9f6f4c
SINGLE
['e5bb5297f68e56537c004cdbb48a30892e9f6f4c']
{'cc6155a226e5fdffcf47bd029ceb7b8332c1cc84'}
e5bb5297f68e56537c004cdbb48a30892e9f6f4c
1
08/10/2018, 21:11:28
plupload fix.
Cameron
null
{'additions': 11, 'deletions': 4, 'total': 15}
[ { "additions": 11, "changes": 15, "deletions": 4, "patch": "@@ -46,13 +46,9 @@\n \t$chunks = isset($_REQUEST[\"chunks\"]) ? intval($_REQUEST[\"chunks\"]) : 0;\r\n \t$fileName = isset($_REQUEST[\"name\"]) ? $_REQUEST[\"name\"] : '';\r\n \r\n-\r\n-\r\n // Clean the fileName for security reasons\r\n \t...
php
CWE-434
[ "e107_web/js/plupload/upload.php" ]
e107_web/js/plupload/upload.php
1
class banlist_admin extends e_admin_dispatcher 'main/transfer' => array('caption'=> BANLAN_35, 'perm' => '4'), 'main/times' => array('caption'=> BANLAN_15, 'perm' => '0'), 'main/options' => array('caption'=> LAN_OPTIONS, 'perm' => '0'), // 'main/banlog' => array('caption'=> BANLAN_81, 'perm' => '0'), ); ...
class banlist_admin extends e_admin_dispatcher 'main/transfer' => array('caption'=> BANLAN_35, 'perm' => '4'), 'main/times' => array('caption'=> BANLAN_15, 'perm' => '0'), 'main/options' => array('caption'=> LAN_OPTIONS, 'perm' => '0'), // 'main/banlog' => array('caption'=> BANLAN_81, 'perm' => '0'), ); ...
CVE-2018-16389
{'CWE-89'}
4.9
{'https://github.com/e107inc/e107/commit/ec483e9379aa622bfcc1b853b189c74288771f27'}
nvd
e107_admin/banlist.php in e107 2.1.8 allows SQL injection via the old_ip parameter.
2018-09-12
1
https://github.com/e107inc/e107
https://github.com/e107inc/e107/commit/ec483e9379aa622bfcc1b853b189c74288771f27
ec483e9379aa622bfcc1b853b189c74288771f27
SINGLE
['ec483e9379aa622bfcc1b853b189c74288771f27']
{'92e381f794fbd875a333134523d36ce176a5ba45'}
ec483e9379aa622bfcc1b853b189c74288771f27
1
08/07/2018, 18:12:29
Code cleanup
Cameron
null
{'additions': 267, 'deletions': 11, 'total': 278}
[ { "additions": 267, "changes": 278, "deletions": 11, "patch": "@@ -79,7 +79,7 @@ class banlist_admin extends e_admin_dispatcher\n \t\t'main/transfer'\t\t=> array('caption'=> BANLAN_35, 'perm' => '4'),\n \t\t'main/times'\t\t=> array('caption'=> BANLAN_15, 'perm' => '0'),\n \t\t'main/options'\t\t=> ar...
php
CWE-89
[ "e107_admin/banlist.php" ]
e107_admin/banlist.php
1
print_trans(netdissect_options *ndo, ND_PRINT((ndo, "smb_bcc=%u\n", bcc)); if (bcc > 0) { smb_fdata(ndo, data1 + 2, f2, maxbuf - (paramlen + datalen), unicodestr); if (strcmp((const char *)(data1 + 2), "\\MAILSLOT\\BROWSE") == 0) { print_browse(ndo, param, paramlen, data, datalen); return; } if...
print_trans(netdissect_options *ndo, ND_PRINT((ndo, "smb_bcc=%u\n", bcc)); if (bcc > 0) { smb_fdata(ndo, data1 + 2, f2, maxbuf - (paramlen + datalen), unicodestr); #define MAILSLOT_BROWSE_STR "\\MAILSLOT\\BROWSE" ND_TCHECK2(*(data1 + 2), strlen(MAILSLOT_BROWSE_STR) + 1); if (strcmp((const char *)(data1 + 2)...
CVE-2018-16451
{'CWE-125'}
2.9
{'https://github.com/the-tcpdump-group/tcpdump/commit/96480ab95308cd9234b4f09b175ebf60e17792c6'}
nvd
The SMB parser in tcpdump before 4.9.3 has buffer over-reads in print-smb.c:print_trans() for \MAILSLOT\BROWSE and \PIPE\LANMAN.
2019-10-03
1
https://github.com/the-tcpdump-group/tcpdump
https://github.com/the-tcpdump-group/tcpdump/commit/96480ab95308cd9234b4f09b175ebf60e17792c6
96480ab95308cd9234b4f09b175ebf60e17792c6
SINGLE
['96480ab95308cd9234b4f09b175ebf60e17792c6']
{'689c6e6d09125d5c2b91bbc4c3fd958bcb03875b'}
96480ab95308cd9234b4f09b175ebf60e17792c6
1
11/03/2017, 17:21:27
(for 4.9.3) SMB: Add two missing bounds checks
Francois-Xavier Le Bail
null
{'additions': 8, 'deletions': 3, 'total': 11}
[ { "additions": 8, "changes": 11, "deletions": 3, "patch": "@@ -371,16 +371,21 @@ print_trans(netdissect_options *ndo,\n ND_PRINT((ndo, \"smb_bcc=%u\\n\", bcc));\n if (bcc > 0) {\n \tsmb_fdata(ndo, data1 + 2, f2, maxbuf - (paramlen + datalen), unicodestr);\n-\n-\tif (strcmp((const char *)(dat...
c
CWE-125
[ "print-smb.c" ]
print-smb.c
1
typedef struct } CUTPalHeader; static void InsertRow(Image *image,ssize_t depth,unsigned char *p,ssize_t y, ExceptionInfo *exception) { size_t bit; ssize_t x; register Quantum *q; Quantum index; index=0; switch (depth) { case 1: /* Convert bitmap scanline. */ { q=QueueAuthenticPixel...
typedef struct } CUTPalHeader; static MagickBooleanType InsertRow(Image *image,ssize_t bpp,unsigned char *p, ssize_t y,ExceptionInfo *exception) { int bit; Quantum index; register Quantum *q; ssize_t x; q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); if (q == (Quantum ...
CVE-2018-16642
{'CWE-787'}
2.9
{'https://github.com/ImageMagick/ImageMagick/commit/cc4ac341f29fa368da6ef01c207deaf8c61f6a2e'}
nvd
The function InsertRow in coders/cut.c in ImageMagick 7.0.7-37 allows remote attackers to cause a denial of service via a crafted image file due to an out-of-bounds write.
2018-09-06
1
https://github.com/ImageMagick/ImageMagick
https://github.com/ImageMagick/ImageMagick/commit/cc4ac341f29fa368da6ef01c207deaf8c61f6a2e
cc4ac341f29fa368da6ef01c207deaf8c61f6a2e
SINGLE
['cc4ac341f29fa368da6ef01c207deaf8c61f6a2e']
{'c45dd7ac94939b0fd3e243900becfa07f995a5ea'}
cc4ac341f29fa368da6ef01c207deaf8c61f6a2e
1
06/02/2018, 23:10:39
https://github.com/ImageMagick/ImageMagick/issues/1162
Cristy
null
{'additions': 94, 'deletions': 61, 'total': 155}
[ { "additions": 94, "changes": 155, "deletions": 61, "patch": "@@ -95,132 +95,165 @@ typedef struct\n } CUTPalHeader;\n \n \f\n-static void InsertRow(Image *image,ssize_t depth,unsigned char *p,ssize_t y,\n- ExceptionInfo *exception)\n+static MagickBooleanType InsertRow(Image *image,ssize_t bpp,unsi...
c
CWE-787
[ "coders/cut.c" ]
coders/cut.c
1
static int cdrom_ioctl_drive_status(struct cdrom_device_info *cdi, if (!CDROM_CAN(CDC_SELECT_DISC) || (arg == CDSL_CURRENT || arg == CDSL_NONE)) return cdi->ops->drive_status(cdi, CDSL_CURRENT); if (((int)arg >= cdi->capacity)) return -EINVAL; return cdrom_slot_status(cdi, arg); }
static int cdrom_ioctl_drive_status(struct cdrom_device_info *cdi, if (!CDROM_CAN(CDC_SELECT_DISC) || (arg == CDSL_CURRENT || arg == CDSL_NONE)) return cdi->ops->drive_status(cdi, CDSL_CURRENT); if (arg >= cdi->capacity) return -EINVAL; return cdrom_slot_status(cdi, arg); }
CVE-2018-16658
{'CWE-200'}
4.9
{'https://github.com/torvalds/linux/commit/8f3fafc9c2f0ece10832c25f7ffcb07c97a32ad4'}
nvd
An issue was discovered in the Linux kernel before 4.18.6. An information leak in cdrom_ioctl_drive_status in drivers/cdrom/cdrom.c could be used by local attackers to read kernel memory because a cast from unsigned long to int interferes with bounds checking. This is similar to CVE-2018-10940.
2018-09-07
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/8f3fafc9c2f0ece10832c25f7ffcb07c97a32ad4
8f3fafc9c2f0ece10832c25f7ffcb07c97a32ad4
SINGLE
['8f3fafc9c2f0ece10832c25f7ffcb07c97a32ad4']
{'db193954ed9e35701b6e489fa4cc97b08589341b'}
8f3fafc9c2f0ece10832c25f7ffcb07c97a32ad4
1
04/26/2018, 17:51:08
cdrom: Fix info leak/OOB read in cdrom_ioctl_drive_status Like d88b6d04: "cdrom: information leak in cdrom_ioctl_media_changed()" There is another cast from unsigned long to int which causes a bounds check to fail with specially crafted input. The value is then used as an index in the slot array in cdrom_slot_status(...
Scott Bauer
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -2546,7 +2546,7 @@ static int cdrom_ioctl_drive_status(struct cdrom_device_info *cdi,\n \tif (!CDROM_CAN(CDC_SELECT_DISC) ||\n \t (arg == CDSL_CURRENT || arg == CDSL_NONE))\n \t\treturn cdi->ops->drive_status(cdi, CDSL_CURRENT);\n-\tif ...
c
CWE-200
[ "drivers/cdrom/cdrom.c" ]
drivers/cdrom/cdrom.c
1
static Image *ReadOneJNGImage(MngInfo *mng_info, (void) LogMagickEvent(CoderEvent,GetMagickModule(), " Copying JDAT chunk data to color_blob."); if (length != 0) { (void) WriteBlob(color_image,length,chunk); chunk=(unsigned char *) RelinquishMagickMem...
static Image *ReadOneJNGImage(MngInfo *mng_info, (void) LogMagickEvent(CoderEvent,GetMagickModule(), " Copying JDAT chunk data to color_blob."); if ((length != 0) && (color_image != (Image *) NULL)) { (void) WriteBlob(color_image,length,chunk); chunk=...
CVE-2018-16749
{'CWE-476'}
2.9
{'https://github.com/ImageMagick/ImageMagick6/commit/1007b98f8795ad4bea6bc5f68a32d83e982fdae4'}
nvd
In ImageMagick 7.0.7-29 and earlier, a missing NULL check in ReadOneJNGImage in coders/png.c allows an attacker to cause a denial of service (WriteBlob assertion failure and application exit) via a crafted file.
2018-09-09
1
https://github.com/ImageMagick/ImageMagick6
https://github.com/ImageMagick/ImageMagick6/commit/1007b98f8795ad4bea6bc5f68a32d83e982fdae4
1007b98f8795ad4bea6bc5f68a32d83e982fdae4
SINGLE
['1007b98f8795ad4bea6bc5f68a32d83e982fdae4']
{'811929f9af843e72cb6d99ed3e25c488e9fad5e8'}
1007b98f8795ad4bea6bc5f68a32d83e982fdae4
1
05/01/2018, 23:13:48
https://github.com/ImageMagick/ImageMagick/issues/1119
Cristy
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -4584,7 +4584,7 @@ static Image *ReadOneJNGImage(MngInfo *mng_info,\n (void) LogMagickEvent(CoderEvent,GetMagickModule(),\n \" Copying JDAT chunk data to color_blob.\");\n \n- if (length != 0)\n+ if (...
c
CWE-476
[ "coders/png.c" ]
coders/png.c
1
CURLcode Curl_auth_create_plain_message(struct Curl_easy *data, plen = strlen(passwdp); /* Compute binary message length. Check for overflows. */ if((ulen > SIZE_T_MAX/2) || (plen > (SIZE_T_MAX/2 - 2))) return CURLE_OUT_OF_MEMORY; plainlen = 2 * ulen + plen + 2;
CURLcode Curl_auth_create_plain_message(struct Curl_easy *data, plen = strlen(passwdp); /* Compute binary message length. Check for overflows. */ if((ulen > SIZE_T_MAX/4) || (plen > (SIZE_T_MAX/2 - 2))) return CURLE_OUT_OF_MEMORY; plainlen = 2 * ulen + plen + 2;
CVE-2018-16839
{'CWE-119'}
6.4
{'https://github.com/curl/curl/commit/f3a24d7916b9173c69a3e0ee790102993833d6c5'}
nvd
Curl versions 7.33.0 through 7.61.1 are vulnerable to a buffer overrun in the SASL authentication code that may lead to denial of service.
2018-10-31
1
https://github.com/curl/curl
https://github.com/curl/curl/commit/f3a24d7916b9173c69a3e0ee790102993833d6c5
f3a24d7916b9173c69a3e0ee790102993833d6c5
SINGLE
['f3a24d7916b9173c69a3e0ee790102993833d6c5']
{'81d135d67155c5295b1033679c606165d4e28f3f'}
f3a24d7916b9173c69a3e0ee790102993833d6c5
1
09/28/2018, 14:08:16
Curl_auth_create_plain_message: fix too-large-input-check CVE-2018-16839 Reported-by: Harry Sintonen Bug: https://curl.haxx.se/docs/CVE-2018-16839.html
Daniel Stenberg
{'com_1': {'author': 'thoger', 'datetime': '11/14/2018, 22:18:10', 'body': "Is there a reason why this integer overflow check is written the way it is? It defines limits that are lower than what they really need to be. For example, if you have 10 character user name, you can still have 3GB password without triggering...
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -74,7 +74,7 @@ CURLcode Curl_auth_create_plain_message(struct Curl_easy *data,\n plen = strlen(passwdp);\n \n /* Compute binary message length. Check for overflows. */\n- if((ulen > SIZE_T_MAX/2) || (plen > (SIZE_T_MAX/2 - 2)))\n+ if...
c
CWE-119
[ "lib/vauth/cleartext.c" ]
lib/vauth/cleartext.c
1
CURLcode Curl_close(struct Curl_easy *data) and detach this handle from there. */ curl_multi_remove_handle(data->multi, data); if(data->multi_easy) /* when curl_easy_perform() is used, it creates its own multi handle to use and this is the one */ curl_multi_cleanup(data->multi_easy); /*...
CURLcode Curl_close(struct Curl_easy *data) and detach this handle from there. */ curl_multi_remove_handle(data->multi, data); if(data->multi_easy) { /* when curl_easy_perform() is used, it creates its own multi handle to use and this is the one */ curl_multi_cleanup(data->multi_easy); ...
CVE-2018-16840
{'CWE-416'}
6.4
{'https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f'}
nvd
A heap use-after-free flaw was found in curl versions from 7.59.0 through 7.61.1 in the code related to closing an easy handle. When closing and cleaning up an 'easy' handle in the `Curl_close()` function, the library code first frees a struct (without nulling the pointer) and might then subsequently erroneously write ...
2018-10-31
1
https://github.com/curl/curl
https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f
81d135d67155c5295b1033679c606165d4e28f3f
SINGLE
['81d135d67155c5295b1033679c606165d4e28f3f']
{'9d8dad1a9d79d60e021f0c4e0f66bf5d51fb3c4e'}
81d135d67155c5295b1033679c606165d4e28f3f
1
10/18/2018, 13:07:15
Curl_close: clear data->multi_easy on free to avoid use-after-free Regression from b46cfbc068 (7.59.0) CVE-2018-16840 Reported-by: Brian Carpenter (Geeknik Labs) Bug: https://curl.haxx.se/docs/CVE-2018-16840.html
Daniel Stenberg
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -331,10 +331,12 @@ CURLcode Curl_close(struct Curl_easy *data)\n and detach this handle from there. */\n curl_multi_remove_handle(data->multi, data);\n \n- if(data->multi_easy)\n+ if(data->multi_easy) {\n /* when curl_easy...
c
CWE-416
[ "lib/url.c" ]
lib/url.c
1
static void voutf(struct GlobalConfig *config, (void)fwrite(ptr, cut + 1, 1, config->errors); fputs("\n", config->errors); ptr += cut + 1; /* skip the space too */ len -= cut; } else { fputs(ptr, config->errors);
static void voutf(struct GlobalConfig *config, (void)fwrite(ptr, cut + 1, 1, config->errors); fputs("\n", config->errors); ptr += cut + 1; /* skip the space too */ len -= cut + 1; } else { fputs(ptr, config->errors);
CVE-2018-16842
{'CWE-125'}
4.9
{'https://github.com/curl/curl/commit/d530e92f59ae9bb2d47066c3c460b25d2ffeb211'}
nvd
Curl versions 7.14.1 through 7.61.1 are vulnerable to a heap-based buffer over-read in the tool_msgs.c:voutf() function that may result in information exposure and denial of service.
2018-10-31
1
https://github.com/curl/curl
https://github.com/curl/curl/commit/d530e92f59ae9bb2d47066c3c460b25d2ffeb211
d530e92f59ae9bb2d47066c3c460b25d2ffeb211
SINGLE
['d530e92f59ae9bb2d47066c3c460b25d2ffeb211']
{'e97679a360dda4ea6188b09a145f73a2a84acedd'}
d530e92f59ae9bb2d47066c3c460b25d2ffeb211
1
10/27/2018, 23:33:23
voutf: fix bad arethmetic when outputting warnings to stderr CVE-2018-16842 Reported-by: Brian Carpenter Bug: https://curl.haxx.se/docs/CVE-2018-16842.html
Daniel Stenberg
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -67,7 +67,7 @@ static void voutf(struct GlobalConfig *config,\n (void)fwrite(ptr, cut + 1, 1, config->errors);\n fputs(\"\\n\", config->errors);\n ptr += cut + 1; /* skip the space too */\n- len -= cut;\n+ ...
c
CWE-125
[ "src/tool_msgs.c" ]
src/tool_msgs.c
1
} } if ($_GET['css'] && preg_match ('/^(layouts|css)\/[a-z0-9\/ _-]+\.css$/i', $_GET['css'])) { $page->layout = str_replace ('</head>', '<style>' . file_get_contents ($_GET['css']) . '</style></head>', $page->layout); } } else { if (! empty ($_POST['layout'])) { } } if ($_POST['css']) { $page->layout = s...
} } if ($_GET['css'] && preg_match ('/^(layouts|css)\/[a-z0-9\/ _-]+\.css$/i', $_GET['css'])) { $page->layout = str_replace ('</head>', '<style>' . strip_tags (file_get_contents ($_GET['css'])) . '</style></head>', $page->layout); } } else { if (! empty ($_POST['layout'])) { } } if ($_POST['css']) { $pag...
CVE-2018-16975
{'CWE-94'}
6.4
{'https://github.com/jbroadway/elefant/commit/0795ab57c7ffa53ff4af57e229f6d9680fa54a21'}
nvd
An issue was discovered in Elefant CMS before 2.0.7. There is a PHP Code Execution Vulnerability in /designer/add/stylesheet.php by using a .php extension in the New Stylesheet Name field in conjunction with <?php content, because of insufficient input validation in apps/designer/handlers/csspreview.php.
2018-09-12
1
https://github.com/jbroadway/elefant
https://github.com/jbroadway/elefant/commit/0795ab57c7ffa53ff4af57e229f6d9680fa54a21
0795ab57c7ffa53ff4af57e229f6d9680fa54a21
SINGLE
['0795ab57c7ffa53ff4af57e229f6d9680fa54a21']
{'49ba8cc24e9f009ce30d2c2eb9eefeb9be4ce1d0'}
0795ab57c7ffa53ff4af57e229f6d9680fa54a21
1
09/11/2018, 07:14:22
Fixed CSS preview including PHP tags, re: #286
lux
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -23,7 +23,7 @@\n \t\t}\n \t}\n \tif ($_GET['css'] && preg_match ('/^(layouts|css)\\/[a-z0-9\\/ _-]+\\.css$/i', $_GET['css'])) {\n-\t\t$page->layout = str_replace ('</head>', '<style>' . file_get_contents ($_GET['css']) . '</style></head>',...
php
CWE-94
[ "apps/designer/handlers/csspreview.php" ]
apps/designer/handlers/csspreview.php
1
zend_first_try { if (!parent_req) { php_apache_request_dtor(r TSRMLS_CC); ctx->request_processed = 1; bucket = apr_bucket_eos_create(r->connection->bucket_alloc); APR_BRIGADE_INSERT_TAIL(brigade, bucket);
zend_first_try { if (!parent_req) { php_apache_request_dtor(r TSRMLS_CC); ctx->request_processed = 1; apr_brigade_cleanup(brigade); bucket = apr_bucket_eos_create(r->connection->bucket_alloc); APR_BRIGADE_INSERT_TAIL(brigade, bucket);
CVE-2018-17082
{'CWE-79'}
2.9
{'https://github.com/php/php-src/commit/23b057742e3cf199612fa8050ae86cae675e214e'}
nvd
The Apache2 component in PHP before 5.6.38, 7.0.x before 7.0.32, 7.1.x before 7.1.22, and 7.2.x before 7.2.10 allows XSS via the body of a "Transfer-Encoding: chunked" request, because the bucket brigade is mishandled in the php_handler function in sapi/apache2handler/sapi_apache2.c.
2018-09-16
1
https://github.com/php/php-src
https://github.com/php/php-src/commit/23b057742e3cf199612fa8050ae86cae675e214e
23b057742e3cf199612fa8050ae86cae675e214e
SINGLE
['23b057742e3cf199612fa8050ae86cae675e214e']
{'1ba3314335b8bb7c86c24443588d5ef9c55d4a44'}
23b057742e3cf199612fa8050ae86cae675e214e
1
07/29/2018, 05:16:29
Fix for bug #76582 The brigade seems to end up in a messed up state if something fails in shutdown, so we clean it up.
Stanislav Malyshev
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -678,6 +678,7 @@ zend_first_try {\n \tif (!parent_req) {\n \t\tphp_apache_request_dtor(r TSRMLS_CC);\n \t\tctx->request_processed = 1;\n+\t\tapr_brigade_cleanup(brigade);\n \t\tbucket = apr_bucket_eos_create(r->connection->bucket_alloc);\n...
c
CWE-79
[ "sapi/apache2handler/sapi_apache2.c" ]
sapi/apache2handler/sapi_apache2.c
1
function make_task($ajax_req) if ($task['ID'] && $task['COMPLETED'] =='2') { $send['comments'] = xlt('This fax has already been sent.')." ". xlt('If you made changes and want to re-send it, delete the original (in Communications) or wait 60 seconds, and try again.')." ". ...
function make_task($ajax_req) if ($task['ID'] && $task['COMPLETED'] =='2') { $send['comments'] = xlt('This fax has already been sent.')." ". xlt('If you made changes and want to re-send it, delete the original (in Communications) or wait 60 seconds, and try again.')." ". ...
CVE-2018-17179
{'CWE-89'}
6.4
{'https://github.com/openemr/openemr/commit/3e22d11c7175c1ebbf3d862545ce6fee18f70617'}
nvd
An issue was discovered in OpenEMR before 5.0.1 Patch 7. There is SQL Injection in the make_task function in /interface/forms/eye_mag/php/taskman_functions.php via /interface/forms/eye_mag/taskman.php.
2019-05-17
1
https://github.com/openemr/openemr
https://github.com/openemr/openemr/commit/3e22d11c7175c1ebbf3d862545ce6fee18f70617
3e22d11c7175c1ebbf3d862545ce6fee18f70617
SINGLE
['3e22d11c7175c1ebbf3d862545ce6fee18f70617']
{'4850ff9274bcd12d48d909152d1238d73fa3eabf'}
3e22d11c7175c1ebbf3d862545ce6fee18f70617
1
08/08/2018, 04:59:00
bug fixes (#1790)
Brady Miller
null
{'additions': 7, 'deletions': 7, 'total': 14}
[ { "additions": 7, "changes": 14, "deletions": 7, "patch": "@@ -65,12 +65,12 @@ function make_task($ajax_req)\n if ($task['ID'] && $task['COMPLETED'] =='2') {\n $send['comments'] = xlt('This fax has already been sent.').\" \".\n xlt('If you made changes and wan...
php
CWE-89
[ "interface/forms/eye_mag/php/taskman_functions.php" ]
interface/forms/eye_mag/php/taskman_functions.php
1
decode_bundle(bool load, const struct nx_action_bundle *nab, load ? "bundle_load" : "bundle", slaves_size, bundle->n_slaves * sizeof(ovs_be16), bundle->n_slaves); error = OFPERR_OFPBAC_BAD_LEN; } for (i = 0; i < bundle->n_slaves; i++) { ofp_port_t ofp_...
decode_bundle(bool load, const struct nx_action_bundle *nab, load ? "bundle_load" : "bundle", slaves_size, bundle->n_slaves * sizeof(ovs_be16), bundle->n_slaves); error = OFPERR_OFPBAC_BAD_LEN; } else { for (i = 0; i < bundle->n_slaves; i++) { o...
CVE-2018-17206
{'CWE-125'}
2.9
{'https://github.com/openvswitch/ovs/commit/9237a63c47bd314b807cda0bd2216264e82edbe8'}
nvd
An issue was discovered in Open vSwitch (OvS) 2.7.x through 2.7.6. The decode_bundle function inside lib/ofp-actions.c is affected by a buffer over-read issue during BUNDLE action decoding.
2018-09-19
1
https://github.com/openvswitch/ovs
https://github.com/openvswitch/ovs/commit/9237a63c47bd314b807cda0bd2216264e82edbe8
9237a63c47bd314b807cda0bd2216264e82edbe8
SINGLE
['9237a63c47bd314b807cda0bd2216264e82edbe8']
{'572840ab396c144be1a3e05ab95df8f98f92f833'}
9237a63c47bd314b807cda0bd2216264e82edbe8
1
06/25/2018, 20:07:43
ofp-actions: Avoid buffer overread in BUNDLE action decoding. Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9052 Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
Ben Pfaff
{'com_1': {'author': 'abergmann', 'datetime': '09/19/2018, 16:50:44', 'body': "I've contacted MITRE and they have assigned [CVE-2018-17206](https://nvd.nist.gov/vuln/detail/CVE-2018-17206) to this issue."}}
{'additions': 7, 'deletions': 6, 'total': 13}
[ { "additions": 7, "changes": 13, "deletions": 6, "patch": "@@ -1357,12 +1357,13 @@ decode_bundle(bool load, const struct nx_action_bundle *nab,\n load ? \"bundle_load\" : \"bundle\", slaves_size,\n bundle->n_slaves * sizeof(ovs_be16), bundle->n_slaves);\n ...
c
CWE-125
[ "lib/ofp-actions.c" ]
lib/ofp-actions.c
1
static int run(const CommandLineOptions& options) { if(functionType.params().size() == 2) { MemoryInstance* defaultMemory = Runtime::getDefaultMemory(moduleInstance); if(!defaultMemory) { Log::printf( Log::error, "Module does not declare a default memory object to put arguments in.\n"); ...
static int run(const CommandLineOptions& options) { if(functionType.params().size() == 2) { if(!emscriptenInstance) { Log::printf( Log::error, "Module does not declare a default memory object to put arguments in.\n"); return EXIT_FAILURE; } else { std::vector<const char*> argS...
CVE-2018-17293
{'CWE-476'}
6.4
{'https://github.com/WAVM/WAVM/commit/31d670b6489e6d708c3b04b911cdf14ac43d846d'}
nvd
An issue was discovered in WAVM before 2018-09-16. The run function in Programs/wavm/wavm.cpp does not check whether there is Emscripten memory to store the command-line arguments passed by the input WebAssembly file's main function, which allows attackers to cause a denial of service (application crash by NULL pointer...
2018-09-21
1
https://github.com/WAVM/WAVM
https://github.com/WAVM/WAVM/commit/31d670b6489e6d708c3b04b911cdf14ac43d846d
31d670b6489e6d708c3b04b911cdf14ac43d846d
SINGLE
['31d670b6489e6d708c3b04b911cdf14ac43d846d']
{'bc7e0318a560c4055553efc97985a1a797db5dd3'}
31d670b6489e6d708c3b04b911cdf14ac43d846d
1
09/16/2018, 13:55:34
Fix dereferencing null pointer when running wavm with WebAssembly main function that takes command-line arguments but no Emscripten memory to write them to
Andrew Scheidecker
null
{'additions': 10, 'deletions': 8, 'total': 18}
[ { "additions": 10, "changes": 18, "deletions": 8, "patch": "@@ -250,21 +250,23 @@ static int run(const CommandLineOptions& options)\n \t{\n \t\tif(functionType.params().size() == 2)\n \t\t{\n-\t\t\tMemoryInstance* defaultMemory = Runtime::getDefaultMemory(moduleInstance);\n-\t\t\tif(!defaultMemory)\...
cpp
CWE-476
[ "Programs/wavm/wavm.cpp" ]
Programs/wavm/wavm.cpp
1
matchCurrentInput( const InString *input, int pos, const widechar *passInstructions, int passIC) { int k; int kk = pos; for (k = passIC + 2; k < passIC + 2 + passInstructions[passIC + 1]; k++) if (input->chars[kk] == ENDSEGMENT || passInstructions[k] != input->chars[kk++]) return 0; return 1;
matchCurrentInput( const InString *input, int pos, const widechar *passInstructions, int passIC) { int k; int kk = pos; for (k = passIC + 2; ((k < passIC + 2 + passInstructions[passIC + 1]) && (kk < input->length)); k++) if (input->chars[kk] == ENDSEGMENT || passInstructions[k] != input->chars[kk++]) r...
CVE-2018-17294
{'CWE-125'}
2.9
{'https://github.com/liblouis/liblouis/commit/5e4089659bb49b3095fa541fa6387b4c40d7396e'}
nvd
The matchCurrentInput function inside lou_translateString.c of Liblouis prior to 3.7 does not check the input string's length, allowing attackers to cause a denial of service (application crash via out-of-bounds read) by crafting an input file with certain translation dictionaries.
2018-09-21
1
https://github.com/liblouis/liblouis
https://github.com/liblouis/liblouis/commit/5e4089659bb49b3095fa541fa6387b4c40d7396e
5e4089659bb49b3095fa541fa6387b4c40d7396e
SINGLE
['5e4089659bb49b3095fa541fa6387b4c40d7396e']
{'dd7b2fef9c20bcfb5650d0037e6f3b489a79788f'}
5e4089659bb49b3095fa541fa6387b4c40d7396e
1
09/03/2018, 09:52:24
Fix a buffer overflow Fixes #635 Thanks to HongxuChen for reporting it
Christian Egli
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -354,7 +354,9 @@ matchCurrentInput(\n \t\tconst InString *input, int pos, const widechar *passInstructions, int passIC) {\n \tint k;\n \tint kk = pos;\n-\tfor (k = passIC + 2; k < passIC + 2 + passInstructions[passIC + 1]; k++)\n+\tfor (k ...
c
CWE-125
[ "liblouis/lou_translateString.c" ]
liblouis/lou_translateString.c
1
// Throw a growl error if ($error) { $file_name = htmlspecialchars($file_name); if ($error == 2 || $error == 1) { $errors[] = $file_name." was too large ".BigTree::formatBytes(BigTree::uploadMaxFileSize())." max)"; } else { // If we failed, either cloud storage upload failed, directory per...
// Throw a growl error if ($error) { $file_name = htmlspecialchars($file_name); if ($error == 2 || $error == 1) { $errors[] = $file_name." was too large ".BigTree::formatBytes(BigTree::uploadMaxFileSize())." max)"; } else { // If we failed, either cloud storage upload failed, director...
CVE-2018-18308
{'CWE-79'}
2.9
{'https://github.com/bigtreecms/BigTree-CMS/commit/ffd668a3aa7d2f540dbcdf5751f207302519df72'}
nvd
In the 4.2.23 version of BigTree, a Stored XSS vulnerability has been discovered in /admin/ajax/file-browser/upload/ (aka the image upload area).
2018-10-16
1
https://github.com/bigtreecms/BigTree-CMS
https://github.com/bigtreecms/BigTree-CMS/commit/ffd668a3aa7d2f540dbcdf5751f207302519df72
ffd668a3aa7d2f540dbcdf5751f207302519df72
SINGLE
['ffd668a3aa7d2f540dbcdf5751f207302519df72']
{'341ddd78867d03d21440233a426ae344a6cd3be3'}
ffd668a3aa7d2f540dbcdf5751f207302519df72
1
12/25/2018, 23:21:15
Fixing XSS on file names that fail to upload
Tim Buckingham
null
{'additions': 4, 'deletions': 3, 'total': 7}
[ { "additions": 4, "changes": 7, "deletions": 3, "patch": "@@ -48,6 +48,7 @@\n \t\t\t// Throw a growl error\n \t\t\tif ($error) {\n \t\t\t\t$file_name = htmlspecialchars($file_name);\n+\t\t\t\t\n \t\t\t\tif ($error == 2 || $error == 1) {\n \t\t\t\t\t$errors[] = $file_name.\" was too large \".BigTree:...
php
CWE-79
[ "core/admin/ajax/file-browser/upload.php" ]
core/admin/ajax/file-browser/upload.php
1
Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits, *(s+(nlen+1+vlen)) = '\0' #ifdef USE_ENVIRON_ARRAY /* VMS' my_setenv() is in vms.c */ #if !defined(WIN32) && !defined(NETWARE) void Perl_my_setenv(pTHX_ const char *nam, const char *val) { Perl_my_setenv(pTHX_ const char *nam, const ch...
Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits, *(s+(nlen+1+vlen)) = '\0' #ifdef USE_ENVIRON_ARRAY /* small wrapper for use by Perl_my_setenv that mallocs, or reallocs if * 'current' is non-null, with up to three sizes that are added together. * It handles integer overflow. */ static c...
CVE-2018-18311
{'CWE-190', 'CWE-787'}
6.4
{'https://github.com/Perl/perl5/commit/34716e2a6ee2af96078d62b065b7785c001194be'}
nvd
Perl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.
2018-12-07
1
https://github.com/Perl/perl5
https://github.com/Perl/perl5/commit/34716e2a6ee2af96078d62b065b7785c001194be
34716e2a6ee2af96078d62b065b7785c001194be
SINGLE
['34716e2a6ee2af96078d62b065b7785c001194be']
{'957a9e817d29a86f12809f29f95d467754b8707b'}
34716e2a6ee2af96078d62b065b7785c001194be
1
06/29/2018, 12:37:03
Perl_my_setenv(); handle integer wrap RT #133204 Wean this function off int/I32 and onto UV/Size_t. Also, replace all malloc-ish calls with a wrapper that does overflow checks, In particular, it was doing (nlen + vlen + 2) which could wrap when the combined length of the environment variable name and value exceeded ...
David Mitchell
null
{'additions': 53, 'deletions': 23, 'total': 76}
[ { "additions": 53, "changes": 76, "deletions": 23, "patch": "@@ -2061,8 +2061,40 @@ Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits,\n *(s+(nlen+1+vlen)) = '\\0'\n \n #ifdef USE_ENVIRON_ARRAY\n- /* VMS' my_setenv() is in vms.c */\n+\n+/* small wrapper for use by Perl...
c
CWE-787
[ "util.c" ]
util.c
1
Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits, *(s+(nlen+1+vlen)) = '\0' #ifdef USE_ENVIRON_ARRAY /* VMS' my_setenv() is in vms.c */ #if !defined(WIN32) && !defined(NETWARE) void Perl_my_setenv(pTHX_ const char *nam, const char *val) { Perl_my_setenv(pTHX_ const char *nam, const ch...
Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits, *(s+(nlen+1+vlen)) = '\0' #ifdef USE_ENVIRON_ARRAY /* small wrapper for use by Perl_my_setenv that mallocs, or reallocs if * 'current' is non-null, with up to three sizes that are added together. * It handles integer overflow. */ static c...
CVE-2018-18311
{'CWE-190', 'CWE-787'}
6.4
{'https://github.com/Perl/perl5/commit/34716e2a6ee2af96078d62b065b7785c001194be'}
nvd
Perl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.
2018-12-07
1
https://github.com/Perl/perl5
https://github.com/Perl/perl5/commit/34716e2a6ee2af96078d62b065b7785c001194be
34716e2a6ee2af96078d62b065b7785c001194be
SINGLE
['34716e2a6ee2af96078d62b065b7785c001194be']
{'957a9e817d29a86f12809f29f95d467754b8707b'}
34716e2a6ee2af96078d62b065b7785c001194be
1
06/29/2018, 12:37:03
Perl_my_setenv(); handle integer wrap RT #133204 Wean this function off int/I32 and onto UV/Size_t. Also, replace all malloc-ish calls with a wrapper that does overflow checks, In particular, it was doing (nlen + vlen + 2) which could wrap when the combined length of the environment variable name and value exceeded ...
David Mitchell
null
{'additions': 53, 'deletions': 23, 'total': 76}
[ { "additions": 53, "changes": 76, "deletions": 23, "patch": "@@ -2061,8 +2061,40 @@ Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits,\n *(s+(nlen+1+vlen)) = '\\0'\n \n #ifdef USE_ENVIRON_ARRAY\n- /* VMS' my_setenv() is in vms.c */\n+\n+/* small wrapper for use by Perl...
c
CWE-190
[ "util.c" ]
util.c
1
S_grok_bslash_N(pTHX_ RExC_state_t *pRExC_state, RExC_parse++; /* Skip past the '{' */ endbrace = strchr(RExC_parse, '}'); if (! endbrace) { /* no trailing brace */ vFAIL2("Missing right brace on \\%c{}", 'N'); } S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth) el...
S_grok_bslash_N(pTHX_ RExC_state_t *pRExC_state, RExC_parse++; /* Skip past the '{' */ endbrace = (char *) memchr(RExC_parse, '}', RExC_end - RExC_parse); if (! endbrace) { /* no trailing brace */ vFAIL2("Missing right brace on \\%c{}", 'N'); } S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *...
CVE-2018-18313
{'CWE-125'}
4.9
{'https://github.com/Perl/perl5/commit/43b2f4ef399e2fd7240b4eeb0658686ad95f8e62'}
nvd
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive information from process memory.
2018-12-07
1
https://github.com/Perl/perl5
https://github.com/Perl/perl5/commit/43b2f4ef399e2fd7240b4eeb0658686ad95f8e62
43b2f4ef399e2fd7240b4eeb0658686ad95f8e62
SINGLE
['43b2f4ef399e2fd7240b4eeb0658686ad95f8e62']
{'aea1585ca7b05ce6e4dab68540664e1e16bb3007'}
43b2f4ef399e2fd7240b4eeb0658686ad95f8e62
1
03/25/2017, 21:00:22
regcomp.c: Convert some strchr to memchr This allows things to work properly in the face of embedded NULs. See the branch merge message for more information.
Karl Williamson
null
{'additions': 6, 'deletions': 4, 'total': 10}
[ { "additions": 6, "changes": 10, "deletions": 4, "patch": "@@ -12056,7 +12056,7 @@ S_grok_bslash_N(pTHX_ RExC_state_t *pRExC_state,\n \n RExC_parse++;\t/* Skip past the '{' */\n \n- endbrace = strchr(RExC_parse, '}');\n+ endbrace = (char *) memchr(RExC_parse, '}', RExC_end - RExC_parse);\n...
c
CWE-125
[ "regcomp.c" ]
regcomp.c
1
public Object upload(@RequestParam("file") MultipartFile file) throws IOExceptio public ResponseEntity<Resource> fetch(@PathVariable String key) { LitemallStorage litemallStorage = litemallStorageService.findByKey(key); if (key == null) { ResponseEntity.notFound(); } Str...
public Object upload(@RequestParam("file") MultipartFile file) throws IOExceptio public ResponseEntity<Resource> fetch(@PathVariable String key) { LitemallStorage litemallStorage = litemallStorageService.findByKey(key); if (key == null) { return ResponseEntity.notFound().build(); ...
CVE-2018-18434
{'CWE-22'}
2.9
{'https://github.com/linlinjava/litemall/commit/49ab94d0052672d4fb642505d44b94a18abea332'}
nvd
An issue was discovered in litemall 0.9.0. Arbitrary file download is possible via ../ directory traversal in linlinjava/litemall/wx/web/WxStorageController.java in the litemall-wx-api component.
2018-10-17
1
https://github.com/linlinjava/litemall
https://github.com/linlinjava/litemall/commit/49ab94d0052672d4fb642505d44b94a18abea332
49ab94d0052672d4fb642505d44b94a18abea332
SINGLE
['49ab94d0052672d4fb642505d44b94a18abea332']
{'3313051c2bb47518c3389322ed45f3263d740611'}
49ab94d0052672d4fb642505d44b94a18abea332
1
10/16/2018, 05:46:54
fix[litemall-wx-api]: 修复文件路径中包含"../"带来的安全问题
Junling Bu
null
{'additions': 11, 'deletions': 4, 'total': 15}
[ { "additions": 11, "changes": 15, "deletions": 4, "patch": "@@ -58,14 +58,17 @@ public Object upload(@RequestParam(\"file\") MultipartFile file) throws IOExceptio\n public ResponseEntity<Resource> fetch(@PathVariable String key) {\n LitemallStorage litemallStorage = litemallStorageServic...
java
CWE-22
[ "litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxStorageController.java" ]
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxStorageController.java
1
static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, u64 umin_val, umax_val; u64 insn_bitness = (BPF_CLASS(insn->code) == BPF_ALU64) ? 64 : 32; smin_val = src_reg.smin_value; smax_val = src_reg.smax_value; umin_val = src_reg.umin_value; static int adjust_scalar_min_max_vals(struct bpf_verifier_env...
static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, u64 umin_val, umax_val; u64 insn_bitness = (BPF_CLASS(insn->code) == BPF_ALU64) ? 64 : 32; if (insn_bitness == 32) { /* Relevant for 32-bit RSH: Information can propagate towards * LSB, so it isn't sufficient to only truncate the output to ...
CVE-2018-18445
{'CWE-125'}
10
{'https://github.com/torvalds/linux/commit/b799207e1e1816b09e7a5920fbb2d5fcf6edd681'}
nvd
In the Linux kernel 4.14.x, 4.15.x, 4.16.x, 4.17.x, and 4.18.x before 4.18.13, faulty computation of numeric bounds in the BPF verifier permits out-of-bounds memory accesses because adjust_scalar_min_max_vals in kernel/bpf/verifier.c mishandles 32-bit right shifts.
2018-10-17
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b799207e1e1816b09e7a5920fbb2d5fcf6edd681
b799207e1e1816b09e7a5920fbb2d5fcf6edd681
SINGLE
['b799207e1e1816b09e7a5920fbb2d5fcf6edd681']
{'b0584ea66d73919cbf5878a3420a837f06ab8396'}
b799207e1e1816b09e7a5920fbb2d5fcf6edd681
1
10/05/2018, 16:17:59
bpf: 32-bit RSH verification must truncate input before the ALU op When I wrote commit 468f6eafa6c4 ("bpf: fix 32-bit ALU op verification"), I assumed that, in order to emulate 64-bit arithmetic with 32-bit logic, it is sufficient to just truncate the output to 32 bits; and so I just moved the register size coercion t...
Jann Horn
null
{'additions': 9, 'deletions': 1, 'total': 10}
[ { "additions": 9, "changes": 10, "deletions": 1, "patch": "@@ -2896,6 +2896,15 @@ static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env,\n \tu64 umin_val, umax_val;\n \tu64 insn_bitness = (BPF_CLASS(insn->code) == BPF_ALU64) ? 64 : 32;\n \n+\tif (insn_bitness == 32) {\n+\t\t/* Relevant ...
c
CWE-125
[ "kernel/bpf/verifier.c" ]
kernel/bpf/verifier.c
1
protected function parseOrder($order) return ''; } $array = array(); if (is_array($order)) { foreach ($order as $key => $val) { if (is_numeric($key)) { if (false === strpos($val, '(') && false === strpos($val, ';')) { ...
protected function parseOrder($order) return ''; } $array = array(); if (is_string($order) && '[RAND]' != $order) { $order = explode(',', $order); } if (is_array($order)) { foreach ($order as $key => $val) { if (is_numeric($ke...
CVE-2018-18546
{'CWE-89'}
6.4
{'https://github.com/top-think/thinkphp/commit/9748cb80d2f24c89218f358ca2f5ab88ee33396f'}
nvd
ThinkPHP 3.2.4 has SQL Injection via the order parameter because the Library/Think/Db/Driver.class.php parseOrder function mishandles the key variable.
2018-10-21
1
https://github.com/top-think/thinkphp
https://github.com/top-think/thinkphp/commit/9748cb80d2f24c89218f358ca2f5ab88ee33396f
9748cb80d2f24c89218f358ca2f5ab88ee33396f
SINGLE
['9748cb80d2f24c89218f358ca2f5ab88ee33396f']
{'77306720d5cbdf0fa97be9dea102a373a401f422'}
9748cb80d2f24c89218f358ca2f5ab88ee33396f
1
10/08/2018, 13:54:51
改进
thinkphp
{'com_1': {'author': 'yzh52521', 'datetime': '10/09/2018, 06:04:49', 'body': '缺少这个 parseRand 方法'}}
{'additions': 13, 'deletions': 13, 'total': 26}
[ { "additions": 13, "changes": 26, "deletions": 13, "patch": "@@ -758,29 +758,29 @@ protected function parseOrder($order)\n return '';\n }\n $array = array();\n+ if (is_string($order) && '[RAND]' != $order) {\n+ $order = explode(',', $order);\n+ }\...
php
CWE-89
[ "ThinkPHP/Library/Think/Db/Driver.class.php" ]
ThinkPHP/Library/Think/Db/Driver.class.php
1
public function loginAction() $request = $this->getRequest(); $form = new Default_Form_Login(); if ($this->getRequest()->getParam('message')) { $form->addErrorMessage($this->getRequest()->getParam('message')); } if ($this->getRequest()->isPost() && $form->i...
public function loginAction() $request = $this->getRequest(); $form = new Default_Form_Login(); // Display only loggedOut message if ($this->getRequest()->getParam('message') == "loggedOut") { $form->addErrorMessage(htmlspecialchars($this->getRequest()->getParam('m...
CVE-2018-18635
{'CWE-79'}
2.9
{'https://github.com/MailCleaner/MailCleaner/commit/5f90a52785672fc688c1f85e472e84b8a0d008d8'}
nvd
www/guis/admin/application/controllers/UserController.php in the administration login interface in MailCleaner CE 2018.08 and 2018.09 allows XSS via the admin/login/user/message/ PATH_INFO.
2018-10-24
1
https://github.com/MailCleaner/MailCleaner
https://github.com/MailCleaner/MailCleaner/commit/5f90a52785672fc688c1f85e472e84b8a0d008d8
5f90a52785672fc688c1f85e472e84b8a0d008d8
SINGLE
['5f90a52785672fc688c1f85e472e84b8a0d008d8']
{'bd14a9158da3f6136f6444ff8c2e0188786fd544'}
5f90a52785672fc688c1f85e472e84b8a0d008d8
1
10/24/2018, 09:47:23
Bug fix - Issue #53 Bug fix of a XSS issue on MailCleaner login (administration) interface. See issue #53 The "message" parameter was only used for the logoutAction(). However, the parameter was not checked and not escaped.
Mentor Reka
null
{'additions': 4, 'deletions': 2, 'total': 6}
[ { "additions": 4, "changes": 6, "deletions": 2, "patch": "@@ -33,8 +33,10 @@ public function loginAction()\n \n $request = $this->getRequest();\n $form = new Default_Form_Login();\n- if ($this->getRequest()->getParam('message')) {\n- \t$form->addErrorMessage($this->g...
php
CWE-79
[ "www/guis/admin/application/controllers/UserController.php" ]
www/guis/admin/application/controllers/UserController.php
1
static int cdrom_ioctl_select_disc(struct cdrom_device_info *cdi, return -ENOSYS; if (arg != CDSL_CURRENT && arg != CDSL_NONE) { if ((int)arg >= cdi->capacity) return -EINVAL; }
static int cdrom_ioctl_select_disc(struct cdrom_device_info *cdi, return -ENOSYS; if (arg != CDSL_CURRENT && arg != CDSL_NONE) { if (arg >= cdi->capacity) return -EINVAL; }
CVE-2018-18710
{'CWE-200'}
2.9
{'https://github.com/torvalds/linux/commit/e4f3aa2e1e67bb48dfbaaf1cad59013d5a5bc276'}
nvd
An issue was discovered in the Linux kernel through 4.19. An information leak in cdrom_ioctl_select_disc in drivers/cdrom/cdrom.c could be used by local attackers to read kernel memory because a cast from unsigned long to int interferes with bounds checking. This is similar to CVE-2018-10940 and CVE-2018-16658.
2018-10-29
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/e4f3aa2e1e67bb48dfbaaf1cad59013d5a5bc276
e4f3aa2e1e67bb48dfbaaf1cad59013d5a5bc276
SINGLE
['e4f3aa2e1e67bb48dfbaaf1cad59013d5a5bc276']
{'fb6360b1ef33b7799e6a81e1075a47e3b8ae01fd'}
e4f3aa2e1e67bb48dfbaaf1cad59013d5a5bc276
1
10/03/2018, 12:54:29
cdrom: fix improper type cast, which can leat to information leak. There is another cast from unsigned long to int which causes a bounds check to fail with specially crafted input. The value is then used as an index in the slot array in cdrom_slot_status(). This issue is similar to CVE-2018-16658 and CVE-2018-10940. ...
Young_X
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -2445,7 +2445,7 @@ static int cdrom_ioctl_select_disc(struct cdrom_device_info *cdi,\n \t\treturn -ENOSYS;\n \n \tif (arg != CDSL_CURRENT && arg != CDSL_NONE) {\n-\t\tif ((int)arg >= cdi->capacity)\n+\t\tif (arg >= cdi->capacity)\n \t\t\tr...
c
CWE-200
[ "drivers/cdrom/cdrom.c" ]
drivers/cdrom/cdrom.c
1
PHYSICALPATH_FUNC(mod_alias_physical_handler) { strncmp(uri_ptr, ds->key->ptr, alias_len))) { /* matched */ buffer_copy_buffer(con->physical.basedir, ds->value); buffer_copy_buffer(srv->tmp_buf, ds->value); buffer_append_string(srv->tmp_buf, uri_ptr + alias_len);
PHYSICALPATH_FUNC(mod_alias_physical_handler) { strncmp(uri_ptr, ds->key->ptr, alias_len))) { /* matched */ /* check for path traversal in url-path following alias if key * does not end in slash, but replacement value ends in slash */ if (uri_ptr[alias_len] == '.') { char *s = uri_ptr + alias_le...
CVE-2018-19052
{'CWE-22'}
2.9
{'https://github.com/lighttpd/lighttpd1.4/commit/2105dae0f9d7a964375ce681e53cb165375f84c1'}
nvd
An issue was discovered in mod_alias_physical_handler in mod_alias.c in lighttpd before 1.4.50. There is potential ../ path traversal of a single directory above an alias target, with a specific mod_alias configuration where the matched alias lacks a trailing '/' character, but the alias target filesystem path does hav...
2018-11-07
1
https://github.com/lighttpd/lighttpd1.4
https://github.com/lighttpd/lighttpd1.4/commit/2105dae0f9d7a964375ce681e53cb165375f84c1
2105dae0f9d7a964375ce681e53cb165375f84c1
SINGLE
['2105dae0f9d7a964375ce681e53cb165375f84c1']
{'eb429c9c1981aaf8ab2014fe4dd230d27b2e8309'}
2105dae0f9d7a964375ce681e53cb165375f84c1
1
07/01/2018, 16:38:28
[mod_alias] security: potential path traversal with specific configs Security: potential path traversal of a single directory above the alias target with a specific mod_alias config where the alias which is matched does not end in '/', but alias target filesystem path does end in '/'. e.g. server.docroot = "/srv/www/...
Glenn Strauss
null
{'additions': 15, 'deletions': 0, 'total': 15}
[ { "additions": 15, "changes": 15, "deletions": 0, "patch": "@@ -181,6 +181,21 @@ PHYSICALPATH_FUNC(mod_alias_physical_handler) {\n \t\t\t\t\tstrncmp(uri_ptr, ds->key->ptr, alias_len))) {\n \t\t\t/* matched */\n \n+\t\t\t/* check for path traversal in url-path following alias if key\n+\t\t\t * does n...
c
CWE-22
[ "src/mod_alias.c" ]
src/mod_alias.c
1
size_t extract_content_length(char *buffer, size_t size) */ int extract_status_code(char *buffer, size_t size) { char *buf_code; char *begin; char *end = buffer + size; size_t inc = 0; int code; /* Allocate the room */ buf_code = (char *)MALLOC(10); /* Status-Code extraction */ while (buffer < end && *buff...
size_t extract_content_length(char *buffer, size_t size) */ int extract_status_code(char *buffer, size_t size) { char *end = buffer + size; unsigned long code; /* Status-Code extraction */ while (buffer < end && *buffer != ' ' && *buffer != '\r') buffer++; buffer++; if (buffer + 3 >= end || *buffer == ' ' ||...
CVE-2018-19115
{'CWE-787'}
6.4
{'https://github.com/acassen/keepalived/pull/961/commits/f28015671a4b04785859d1b4b1327b367b6a10e9'}
nvd
keepalived before 2.0.7 has a heap-based buffer overflow when parsing HTTP status codes resulting in DoS or possibly unspecified other impact, because extract_status_code in lib/html.c has no validation of the status code and instead writes an unlimited amount of data to the heap.
2018-11-08
1
https://github.com/acassen/keepalived
https://github.com/acassen/keepalived/pull/961/commits/f28015671a4b04785859d1b4b1327b367b6a10e9
f28015671a4b04785859d1b4b1327b367b6a10e9
SINGLE
['f28015671a4b04785859d1b4b1327b367b6a10e9']
{'6821eaba95300de93cd2860c68464f19d06f199f'}
f28015671a4b04785859d1b4b1327b367b6a10e9
1
07/24/2018, 08:28:43
Fix buffer overflow in extract_status_code() Issue #960 identified that the buffer allocated for copying the HTTP status code could overflow if the http response was corrupted. This commit changes the way the status code is read, avoids copying data, and also ensures that the status code is three digits long, is non-...
Quentin Armitage
null
{'additions': 9, 'deletions': 14, 'total': 23}
[ { "additions": 9, "changes": 23, "deletions": 14, "patch": "@@ -58,23 +58,18 @@ size_t extract_content_length(char *buffer, size_t size)\n */\n int extract_status_code(char *buffer, size_t size)\n {\n-\tchar *buf_code;\n-\tchar *begin;\n \tchar *end = buffer + size;\n-\tsize_t inc = 0;\n-\tint code...
c
CWE-787
[ "lib/html.c" ]
lib/html.c
1
void URI_FUNC(ResetUri)(URI_TYPE(Uri) * uri) { memset(uri, 0, sizeof(URI_TYPE(Uri))); }
void URI_FUNC(ResetUri)(URI_TYPE(Uri) * uri) { if (uri == NULL) { return; } memset(uri, 0, sizeof(URI_TYPE(Uri))); }
CVE-2018-19200
{'CWE-476'}
2.9
{'https://github.com/uriparser/uriparser/commit/f58c25069cf4a986fe17a80c5b38687e31feb539'}
nvd
An issue was discovered in uriparser before 0.9.0. UriCommon.c allows attempted operations on NULL input via a uriResetUri* function.
2018-11-12
1
https://github.com/uriparser/uriparser
https://github.com/uriparser/uriparser/commit/f58c25069cf4a986fe17a80c5b38687e31feb539
f58c25069cf4a986fe17a80c5b38687e31feb539
SINGLE
['f58c25069cf4a986fe17a80c5b38687e31feb539']
{'0416b1479a85d8d56215ecd69b3a3cc1eae01083'}
f58c25069cf4a986fe17a80c5b38687e31feb539
1
10/10/2018, 12:49:51
ResetUri: Protect against NULL
Sebastian Pipping
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -75,6 +75,9 @@\n \n \n void URI_FUNC(ResetUri)(URI_TYPE(Uri) * uri) {\n+\tif (uri == NULL) {\n+\t\treturn;\n+\t}\n \tmemset(uri, 0, sizeof(URI_TYPE(Uri)));\n }", "path": "src/UriCommon.c", "raw_url": "https://github.com/uriparser/u...
c
CWE-476
[ "src/UriCommon.c" ]
src/UriCommon.c
1
hfs_cat_traverse(HFS_INFO * hfs, key = (hfs_btree_key_cat *) & node[rec_off]; keylen = 2 + tsk_getu16(hfs->fs_info.endian, key->key_len); if ((keylen) > nodesize) { tsk_error_set_errno(TSK_ERR_FS_GENFS); tsk_error_set_errstr ...
hfs_cat_traverse(HFS_INFO * hfs, key = (hfs_btree_key_cat *) & node[rec_off]; keylen = 2 + tsk_getu16(hfs->fs_info.endian, key->key_len); if (keylen >= nodesize - rec_off) { tsk_error_set_errno(TSK_ERR_FS_GENFS); t...
CVE-2018-19497
{'CWE-125'}
2.9
{'https://github.com/sleuthkit/sleuthkit/commit/bc04aa017c0bd297de8a3b7fc40ffc6ddddbb95d'}
nvd
In The Sleuth Kit (TSK) through 4.6.4, hfs_cat_traverse in tsk/fs/hfs.c does not properly determine when a key length is too large, which allows attackers to cause a denial of service (SEGV on unknown address with READ memory access in a tsk_getu16 call in hfs_dir_open_meta_cb in tsk/fs/hfs_dent.c).
2018-11-29
1
https://github.com/sleuthkit/sleuthkit
https://github.com/sleuthkit/sleuthkit/commit/bc04aa017c0bd297de8a3b7fc40ffc6ddddbb95d
bc04aa017c0bd297de8a3b7fc40ffc6ddddbb95d
SINGLE
['bc04aa017c0bd297de8a3b7fc40ffc6ddddbb95d']
{'193ee68c7554305ad259b167e427ef7c951e3c00', '8242588f4354339d9cb1ad82622e7c16c55391c9'}
bc04aa017c0bd297de8a3b7fc40ffc6ddddbb95d
1
11/29/2018, 13:46:39
Merge pull request #1374 from JordyZomer/develop Fix CVE-2018-19497.
Brian Carrier
null
{'additions': 3, 'deletions': 2, 'total': 5}
[ { "additions": 3, "changes": 5, "deletions": 2, "patch": "@@ -956,11 +956,12 @@ hfs_cat_traverse(HFS_INFO * hfs,\n key = (hfs_btree_key_cat *) & node[rec_off];\n \n keylen = 2 + tsk_getu16(hfs->fs_info.endian, key->key_len);\n- if ((keylen) > nodesize) ...
c
CWE-125
[ "tsk/fs/hfs.c" ]
tsk/fs/hfs.c
1
static int usb_audio_probe(struct usb_interface *intf, __error: if (chip) { if (!chip->num_interfaces) snd_card_free(chip->card); atomic_dec(&chip->active); } mutex_unlock(&register_mutex); return err;
static int usb_audio_probe(struct usb_interface *intf, __error: if (chip) { /* chip->active is inside the chip->card object, * decrement before memory is possibly returned. */ atomic_dec(&chip->active); if (!chip->num_interfaces) snd_card_free(chip->card); } mutex_unlock(&register_mutex); return e...
CVE-2018-19824
{'CWE-416'}
6.4
{'https://github.com/torvalds/linux/commit/5f8cf712582617d523120df67d392059eaf2fc4b'}
nvd
In the Linux kernel through 4.19.6, a local user could exploit a use-after-free in the ALSA driver by supplying a malicious USB Sound device (with zero interfaces) that is mishandled in usb_audio_probe in sound/usb/card.c.
2018-12-03
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/5f8cf712582617d523120df67d392059eaf2fc4b
5f8cf712582617d523120df67d392059eaf2fc4b
SINGLE
['5f8cf712582617d523120df67d392059eaf2fc4b']
{'54947cd64c1b8290f64bb2958e343c07270e3a58'}
5f8cf712582617d523120df67d392059eaf2fc4b
1
12/03/2018, 15:09:34
ALSA: usb-audio: Fix UAF decrement if card has no live interfaces in card.c If a USB sound card reports 0 interfaces, an error condition is triggered and the function usb_audio_probe errors out. In the error path, there was a use-after-free vulnerability where the memory object of the card was first freed, followed by...
Hui Peng
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -682,9 +682,12 @@ static int usb_audio_probe(struct usb_interface *intf,\n \n __error:\n \tif (chip) {\n+\t\t/* chip->active is inside the chip->card object,\n+\t\t * decrement before memory is possibly returned.\n+\t\t */\n+\t\tatomic_de...
c
CWE-416
[ "sound/usb/card.c" ]
sound/usb/card.c
1
namespace Sass { if (lex< variable >()) { return SASS_MEMORY_NEW(Variable, pstate, Util::normalize_underscores(lexed)); } // Special case handling for `%` proceeding an interpolant. if (lex< sequence< exactly<'%'>, optional< percentage > > >()) { return SASS_MEMORY_NEW(String_Constant, pstate, lex...
namespace Sass { if (lex< variable >()) { return SASS_MEMORY_NEW(Variable, pstate, Util::normalize_underscores(lexed)); } css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was "); // unreachable statement
CVE-2018-19837
{'CWE-400'}
2.9
{'https://github.com/sass/libsass/commit/210fdff7a65370c2ae24e022a2b35da8c423cc5f'}
nvd
In LibSass prior to 3.5.5, Sass::Eval::operator()(Sass::Binary_Expression*) inside eval.cpp allows attackers to cause a denial-of-service resulting from stack consumption via a crafted sass file, because of certain incorrect parsing of '%' as a modulo operator in parser.cpp.
2018-12-04
1
https://github.com/sass/libsass
https://github.com/sass/libsass/commit/210fdff7a65370c2ae24e022a2b35da8c423cc5f
210fdff7a65370c2ae24e022a2b35da8c423cc5f
SINGLE
['210fdff7a65370c2ae24e022a2b35da8c423cc5f']
{'19fd2bf2e31413b5935e7feb87fec630b486feba'}
210fdff7a65370c2ae24e022a2b35da8c423cc5f
1
06/21/2018, 10:10:55
Remove legacy workaround for parsing modulo operator Fixes #2659
xzyfer
null
{'additions': 0, 'deletions': 4, 'total': 4}
[ { "additions": 0, "changes": 4, "deletions": 4, "patch": "@@ -1723,10 +1723,6 @@ namespace Sass {\n if (lex< variable >())\n { return SASS_MEMORY_NEW(Variable, pstate, Util::normalize_underscores(lexed)); }\n \n- // Special case handling for `%` proceeding an interpolant.\n- if (lex< s...
cpp
CWE-400
[ "src/parser.cpp" ]
src/parser.cpp
1
int WavpackVerifySingleBlock (unsigned char *buffer, int verify_checksum) #endif if (meta_bc == 4) { if (*dp++ != (csum & 0xff) || *dp++ != ((csum >> 8) & 0xff) || *dp++ != ((csum >> 16) & 0xff) || *dp++ != ((csum >> 24) & 0xff)) return FALSE; } ...
int WavpackVerifySingleBlock (unsigned char *buffer, int verify_checksum) #endif if (meta_bc == 4) { if (*dp != (csum & 0xff) || dp[1] != ((csum >> 8) & 0xff) || dp[2] != ((csum >> 16) & 0xff) || dp[3] != ((csum >> 24) & 0xff)) return FALSE; } el...
CVE-2018-19841
{'CWE-125'}
2.9
{'https://github.com/dbry/WavPack/commit/bba5389dc598a92bdf2b297c3ea34620b6679b5b'}
nvd
The function WavpackVerifySingleBlock in open_utils.c in libwavpack.a in WavPack through 5.1.0 allows attackers to cause a denial-of-service (out-of-bounds read and application crash) via a crafted WavPack Lossless Audio file, as demonstrated by wvunpack.
2018-12-04
1
https://github.com/dbry/WavPack
https://github.com/dbry/WavPack/commit/bba5389dc598a92bdf2b297c3ea34620b6679b5b
bba5389dc598a92bdf2b297c3ea34620b6679b5b
SINGLE
['bba5389dc598a92bdf2b297c3ea34620b6679b5b']
{'070ef6f138956d9ea9612e69586152339dbefe51'}
bba5389dc598a92bdf2b297c3ea34620b6679b5b
1
11/30/2018, 05:53:51
issue #54: fix potential out-of-bounds heap read
David Bryant
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -1258,13 +1258,13 @@ int WavpackVerifySingleBlock (unsigned char *buffer, int verify_checksum)\n #endif\n \n if (meta_bc == 4) {\n- if (*dp++ != (csum & 0xff) || *dp++ != ((csum >> 8) & 0xff) || *dp++ != ((csum >...
c
CWE-125
[ "src/open_utils.c" ]
src/open_utils.c
1
LookupTable oplookup[] = { }; static x86newTokenType getToken(const char *str, size_t *begin, size_t *end) { // Skip whitespace while (begin && isspace ((ut8)str[*begin])) { ++(*begin); } if (!str[*begin]) { // null byte *end = *begin; return TT_EOF; } else if (isalpha ((ut8)str[*begin])) {...
LookupTable oplookup[] = { }; static x86newTokenType getToken(const char *str, size_t *begin, size_t *end) { if (*begin > strlen (str)) { return TT_EOF; } // Skip whitespace while (begin && str[*begin] && isspace ((ut8)str[*begin])) { ++(*begin); } if (!str[*begin]) { // null byte *end = *...
CVE-2018-19842
{'CWE-125'}
2.9
{'https://github.com/radare/radare2/commit/66191f780863ea8c66ace4040d0d04a8842e8432'}
nvd
getToken in libr/asm/p/asm_x86_nz.c in radare2 before 3.1.0 allows attackers to cause a denial of service (stack-based buffer over-read) via crafted x86 assembly data, as demonstrated by rasm2.
2018-12-04
1
https://github.com/radare/radare2
https://github.com/radare/radare2/commit/66191f780863ea8c66ace4040d0d04a8842e8432
66191f780863ea8c66ace4040d0d04a8842e8432
SINGLE
['66191f780863ea8c66ace4040d0d04a8842e8432']
{'6d7ed2605c26750843d0a8148e99e038bca05ca3'}
66191f780863ea8c66ace4040d0d04a8842e8432
1
11/21/2018, 16:50:58
Fix #12239 - crash in the x86.nz assembler ##asm (#12252)
radare
null
{'additions': 9, 'deletions': 4, 'total': 13}
[ { "additions": 9, "changes": 13, "deletions": 4, "patch": "@@ -4295,21 +4295,26 @@ LookupTable oplookup[] = {\n };\n \n static x86newTokenType getToken(const char *str, size_t *begin, size_t *end) {\n+\tif (*begin > strlen (str)) {\n+\t\treturn TT_EOF;\n+\t}\n \t// Skip whitespace\n-\twhile (begin &...
c
CWE-125
[ "libr/asm/p/asm_x86_nz.c" ]
libr/asm/p/asm_x86_nz.c
1
static int opmov(RAsm *a, ut8 *data, const Opcode *op) { if (op->operands[1].scale[0] == 0) { return -1; } data[l++] = SEG_REG_PREFIXES[op->operands[1].regs[0]]; data[l++] = 0x8b; data[l++] = op->operands[0].reg << 3 | 0x5; data[l++] = offset; data[l++] = offset >> 8; data[l++] = offset >> ...
static int opmov(RAsm *a, ut8 *data, const Opcode *op) { if (op->operands[1].scale[0] == 0) { return -1; } data[l++] = SEG_REG_PREFIXES[op->operands[1].regs[0] % 6]; data[l++] = 0x8b; data[l++] = (((ut32)op->operands[0].reg) << 3) | 0x5; data[l++] = offset; data[l++] = offset >> 8; data[l++...
CVE-2018-19843
{'CWE-125'}
2.9
{'https://github.com/radare/radare2/commit/f17bfd9f1da05f30f23a4dd05e9d2363e1406948'}
nvd
opmov in libr/asm/p/asm_x86_nz.c in radare2 before 3.1.0 allows attackers to cause a denial of service (buffer over-read) via crafted x86 assembly data, as demonstrated by rasm2.
2018-12-04
1
https://github.com/radare/radare2
https://github.com/radare/radare2/commit/f17bfd9f1da05f30f23a4dd05e9d2363e1406948
f17bfd9f1da05f30f23a4dd05e9d2363e1406948
SINGLE
['f17bfd9f1da05f30f23a4dd05e9d2363e1406948']
{'2aaeb80ac41e8db81729ea0610233494d0222a9b'}
f17bfd9f1da05f30f23a4dd05e9d2363e1406948
1
11/22/2018, 09:48:39
Fix #12242 - Crash in x86.nz assembler (#12266)
radare
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -2023,9 +2023,9 @@ static int opmov(RAsm *a, ut8 *data, const Opcode *op) {\n \t\t\tif (op->operands[1].scale[0] == 0) {\n \t\t\t\treturn -1;\n \t\t\t}\n-\t\t\tdata[l++] = SEG_REG_PREFIXES[op->operands[1].regs[0]];\n+\t\t\tdata[l++] = SEG_...
c
CWE-125
[ "libr/asm/p/asm_x86_nz.c" ]
libr/asm/p/asm_x86_nz.c
1
static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) { struct crypto_report_cipher rcipher; strlcpy(rcipher.type, "cipher", sizeof(rcipher.type)); rcipher.blocksize = alg->cra_blocksize; rcipher.min_keysize = alg->cra_cipher.cia_min_keysize; static int crypto_report_comp(struct sk_buff *s...
static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) { struct crypto_report_cipher rcipher; strncpy(rcipher.type, "cipher", sizeof(rcipher.type)); rcipher.blocksize = alg->cra_blocksize; rcipher.min_keysize = alg->cra_cipher.cia_min_keysize; static int crypto_report_comp(struct sk_buff *s...
CVE-2018-19854
{'CWE-200'}
2.9
{'https://github.com/torvalds/linux/commit/f43f39958beb206b53292801e216d9b8a660f087'}
nvd
An issue was discovered in the Linux kernel before 4.19.3. crypto_report_one() and related functions in crypto/crypto_user.c (the crypto user configuration API) do not fully initialize structures that are copied to userspace, potentially leaking sensitive memory to user programs. NOTE: this is a CVE-2013-2547 regressio...
2018-12-04
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/f43f39958beb206b53292801e216d9b8a660f087
f43f39958beb206b53292801e216d9b8a660f087
SINGLE
['f43f39958beb206b53292801e216d9b8a660f087']
{'508a1c4df085a547187eed346f1bfe5e381797f1'}
f43f39958beb206b53292801e216d9b8a660f087
1
11/03/2018, 21:56:00
crypto: user - fix leaking uninitialized memory to userspace All bytes of the NETLINK_CRYPTO report structures must be initialized, since they are copied to userspace. The change from strncpy() to strlcpy() broke this. As a minimal fix, change it back. Fixes: 4473710df1f8 ("crypto: user - Prepare for CRYPTO_MAX_ALG...
Eric Biggers
null
{'additions': 9, 'deletions': 9, 'total': 18}
[ { "additions": 9, "changes": 18, "deletions": 9, "patch": "@@ -84,7 +84,7 @@ static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg)\n {\n \tstruct crypto_report_cipher rcipher;\n \n-\tstrlcpy(rcipher.type, \"cipher\", sizeof(rcipher.type));\n+\tstrncpy(rcipher.type, \"cipher\",...
c
CWE-200
[ "crypto/crypto_user_base.c" ]
crypto/crypto_user_base.c
1
int ff_mms_asf_header_parser(MMSContext *mms) } } } else if (!memcmp(p, ff_asf_stream_header, sizeof(ff_asf_guid))) { flags = AV_RL16(p + sizeof(ff_asf_guid)*3 + 24); stream_id = flags & 0x7F; //The second condition is for checking CS_PKT_STRE...
int ff_mms_asf_header_parser(MMSContext *mms) } } } else if (!memcmp(p, ff_asf_stream_header, sizeof(ff_asf_guid))) { if (end - p >= (sizeof(ff_asf_guid) * 3 + 26)) { flags = AV_RL16(p + sizeof(ff_asf_guid)*3 + 24); stream_id = flags &...
CVE-2018-1999010
{'CWE-125'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/cced03dd667a5df6df8fd40d8de0bff477ee02e8'}
nvd
FFmpeg before commit cced03dd667a5df6df8fd40d8de0bff477ee02e8 contains multiple out of array access vulnerabilities in the mms protocol that can result in attackers accessing out of bound data. This attack appear to be exploitable via network connectivity. This vulnerability appears to have been fixed in cced03dd667a5d...
2018-07-23
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/cced03dd667a5df6df8fd40d8de0bff477ee02e8
cced03dd667a5df6df8fd40d8de0bff477ee02e8
SINGLE
['cced03dd667a5df6df8fd40d8de0bff477ee02e8']
{'a2317556efb79cbe8e21bf75d56c75e4086602ec'}
cced03dd667a5df6df8fd40d8de0bff477ee02e8
1
07/03/2018, 18:33:04
avformat/mms: Add missing chunksize check Fixes: out of array read Fixes: mms-crash-01b6c5d85f9d9f40f4e879896103e9f5b222816a Found-by: Paul Ch <paulcher@icloud.com> 1st hunk by Paul Ch <paulcher@icloud.com> Tested-by: Paul Ch <paulcher@icloud.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer
{'com_1': {'author': 'wqazzz', 'datetime': '05/23/2020, 09:12:10', 'body': 'this is CVE-2018-1999010'}}
{'additions': 26, 'deletions': 18, 'total': 44}
[ { "additions": 26, "changes": 44, "deletions": 18, "patch": "@@ -94,24 +94,26 @@ int ff_mms_asf_header_parser(MMSContext *mms)\n }\n }\n } else if (!memcmp(p, ff_asf_stream_header, sizeof(ff_asf_guid))) {\n- flags = AV_RL16(p + sizeof(ff_asf_guid)*3...
c
CWE-125
[ "libavformat/mms.c" ]
libavformat/mms.c
1
static int parse_video_info(AVIOContext *pb, AVStream *st) st->codecpar->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag); size_bmp = FFMAX(size_asf, size_bmp); if (size_bmp > BMP_HEADER_SIZE) { int ret; st->codecpar->extradata_size = size_bmp - BMP_HEADER_SIZE; if (!(st->codec...
static int parse_video_info(AVIOContext *pb, AVStream *st) st->codecpar->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag); size_bmp = FFMAX(size_asf, size_bmp); if (size_bmp > BMP_HEADER_SIZE && size_bmp < INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { int ret; st->codecpar->extradat...
CVE-2018-1999011
{'CWE-119'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/2b46ebdbff1d8dec7a3d8ea280a612b91a582869'}
nvd
FFmpeg before commit 2b46ebdbff1d8dec7a3d8ea280a612b91a582869 contains a Buffer Overflow vulnerability in asf_o format demuxer that can result in heap-buffer-overflow that may result in remote code execution. This attack appears to be exploitable via specially crafted ASF file that has to be provided as input to FFmpeg...
2018-07-23
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/2b46ebdbff1d8dec7a3d8ea280a612b91a582869
2b46ebdbff1d8dec7a3d8ea280a612b91a582869
SINGLE
['2b46ebdbff1d8dec7a3d8ea280a612b91a582869']
{'bab0716c7f4793ec42e05a5aa7e80d82a0dd4e75'}
2b46ebdbff1d8dec7a3d8ea280a612b91a582869
1
07/03/2018, 19:01:23
avformat/asfdec_o: Check size_bmp more fully Fixes: integer overflow and out of array access Fixes: asfo-crash-46080c4341572a7137a162331af77f6ded45cbd7 Found-by: Paul Ch <paulcher@icloud.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer
{'com_1': {'author': 'tolstikhell', 'datetime': '08/13/2018, 15:43:11', 'body': '2b46ebd0'}, 'com_2': {'author': 'wqazzz', 'datetime': '05/23/2020, 09:12:56', 'body': 'this is CVE-2018-1999011'}}
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -706,7 +706,8 @@ static int parse_video_info(AVIOContext *pb, AVStream *st)\n st->codecpar->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag);\n size_bmp = FFMAX(size_asf, size_bmp);\n \n- if (size_bmp > BMP_HEADER_SIZE) {\n+ ...
c
CWE-119
[ "libavformat/asfdec_o.c" ]
libavformat/asfdec_o.c
1
static int rm_read_multi(AVFormatContext *s, AVIOContext *pb, size2 = avio_rb32(pb); ret = ff_rm_read_mdpr_codecdata(s, s->pb, st2, st2->priv_data, size2, mime); if (ret < 0) return ret; }
static int rm_read_multi(AVFormatContext *s, AVIOContext *pb, size2 = avio_rb32(pb); ret = ff_rm_read_mdpr_codecdata(s, s->pb, st2, st2->priv_data, size2, NULL); if (ret < 0) return ret; }
CVE-2018-1999013
{'CWE-416'}
2.9
{'https://github.com/FFmpeg/FFmpeg/commit/a7e032a277452366771951e29fd0bf2bd5c029f0'}
nvd
FFmpeg before commit a7e032a277452366771951e29fd0bf2bd5c029f0 contains a use-after-free vulnerability in the realmedia demuxer that can result in vulnerability allows attacker to read heap memory. This attack appear to be exploitable via specially crafted RM file has to be provided as input. This vulnerability appears ...
2018-07-23
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/a7e032a277452366771951e29fd0bf2bd5c029f0
a7e032a277452366771951e29fd0bf2bd5c029f0
SINGLE
['a7e032a277452366771951e29fd0bf2bd5c029f0']
{'2b46ebdbff1d8dec7a3d8ea280a612b91a582869'}
a7e032a277452366771951e29fd0bf2bd5c029f0
1
07/03/2018, 19:37:46
avformat/rmdec: Do not pass mime type in rm_read_multi() to ff_rm_read_mdpr_codecdata() Fixes: use after free() Fixes: rmdec-crash-ffe85b4cab1597d1cfea6955705e53f1f5c8a362 Found-by: Paul Ch <paulcher@icloud.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer
{'com_1': {'author': 'wqazzz', 'datetime': '05/23/2020, 09:13:16', 'body': 'this is CVE-2018-1999013'}}
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -522,7 +522,7 @@ static int rm_read_multi(AVFormatContext *s, AVIOContext *pb,\n \n size2 = avio_rb32(pb);\n ret = ff_rm_read_mdpr_codecdata(s, s->pb, st2, st2->priv_data,\n- size2, mi...
c
CWE-416
[ "libavformat/rmdec.c" ]
libavformat/rmdec.c
1
static int mxf_parse_structural_metadata(MXFContext *mxf) MXFEssenceContainerData *essence_data; if (!(essence_data = mxf_resolve_strong_ref(mxf, &mxf->essence_container_data_refs[k], EssenceContainerData))) { av_log(mxf, AV_LOG_TRACE, "could not resolve essence con...
static int mxf_parse_structural_metadata(MXFContext *mxf) MXFEssenceContainerData *essence_data; if (!(essence_data = mxf_resolve_strong_ref(mxf, &mxf->essence_container_data_refs[k], EssenceContainerData))) { av_log(mxf->fc, AV_LOG_TRACE, "could not resolve essence...
CVE-2018-1999014
{'CWE-125'}
2.9
{'https://github.com/FFmpeg/FFmpeg/commit/bab0716c7f4793ec42e05a5aa7e80d82a0dd4e75'}
nvd
FFmpeg before commit bab0716c7f4793ec42e05a5aa7e80d82a0dd4e75 contains an out of array access vulnerability in MXF format demuxer that can result in DoS. This attack appear to be exploitable via specially crafted MXF file which has to be provided as input. This vulnerability appears to have been fixed in bab0716c7f4793...
2018-07-23
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/bab0716c7f4793ec42e05a5aa7e80d82a0dd4e75
bab0716c7f4793ec42e05a5aa7e80d82a0dd4e75
SINGLE
['bab0716c7f4793ec42e05a5aa7e80d82a0dd4e75']
{'4cd5c3f9ec7859503d733ba7b5ab23994c1b2fc5'}
bab0716c7f4793ec42e05a5aa7e80d82a0dd4e75
1
07/03/2018, 18:38:06
avformat/mxfdec: Fix av_log context Fixes: out of array access Fixes: mxf-crash-1c2e59bf07a34675bfb3ada5e1ec22fa9f38f923 Found-by: Paul Ch <paulcher@icloud.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer
{'com_1': {'author': 'wqazzz', 'datetime': '05/23/2020, 09:13:23', 'body': 'this is CVE-2018-1999014'}}
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -2155,7 +2155,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)\n MXFEssenceContainerData *essence_data;\n \n if (!(essence_data = mxf_resolve_strong_ref(mxf, &mxf->essence_container_data_refs[k...
c
CWE-125
[ "libavformat/mxfdec.c" ]
libavformat/mxfdec.c
1
static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb) return 0; } static void read_quant_matrix_ext(MpegEncContext *s, GetBitContext *gb) { int i, j, v; if (get_bits1(gb)) { /* intra_quantiser_matrix */ for (i = 0; i < 64; i++) { v = get_bits(gb, 8); static voi...
static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb) return 0; } static int read_quant_matrix_ext(MpegEncContext *s, GetBitContext *gb) { int i, j, v; if (get_bits1(gb)) { if (get_bits_left(gb) < 64*8) return AVERROR_INVALIDDATA; /* intra_quantiser_matrix */ ...
CVE-2018-1999015
{'CWE-125'}
2.9
{'https://github.com/FFmpeg/FFmpeg/commit/5aba5b89d0b1d73164d3b81764828bb8b20ff32a'}
nvd
FFmpeg before commit 5aba5b89d0b1d73164d3b81764828bb8b20ff32a contains an out of array read vulnerability in ASF_F format demuxer that can result in heap memory reading. This attack appear to be exploitable via specially crafted ASF file that has to provided as input. This vulnerability appears to have been fixed in 5a...
2018-07-23
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/5aba5b89d0b1d73164d3b81764828bb8b20ff32a
5aba5b89d0b1d73164d3b81764828bb8b20ff32a
SINGLE
['5aba5b89d0b1d73164d3b81764828bb8b20ff32a']
{'e37741d26a1ef2d07e2ccf4e1bc9699a12576111'}
5aba5b89d0b1d73164d3b81764828bb8b20ff32a
1
07/03/2018, 20:48:32
avcodec/mpeg4videodec: Check for bitstream end in read_quant_matrix_ext() Fixes: out of array read Fixes: asff-crash-0e53d0dc491dfdd507530b66562812fbd4c36678 Found-by: Paul Ch <paulcher@icloud.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer
{'com_1': {'author': 'wqazzz', 'datetime': '05/23/2020, 09:13:31', 'body': 'this is CVE-2018-1999015'}}
{'additions': 10, 'deletions': 1, 'total': 11}
[ { "additions": 10, "changes": 11, "deletions": 1, "patch": "@@ -2867,11 +2867,13 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)\n return 0;\n }\n \n-static void read_quant_matrix_ext(MpegEncContext *s, GetBitContext *gb)\n+static int read_quant_matrix_ext(MpegEncContext...
c
CWE-125
[ "libavcodec/mpeg4videodec.c" ]
libavcodec/mpeg4videodec.c
1
<?php /* Copyright (C) 2016 Laurent Destailleur <eldy@users.sourceforge.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * \file htdocs/public/notice.php * \brief Dolibarr page to show a notice. * ...
<?php /* Copyright (C) 2016-2018 Laurent Destailleur <eldy@users.sourceforge.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * \file htdocs/public/notice.php * \brief Dolibarr page to show a notice. *...
CVE-2018-19993
{'CWE-79'}
2.9
{'https://github.com/Dolibarr/dolibarr/commit/fc3fcc5455d9a610b85723e89e8be43a41ad1378'}
nvd
A reflected cross-site scripting (XSS) vulnerability in Dolibarr 8.0.2 allows remote attackers to inject arbitrary web script or HTML via the transphrase parameter to public/notice.php.
2019-01-03
1
https://github.com/Dolibarr/dolibarr
https://github.com/Dolibarr/dolibarr/commit/fc3fcc5455d9a610b85723e89e8be43a41ad1378
fc3fcc5455d9a610b85723e89e8be43a41ad1378
SINGLE
['fc3fcc5455d9a610b85723e89e8be43a41ad1378']
{'0f06e39d23636bd1e4039ac61a743c79725c798b'}
fc3fcc5455d9a610b85723e89e8be43a41ad1378
1
12/22/2018, 15:59:30
FIX CVE-2018-19993
Laurent Destailleur
null
{'additions': 7, 'deletions': 7, 'total': 14}
[ { "additions": 7, "changes": 14, "deletions": 7, "patch": "@@ -1,5 +1,5 @@\n <?php\n-/* Copyright (C) 2016\tLaurent Destailleur\t\t<eldy@users.sourceforge.net>\n+/* Copyright (C) 2016-2018\tLaurent Destailleur\t\t<eldy@users.sourceforge.net>\n *\n * This program is free software; you can redistrib...
php
CWE-79
[ "htdocs/public/notice.php" ]
htdocs/public/notice.php
1
function update($id, $user, $notrigger=false, $action='update') $sql.= ", barcode = ". (empty($this->barcode)?"null":"'".$this->db->escape($this->barcode)."'"); $sql.= ", fk_barcode_type = ". (empty($this->barcode_type)?"null":$this->db->escape($this->barcode_type)); $sql.= ", tosell = " . $this->status; ...
function update($id, $user, $notrigger=false, $action='update') $sql.= ", barcode = ". (empty($this->barcode)?"null":"'".$this->db->escape($this->barcode)."'"); $sql.= ", fk_barcode_type = ". (empty($this->barcode_type)?"null":$this->db->escape($this->barcode_type)); $sql.= ", tosell = " . (int) $this->statu...
CVE-2018-19994
{'CWE-89'}
6.4
{'https://github.com/Dolibarr/dolibarr/commit/850b939ffd2c7a4443649331b923d5e0da2d6446'}
nvd
An error-based SQL injection vulnerability in product/card.php in Dolibarr version 8.0.2 allows remote authenticated users to execute arbitrary SQL commands via the desiredstock parameter.
2019-01-03
1
https://github.com/Dolibarr/dolibarr
https://github.com/Dolibarr/dolibarr/commit/850b939ffd2c7a4443649331b923d5e0da2d6446
850b939ffd2c7a4443649331b923d5e0da2d6446
SINGLE
['850b939ffd2c7a4443649331b923d5e0da2d6446']
{'fc3fcc5455d9a610b85723e89e8be43a41ad1378'}
850b939ffd2c7a4443649331b923d5e0da2d6446
1
12/22/2018, 16:03:50
FIX CVE-2018-19994
Laurent Destailleur
null
{'additions': 7, 'deletions': 7, 'total': 14}
[ { "additions": 7, "changes": 14, "deletions": 7, "patch": "@@ -859,9 +859,9 @@ function update($id, $user, $notrigger=false, $action='update')\n \t\t\t$sql.= \", barcode = \". (empty($this->barcode)?\"null\":\"'\".$this->db->escape($this->barcode).\"'\");\n \t\t\t$sql.= \", fk_barcode_type = \". (em...
php
CWE-89
[ "htdocs/product/class/product.class.php" ]
htdocs/product/class/product.class.php
1
function add_image_form() { if ($group_id != 0) { $group_info = $usergroup->get($group_id); $interbreadcrumb[] = ['url' => '#', 'name' => $group_info['name']]; function add_image_form() { $socialForum = ''; $group_info = $usergroup->get($group_id); //Loading group information if (isset($_GET['status']) &&...
function add_image_form() { if ($group_id != 0) { $group_info = $usergroup->get($group_id); $group_info['name'] = Security::remove_XSS($group_info['name']); $group_info['description'] = Security::remove_XSS($group_info['description']); $interbreadcrumb[] = ['url' => '#', 'name' => $group_info['name']...
CVE-2018-20328
{'CWE-79'}
2.9
{'https://github.com/chamilo/chamilo-lms/commit/5e61c2b0fcc938ca687b8d4e593b1500aa52a034'}
nvd
Chamilo LMS version 1.11.8 contains XSS in main/social/group_view.php in the social groups tool, allowing authenticated users to affect other users, under specific conditions of permissions granted by administrators. This is considered "low risk" due to the nature of the feature it exploits.
2018-12-21
1
https://github.com/chamilo/chamilo-lms
https://github.com/chamilo/chamilo-lms/commit/5e61c2b0fcc938ca687b8d4e593b1500aa52a034
5e61c2b0fcc938ca687b8d4e593b1500aa52a034
SINGLE
['5e61c2b0fcc938ca687b8d4e593b1500aa52a034']
{'0af86dce4c81c52cbbf78c3ad54a63c448a36947'}
5e61c2b0fcc938ca687b8d4e593b1500aa52a034
1
12/03/2018, 18:40:27
Remove XSS from social groups page - refs #2746
Yannick Warnier
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -110,6 +110,8 @@ function add_image_form() {\n \n if ($group_id != 0) {\n $group_info = $usergroup->get($group_id);\n+ $group_info['name'] = Security::remove_XSS($group_info['name']);\n+ $group_info['description'] = Security::rem...
php
CWE-79
[ "main/social/group_view.php" ]
main/social/group_view.php
1
public static function getLimitFilterFromArray($limit) { $limitFilter = ''; if (!empty($limit) && is_array($limit)) { $limitStart = isset($limit['start']) ? $limit['start'] : 0; $limitLength = isset($limit['length']) ? $limit['length'] : 12; $limitFilter = 'LIMIT...
public static function getLimitFilterFromArray($limit) { $limitFilter = ''; if (!empty($limit) && is_array($limit)) { $limitStart = isset($limit['start']) ? (int) $limit['start'] : 0; $limitLength = isset($limit['length']) ? (int) $limit['length'] : 12; $limitFil...
CVE-2018-20329
{'CWE-89'}
4.9
{'https://github.com/chamilo/chamilo-lms/commit/bfa1eccfabb457b800618d9d115f12dc614a55df'}
nvd
Chamilo LMS version 1.11.8 contains a main/inc/lib/CoursesAndSessionsCatalog.class.php SQL injection, allowing users with access to the sessions catalogue (which may optionally be made public) to extract and/or modify database information.
2018-12-21
1
https://github.com/chamilo/chamilo-lms
https://github.com/chamilo/chamilo-lms/commit/bfa1eccfabb457b800618d9d115f12dc614a55df
bfa1eccfabb457b800618d9d115f12dc614a55df
SINGLE
['bfa1eccfabb457b800618d9d115f12dc614a55df']
{'40dd0447006126156cc67a25d93a3b45f2236920'}
bfa1eccfabb457b800618d9d115f12dc614a55df
1
12/17/2018, 15:11:45
Security: Fix SQL injection and likely future similar issues
Yannick Warnier
null
{'additions': 6, 'deletions': 2, 'total': 8}
[ { "additions": 6, "changes": 8, "deletions": 2, "patch": "@@ -215,8 +215,8 @@ public static function getLimitFilterFromArray($limit)\n {\n $limitFilter = '';\n if (!empty($limit) && is_array($limit)) {\n- $limitStart = isset($limit['start']) ? $limit['start'] : 0;\n- ...
php
CWE-89
[ "main/inc/lib/CoursesAndSessionsCatalog.class.php" ]
main/inc/lib/CoursesAndSessionsCatalog.class.php
1
typedef struct { } PyMemoEntry; typedef struct { Py_ssize_t mt_mask; Py_ssize_t mt_used; Py_ssize_t mt_allocated; PyMemoEntry *mt_table; } PyMemoTable; typedef struct UnpicklerObject { /* The unpickler memo is just an array of PyObject *s. Using a dict is unnecessary, since the keys are co...
typedef struct { } PyMemoEntry; typedef struct { size_t mt_mask; size_t mt_used; size_t mt_allocated; PyMemoEntry *mt_table; } PyMemoTable; typedef struct UnpicklerObject { /* The unpickler memo is just an array of PyObject *s. Using a dict is unnecessary, since the keys are contiguous int...
CVE-2018-20406
{'CWE-190'}
2.9
{'https://github.com/python/cpython/commit/a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd'}
nvd
Modules/_pickle.c in Python before 3.7.1 has an integer overflow via a large LONG_BINPUT value that is mishandled during a "resize to twice the size" attempt. This issue might cause memory exhaustion, but is only relevant if the pickle format is used for serializing tens or hundreds of gigabytes of data. This issue is ...
2018-12-23
1
https://github.com/python/cpython
https://github.com/python/cpython/commit/a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd
a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd
SINGLE
['a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd']
{'f14c28f39766855420dd58d209da4ad847f3030e'}
a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd
1
09/21/2018, 01:36:40
closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261)
Benjamin Peterson
null
{'additions': 31, 'deletions': 31, 'total': 62}
[ { "additions": 31, "changes": 62, "deletions": 31, "patch": "@@ -602,9 +602,9 @@ typedef struct {\n } PyMemoEntry;\n \n typedef struct {\n- Py_ssize_t mt_mask;\n- Py_ssize_t mt_used;\n- Py_ssize_t mt_allocated;\n+ size_t mt_mask;\n+ size_t mt_used;\n+ size_t mt_allocated;\n PyM...
c
CWE-190
[ "Modules/_pickle.c" ]
Modules/_pickle.c
1
static int parseOperand(RAsm *a, const char *str, Operand *op, bool isrepop) { if (last_type == TT_SPECIAL) { if (str[pos] == '+' || str[pos] == '-' || str[pos] == ']') { if (reg != X86R_UNDEFINED) { op->regs[reg_index] = reg; op->scale[reg_index] = temp; ++reg_index; } else { ...
static int parseOperand(RAsm *a, const char *str, Operand *op, bool isrepop) { if (last_type == TT_SPECIAL) { if (str[pos] == '+' || str[pos] == '-' || str[pos] == ']') { if (reg != X86R_UNDEFINED) { if (reg_index < 2) { op->regs[reg_index] = reg; op->scale[reg_index] = temp; } ...
CVE-2018-20455
{'CWE-787'}
2.9
{'https://github.com/radare/radare2/commit/9b46d38dd3c4de6048a488b655c7319f845af185'}
nvd
In radare2 prior to 3.1.1, the parseOperand function inside libr/asm/p/asm_x86_nz.c may allow attackers to cause a denial of service (application crash via a stack-based buffer overflow) by crafting an input file, a related issue to CVE-2018-20456.
2018-12-25
1
https://github.com/radare/radare2
https://github.com/radare/radare2/commit/9b46d38dd3c4de6048a488b655c7319f845af185
9b46d38dd3c4de6048a488b655c7319f845af185
SINGLE
['9b46d38dd3c4de6048a488b655c7319f845af185']
{'cd4d226059bd70df4918f445ba3e14027130f827'}
9b46d38dd3c4de6048a488b655c7319f845af185
1
12/03/2018, 00:46:58
Fix #12372 and #12373 - Crash in x86 assembler (#12380) 0 ,0,[bP-bL-bP-bL-bL-r-bL-bP-bL-bL- mov ,0,[ax+Bx-ax+Bx-ax+ax+Bx-ax+Bx-- leA ,0,[bP-bL-bL-bP-bL-bP-bL-60@bL- leA ,0,[bP-bL-r-bP-bL-bP-bL-60@bL- mov ,0,[ax+Bx-ax+Bx-ax+ax+Bx-ax+Bx--
radare
null
{'additions': 7, 'deletions': 4, 'total': 11}
[ { "additions": 7, "changes": 11, "deletions": 4, "patch": "@@ -4575,14 +4575,17 @@ static int parseOperand(RAsm *a, const char *str, Operand *op, bool isrepop) {\n \t\t\tif (last_type == TT_SPECIAL) {\n \t\t\t\tif (str[pos] == '+' || str[pos] == '-' || str[pos] == ']') {\n \t\t\t\t\tif (reg != X86R_...
c
CWE-787
[ "libr/asm/p/asm_x86_nz.c" ]
libr/asm/p/asm_x86_nz.c
1
/* radare - LGPL - Copyright 2010-2016 - nibble, pancake */ #include <stdio.h> #include <r_types.h> static int r_bin_dyldcache_apply_patch (struct r_buf_t* buf, ut32 data, ut64 off #define NZ_OFFSET(x) if((x) > 0) r_bin_dyldcache_apply_patch (dbuf, (x) - linkedit_offset, (ut64)((size_t)&(x) - (size_t)data)) /* TOD...
/* radare - LGPL - Copyright 2010-2018 - nibble, pancake */ #include <stdio.h> #include <r_types.h> static int r_bin_dyldcache_apply_patch (struct r_buf_t* buf, ut32 data, ut64 off #define NZ_OFFSET(x) if((x) > 0) r_bin_dyldcache_apply_patch (dbuf, (x) - linkedit_offset, (ut64)((size_t)&(x) - (size_t)data)) // mak...
CVE-2018-20458
{'CWE-125'}
2.9
{'https://github.com/radareorg/radare2/commit/30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19'}
nvd
In radare2 prior to 3.1.1, r_bin_dyldcache_extract in libr/bin/format/mach0/dyldcache.c may allow attackers to cause a denial-of-service (application crash caused by out-of-bounds read) by crafting an input file.
2018-12-25
1
https://github.com/radareorg/radare2
https://github.com/radareorg/radare2/commit/30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19
30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19
SINGLE
['30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19']
{'9b46d38dd3c4de6048a488b655c7319f845af185'}
30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19
1
12/03/2018, 01:03:00
Fix #12374 - oobread crash in truncated dyldcache ##bin (#12381)
radare
null
{'additions': 35, 'deletions': 12, 'total': 47}
[ { "additions": 35, "changes": 47, "deletions": 12, "patch": "@@ -1,4 +1,4 @@\n-/* radare - LGPL - Copyright 2010-2016 - nibble, pancake */\n+/* radare - LGPL - Copyright 2010-2018 - nibble, pancake */\n \n #include <stdio.h>\n #include <r_types.h>\n@@ -21,6 +21,23 @@ static int r_bin_dyldcache_app...
c
CWE-125
[ "libr/bin/format/mach0/dyldcache.c" ]
libr/bin/format/mach0/dyldcache.c
1
static bool parseOperands(char* str, ArmOp *op) { while (token[0] == ' ') { token++; } op->operands[operand].type = ARM_NOTYPE; op->operands[operand].reg_type = ARM_UNDEFINED; op->operands[operand].shift = ARM_NO_SHIFT;
static bool parseOperands(char* str, ArmOp *op) { while (token[0] == ' ') { token++; } if (operand >= MAX_OPERANDS) { eprintf ("Too many operands\n"); return false; } op->operands[operand].type = ARM_NOTYPE; op->operands[operand].reg_type = ARM_UNDEFINED; op->operands[operand].shift = ARM_NO_SHI...
CVE-2018-20460
{'CWE-787'}
2.9
{'https://github.com/radare/radare2/commit/df167c7db545953bb7f71c72e98e7a3ca0c793bf'}
nvd
In radare2 prior to 3.1.2, the parseOperands function in libr/asm/arch/arm/armass64.c allows attackers to cause a denial-of-service (application crash caused by stack-based buffer overflow) by crafting an input file.
2018-12-25
1
https://github.com/radare/radare2
https://github.com/radare/radare2/commit/df167c7db545953bb7f71c72e98e7a3ca0c793bf
df167c7db545953bb7f71c72e98e7a3ca0c793bf
SINGLE
['df167c7db545953bb7f71c72e98e7a3ca0c793bf']
{'a66d2556a0293ce0963292423ddb845336b4b6f8'}
df167c7db545953bb7f71c72e98e7a3ca0c793bf
1
12/03/2018, 14:29:26
Fix #12376 - crash in: rasm2 -a arm -b 64 '0 ,0,0,0,0,0,0,'
pancake
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -737,6 +737,10 @@ static bool parseOperands(char* str, ArmOp *op) {\n \t\twhile (token[0] == ' ') {\n \t\t\ttoken++;\n \t\t}\n+\t\tif (operand >= MAX_OPERANDS) {\n+\t\t\teprintf (\"Too many operands\\n\");\n+\t\t\treturn false;\n+\t\t}\n \...
c
CWE-787
[ "libr/asm/arch/arm/armass64.c" ]
libr/asm/arch/arm/armass64.c
1
static void core_anal_bytes(RCore *core, const ut8 *buf, int len, int nops, int } #endif printline ("bytes", NULL, 0); for (j = 0; j < size; j++) { r_cons_printf ("%02x", buf[j + idx]); } r_cons_newline (); if (op.val != UT64_MAX) printline ("val", "0x%08" PFMT64x "\n", op.val); if (op.ptr...
static void core_anal_bytes(RCore *core, const ut8 *buf, int len, int nops, int } #endif printline ("bytes", NULL, 0); int minsz = R_MIN (len, size); minsz = R_MAX (minsz, 0); for (j = 0; j < minsz; j++) { ut8 ch = ((j + idx - 1) > minsz)? 0xff: buf[j + idx]; r_cons_printf ("%02x", ch); } ...
CVE-2018-20461
{'CWE-125'}
2.9
{'https://github.com/radare/radare2/commit/a1bc65c3db593530775823d6d7506a457ed95267'}
nvd
In radare2 prior to 3.1.1, core_anal_bytes in libr/core/cmd_anal.c allows attackers to cause a denial-of-service (application crash caused by out-of-bounds read) by crafting a binary file.
2018-12-25
1
https://github.com/radare/radare2
https://github.com/radare/radare2/commit/a1bc65c3db593530775823d6d7506a457ed95267
a1bc65c3db593530775823d6d7506a457ed95267
SINGLE
['a1bc65c3db593530775823d6d7506a457ed95267']
{'77e838e3d617b3d05a1b4d97f20df8b64815232e'}
a1bc65c3db593530775823d6d7506a457ed95267
1
12/03/2018, 01:54:37
Fix #12375 - Crash in bd+ao (#12382)
radare
null
{'additions': 11, 'deletions': 5, 'total': 16}
[ { "additions": 11, "changes": 16, "deletions": 5, "patch": "@@ -1568,16 +1568,22 @@ static void core_anal_bytes(RCore *core, const ut8 *buf, int len, int nops, int\n \t\t\t}\n #endif\n \t\t\tprintline (\"bytes\", NULL, 0);\n-\t\t\tfor (j = 0; j < size; j++) {\n-\t\t\t\tr_cons_printf (\"%02x\", buf[j...
c
CWE-125
[ "libr/core/cmd_anal.c" ]
libr/core/cmd_anal.c
1
static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) case SIOCFINDIPDDPRT: spin_lock_bh(&ipddp_route_lock); rp = __ipddp_find_route(&rcp); if (rp) memcpy(&rcp2, rp, sizeof(rcp2)); spin_unlock_bh(&ipddp_route_lock); if (rp) {
static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) case SIOCFINDIPDDPRT: spin_lock_bh(&ipddp_route_lock); rp = __ipddp_find_route(&rcp); if (rp) { memset(&rcp2, 0, sizeof(rcp2)); rcp2.ip = rp->ip; rcp2.at = rp->at; rcp2.flags = rp->flags; } s...
CVE-2018-20511
{'CWE-200'}
2.9
{'https://github.com/torvalds/linux/commit/9824dfae5741275473a23a7ed5756c7b6efacc9d'}
nvd
An issue was discovered in the Linux kernel before 4.18.11. The ipddp_ioctl function in drivers/net/appletalk/ipddp.c allows local users to obtain sensitive kernel address information by leveraging CAP_NET_ADMIN to read the ipddp_route dev and next fields via an SIOCFINDIPDDPRT ioctl call.
2018-12-27
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/9824dfae5741275473a23a7ed5756c7b6efacc9d
9824dfae5741275473a23a7ed5756c7b6efacc9d
SINGLE
['9824dfae5741275473a23a7ed5756c7b6efacc9d']
{'018349d70f28a78d5343b3660cb66e1667005f8a'}
9824dfae5741275473a23a7ed5756c7b6efacc9d
1
09/12/2018, 05:36:35
net/appletalk: fix minor pointer leak to userspace in SIOCFINDIPDDPRT Fields ->dev and ->next of struct ipddp_route may be copied to userspace on the SIOCFINDIPDDPRT ioctl. This is only accessible to CAP_NET_ADMIN though. Let's manually copy the relevant fields instead of using memcpy(). BugLink: http://blog.infosect...
Willy Tarreau
null
{'additions': 6, 'deletions': 2, 'total': 8}
[ { "additions": 6, "changes": 8, "deletions": 2, "patch": "@@ -283,8 +283,12 @@ static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)\n case SIOCFINDIPDDPRT:\n \t\t\tspin_lock_bh(&ipddp_route_lock);\n \t\t\trp = __ipddp_find_route(&rcp);\n-\t\t\tif (rp)\n-\t\t\t\t...
c
CWE-200
[ "drivers/net/appletalk/ipddp.c" ]
drivers/net/appletalk/ipddp.c
1
* This library is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What the Fuck You Want * to Public License, Version 2, as published by Sam Hocevar. See * http://www.wtfpl.net/ for more details. ...
* This library is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What the Fuck You Want * to Public License, Version 2, as published by the WTFPL Task Force. * See http://www.wtfpl.net/ for more d...
CVE-2018-20546
{'CWE-190'}
4.9
{'https://github.com/cacalabs/libcaca/commit/1022d97496c7899e8641515af363381b31ae2f05'}
nvd
There is an illegal READ memory access at caca/dither.c (function get_rgba_default) in libcaca 0.99.beta19 for the default bpp case.
2018-12-28
1
https://github.com/cacalabs/libcaca
https://github.com/cacalabs/libcaca/commit/1022d97496c7899e8641515af363381b31ae2f05
1022d97496c7899e8641515af363381b31ae2f05
SINGLE
['1022d97496c7899e8641515af363381b31ae2f05']
{'3e52dabe3e64dc50f4422effe364a1457a8a8592'}
1022d97496c7899e8641515af363381b31ae2f05
1
12/30/2018, 12:18:27
dither: fix integer multiplication overflow that caused crashes. Fixes: #38 (CVE-2018-20546) Fixes: #39 (CVE-2018-20547)
Sam Hocevar
null
{'additions': 3, 'deletions': 3, 'total': 6}
[ { "additions": 3, "changes": 6, "deletions": 3, "patch": "@@ -6,8 +6,8 @@\n * This library is free software. It comes without any warranty, to\n * the extent permitted by applicable law. You can redistribute it\n * and/or modify it under the terms of the Do What the Fuck You Want\n- * to Publ...
c
CWE-190
[ "caca/dither.c" ]
caca/dither.c
1
char *rfbProcessFileTransferReadBuffer(rfbClientPtr cl, uint32_t length) int n=0; FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN("", cl, NULL); /* rfbLog("rfbProcessFileTransferReadBuffer(%dlen)\n", length); */ if (length>0) { buffer=malloc((uint64_t)length+1); if (buffer!=NULL) { ...
char *rfbProcessFileTransferReadBuffer(rfbClientPtr cl, uint32_t length) int n=0; FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN("", cl, NULL); /* We later alloc length+1, which might wrap around on 32-bit systems if length equals 0XFFFFFFFF, i.e. SIZE_MAX for 32-bit systems. On 64-bit systems, a l...
CVE-2018-20749
{'CWE-787'}
6.4
{'https://github.com/LibVNC/libvncserver/commit/15bb719c03cc70f14c36a843dcb16ed69b405707'}
nvd
LibVNC before 0.9.12 contains a heap out-of-bounds write vulnerability in libvncserver/rfbserver.c. The fix for CVE-2018-15127 was incomplete.
2019-01-30
1
https://github.com/LibVNC/libvncserver
https://github.com/LibVNC/libvncserver/commit/15bb719c03cc70f14c36a843dcb16ed69b405707
15bb719c03cc70f14c36a843dcb16ed69b405707
SINGLE
['15bb719c03cc70f14c36a843dcb16ed69b405707']
{'a64c3b37af9a6c8f8009d7516874b8d266b42bae'}
15bb719c03cc70f14c36a843dcb16ed69b405707
1
01/06/2019, 14:13:56
Error out in rfbProcessFileTransferReadBuffer if length can not be allocated re #273
Christian Beier
null
{'additions': 12, 'deletions': 2, 'total': 14}
[ { "additions": 12, "changes": 14, "deletions": 2, "patch": "@@ -1461,11 +1461,21 @@ char *rfbProcessFileTransferReadBuffer(rfbClientPtr cl, uint32_t length)\n int n=0;\n \n FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN(\"\", cl, NULL);\n+\n /*\n- rfbLog(\"rfbProcessFileTransferReadBuffer(%dl...
c
CWE-787
[ "libvncserver/rfbserver.c" ]
libvncserver/rfbserver.c
1
#include <errno.h> /* strftime() */ #include <time.h> #ifdef LIBVNCSERVER_WITH_WEBSOCKETS #include "rfbssl.h" char *rfbProcessFileTransferReadBuffer(rfbClientPtr cl, uint32_t length) 0XFFFFFFFF, i.e. SIZE_MAX for 32-bit systems. On 64-bit systems, a length of 0XFFFFFFFF will safely be allocated since th...
#include <errno.h> /* strftime() */ #include <time.h> /* INT_MAX */ #include <limits.h> #ifdef LIBVNCSERVER_WITH_WEBSOCKETS #include "rfbssl.h" char *rfbProcessFileTransferReadBuffer(rfbClientPtr cl, uint32_t length) 0XFFFFFFFF, i.e. SIZE_MAX for 32-bit systems. On 64-bit systems, a length of 0XFFFFFFFF ...
CVE-2018-20750
{'CWE-787'}
6.4
{'https://github.com/LibVNC/libvncserver/commit/09e8fc02f59f16e2583b34fe1a270c238bd9ffec'}
nvd
LibVNC through 0.9.12 contains a heap out-of-bounds write vulnerability in libvncserver/rfbserver.c. The fix for CVE-2018-15127 was incomplete.
2019-01-30
1
https://github.com/LibVNC/libvncserver
https://github.com/LibVNC/libvncserver/commit/09e8fc02f59f16e2583b34fe1a270c238bd9ffec
09e8fc02f59f16e2583b34fe1a270c238bd9ffec
SINGLE
['09e8fc02f59f16e2583b34fe1a270c238bd9ffec']
{'0a70095271d845d16a3ed17354841b01f33963ad'}
09e8fc02f59f16e2583b34fe1a270c238bd9ffec
1
01/07/2019, 09:40:01
Limit lenght to INT_MAX bytes in rfbProcessFileTransferReadBuffer() This ammends 15bb719c03cc70f14c36a843dcb16ed69b405707 fix for a heap out-of-bound write access in rfbProcessFileTransferReadBuffer() when reading a transfered file content in a server. The former fix did not work on platforms with a 32-bit int type (e...
Petr Písař
null
{'additions': 6, 'deletions': 1, 'total': 7}
[ { "additions": 6, "changes": 7, "deletions": 1, "patch": "@@ -88,6 +88,8 @@\n #include <errno.h>\n /* strftime() */\n #include <time.h>\n+/* INT_MAX */\n+#include <limits.h>\n \n #ifdef LIBVNCSERVER_WITH_WEBSOCKETS\n #include \"rfbssl.h\"\n@@ -1472,8 +1474,11 @@ char *rfbProcessFileTransferReadBuffe...
c
CWE-787
[ "libvncserver/rfbserver.c" ]
libvncserver/rfbserver.c
1
char *gf_text_get_utf8_line(char *szLine, u32 lineSize, FILE *txt_in, s32 unicod } sptr = (u16 *)szLine; i = (u32) gf_utf8_wcstombs(szLineConv, 1024, (const unsigned short **) &sptr); szLineConv[i] = 0; strcpy(szLine, szLineConv); /*this is ugly indeed: since input is UTF16-LE, there are many chances the fgets n...
char *gf_text_get_utf8_line(char *szLine, u32 lineSize, FILE *txt_in, s32 unicod } sptr = (u16 *)szLine; i = (u32) gf_utf8_wcstombs(szLineConv, 1024, (const unsigned short **) &sptr); if (i >= (u32)ARRAY_LENGTH(szLineConv)) return NULL; szLineConv[i] = 0; strcpy(szLine, szLineConv); /*this is ugly indeed: sin...
CVE-2018-20760
{'CWE-787'}
6.4
{'https://github.com/gpac/gpac/commit/4c1360818fc8948e9307059fba4dc47ba8ad255d'}
nvd
In GPAC 0.7.1 and earlier, gf_text_get_utf8_line in media_tools/text_import.c in libgpac_static.a allows an out-of-bounds write because a certain -1 return value is mishandled.
2019-02-06
1
https://github.com/gpac/gpac
https://github.com/gpac/gpac/commit/4c1360818fc8948e9307059fba4dc47ba8ad255d
4c1360818fc8948e9307059fba4dc47ba8ad255d
SINGLE
['4c1360818fc8948e9307059fba4dc47ba8ad255d']
{'4e318a273eed7029889a811ec2157c95fc2beff6'}
4c1360818fc8948e9307059fba4dc47ba8ad255d
1
12/13/2018, 13:39:21
check error code on call to gf_utf8_wcstombs (#1177)
Aurelien David
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -269,6 +269,8 @@ char *gf_text_get_utf8_line(char *szLine, u32 lineSize, FILE *txt_in, s32 unicod\n \t}\n \tsptr = (u16 *)szLine;\n \ti = (u32) gf_utf8_wcstombs(szLineConv, 1024, (const unsigned short **) &sptr);\n+\tif (i >= (u32)ARRAY_LE...
c
CWE-787
[ "src/media_tools/text_import.c" ]
src/media_tools/text_import.c
1
bool read_ujpg( void ) Sirikata::BrotliCodec::Decompress(compressed_header_buffer.data(), compressed_header_buffer.size(), JpegAllocator<uint8_t>(), ...
bool read_ujpg( void ) Sirikata::BrotliCodec::Decompress(compressed_header_buffer.data(), compressed_header_buffer.size(), JpegAllocator<uint8_t>(), ...
CVE-2018-20820
{'CWE-190'}
2.9
{'https://github.com/dropbox/lepton/commit/6a5ceefac1162783fffd9506a3de39c85c725761'}
nvd
read_ujpg in jpgcoder.cc in Dropbox Lepton 1.2.1 allows attackers to cause a denial-of-service (application runtime crash because of an integer overflow) via a crafted file.
2019-04-23
1
https://github.com/dropbox/lepton
https://github.com/dropbox/lepton/commit/6a5ceefac1162783fffd9506a3de39c85c725761
6a5ceefac1162783fffd9506a3de39c85c725761
SINGLE
['6a5ceefac1162783fffd9506a3de39c85c725761']
{'0b9967ec13b2c95771fa3da30bcc49d2fc055bfe'}
6a5ceefac1162783fffd9506a3de39c85c725761
1
04/09/2019, 23:32:33
fix #111
Daniel Reiter Horn
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -4163,7 +4163,7 @@ bool read_ujpg( void )\n Sirikata::BrotliCodec::Decompress(compressed_header_buffer.data(),\n compressed_header_buffer.size(),...
cc
CWE-190
[ "src/lepton/jpgcoder.cc" ]
src/lepton/jpgcoder.cc
1
static void smp_task_timedout(struct timer_list *t) unsigned long flags; spin_lock_irqsave(&task->task_state_lock, flags); if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) task->task_state_flags |= SAS_TASK_STATE_ABORTED; spin_unlock_irqrestore(&task->task_state_lock, flags); complete(&task->slow_task->co...
static void smp_task_timedout(struct timer_list *t) unsigned long flags; spin_lock_irqsave(&task->task_state_lock, flags); if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) { task->task_state_flags |= SAS_TASK_STATE_ABORTED; complete(&task->slow_task->completion); } spin_unlock_irqrestore(&task->task_stat...
CVE-2018-20836
{'CWE-416', 'CWE-362'}
10
{'https://github.com/torvalds/linux/commit/b90cd6f2b905905fb42671009dc0e27c310a16ae'}
nvd
An issue was discovered in the Linux kernel before 4.20. There is a race condition in smp_task_timedout() and smp_task_done() in drivers/scsi/libsas/sas_expander.c, leading to a use-after-free.
2019-05-07
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b90cd6f2b905905fb42671009dc0e27c310a16ae
b90cd6f2b905905fb42671009dc0e27c310a16ae
SINGLE
['b90cd6f2b905905fb42671009dc0e27c310a16ae']
{'437207d3697f500f34f126a8ab1c29417ba4a184'}
b90cd6f2b905905fb42671009dc0e27c310a16ae
1
09/25/2018, 02:56:54
scsi: libsas: fix a race condition when smp task timeout When the lldd is processing the complete sas task in interrupt and set the task stat as SAS_TASK_STATE_DONE, the smp timeout timer is able to be triggered at the same time. And smp_task_timedout() will complete the task wheter the SAS_TASK_STATE_DONE is set or n...
Jason Yan
null
{'additions': 4, 'deletions': 5, 'total': 9}
[ { "additions": 4, "changes": 9, "deletions": 5, "patch": "@@ -48,17 +48,16 @@ static void smp_task_timedout(struct timer_list *t)\n \tunsigned long flags;\n \n \tspin_lock_irqsave(&task->task_state_lock, flags);\n-\tif (!(task->task_state_flags & SAS_TASK_STATE_DONE))\n+\tif (!(task->task_state_flag...
c
CWE-416
[ "drivers/scsi/libsas/sas_expander.c" ]
drivers/scsi/libsas/sas_expander.c
1
static void smp_task_timedout(struct timer_list *t) unsigned long flags; spin_lock_irqsave(&task->task_state_lock, flags); if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) task->task_state_flags |= SAS_TASK_STATE_ABORTED; spin_unlock_irqrestore(&task->task_state_lock, flags); complete(&task->slow_task->co...
static void smp_task_timedout(struct timer_list *t) unsigned long flags; spin_lock_irqsave(&task->task_state_lock, flags); if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) { task->task_state_flags |= SAS_TASK_STATE_ABORTED; complete(&task->slow_task->completion); } spin_unlock_irqrestore(&task->task_stat...
CVE-2018-20836
{'CWE-416', 'CWE-362'}
10
{'https://github.com/torvalds/linux/commit/b90cd6f2b905905fb42671009dc0e27c310a16ae'}
nvd
An issue was discovered in the Linux kernel before 4.20. There is a race condition in smp_task_timedout() and smp_task_done() in drivers/scsi/libsas/sas_expander.c, leading to a use-after-free.
2019-05-07
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b90cd6f2b905905fb42671009dc0e27c310a16ae
b90cd6f2b905905fb42671009dc0e27c310a16ae
SINGLE
['b90cd6f2b905905fb42671009dc0e27c310a16ae']
{'437207d3697f500f34f126a8ab1c29417ba4a184'}
b90cd6f2b905905fb42671009dc0e27c310a16ae
1
09/25/2018, 02:56:54
scsi: libsas: fix a race condition when smp task timeout When the lldd is processing the complete sas task in interrupt and set the task stat as SAS_TASK_STATE_DONE, the smp timeout timer is able to be triggered at the same time. And smp_task_timedout() will complete the task wheter the SAS_TASK_STATE_DONE is set or n...
Jason Yan
null
{'additions': 4, 'deletions': 5, 'total': 9}
[ { "additions": 4, "changes": 9, "deletions": 5, "patch": "@@ -48,17 +48,16 @@ static void smp_task_timedout(struct timer_list *t)\n \tunsigned long flags;\n \n \tspin_lock_irqsave(&task->task_state_lock, flags);\n-\tif (!(task->task_state_flags & SAS_TASK_STATE_DONE))\n+\tif (!(task->task_state_flag...
c
CWE-362
[ "drivers/scsi/libsas/sas_expander.c" ]
drivers/scsi/libsas/sas_expander.c
1
public function AddHidden(){ echo '<tr><th colspan="2">'.$langmessage['options'].'</th></tr>'; //title echo '<tr><td>'; echo $langmessage['label']; echo '</td><td>'; echo '<input type="text" name="title" maxlength="100" size="50" value="'.htmlspecialchars($_REQUEST['title']).'" class="gpinput full_width" ...
public function AddHidden(){ echo '<tr><th colspan="2">'.$langmessage['options'].'</th></tr>'; //title $new_title = htmlspecialchars($_REQUEST['title']); // prevent code injections $new_title = str_replace(array('=', '/', '{', '}', ':', ',', ';'), '', $new_title); echo '<tr><td>'; echo $langmessage['lab...
CVE-2018-20837
{'CWE-79'}
2.9
{'https://github.com/Typesetter/Typesetter/commit/fd637e2919e7f77c498a91a8e9d353f8e12afc9a'}
nvd
include/admin/Menu/Ajax.php in Typesetter 5.1 has index.php/Admin/Menu/Ajax?cmd=AddHidden title XSS.
2019-05-09
1
https://github.com/Typesetter/Typesetter
https://github.com/Typesetter/Typesetter/commit/fd637e2919e7f77c498a91a8e9d353f8e12afc9a
fd637e2919e7f77c498a91a8e9d353f8e12afc9a
SINGLE
['fd637e2919e7f77c498a91a8e9d353f8e12afc9a']
{'e851c39db6a9af30f9c4c419674e7b505ad6f8a0'}
fd637e2919e7f77c498a91a8e9d353f8e12afc9a
1
05/23/2018, 19:55:50
prevent code injection (XSS) fix for reflected XSS vulnerability spotted by Mithat Gögebakan, www.netsparker.com
juek
{'com_1': {'author': 'fgeek', 'datetime': '05/08/2019, 08:56:47', 'body': 'Can you make a new release, which includes this fix thank you?'}}
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -155,10 +155,13 @@ public function AddHidden(){\n \t\techo '<tr><th colspan=\"2\">'.$langmessage['options'].'</th></tr>';\n \n \t\t//title\n+\t\t$new_title = htmlspecialchars($_REQUEST['title']);\n+\t\t// prevent code injections\n+\t\t$new...
php
CWE-79
[ "include/admin/Menu/Ajax.php" ]
include/admin/Menu/Ajax.php
1
static opj_bool pi_next_rpcl(opj_pi_iterator_t * pi) try1 = int_ceildiv(pi->ty1, comp->dy << levelno); rpx = res->pdx + levelno; rpy = res->pdy + levelno; if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ...
static opj_bool pi_next_rpcl(opj_pi_iterator_t * pi) try1 = int_ceildiv(pi->ty1, comp->dy << levelno); rpx = res->pdx + levelno; rpy = res->pdy + levelno; /* To avoid divisions by zero / undefined behaviour on shift */ ...
CVE-2018-20845
{'CWE-369'}
2.9
{'https://github.com/uclouvain/openjpeg/pull/1168/commits/c5bd64ea146162967c29bd2af0cbb845ba3eaaaf'}
nvd
Division-by-zero vulnerabilities in the functions pi_next_pcrl, pi_next_cprl, and pi_next_rpcl in openmj2/pi.c in OpenJPEG through 2.3.0 allow remote attackers to cause a denial of service (application crash).
2019-06-26
1
https://github.com/uclouvain/openjpeg
https://github.com/uclouvain/openjpeg/pull/1168/commits/c5bd64ea146162967c29bd2af0cbb845ba3eaaaf
c5bd64ea146162967c29bd2af0cbb845ba3eaaaf
SINGLE
['c5bd64ea146162967c29bd2af0cbb845ba3eaaaf']
{'92023cd6c377e0384a7725949b25655d4d94dced'}
c5bd64ea146162967c29bd2af0cbb845ba3eaaaf
1
11/23/2018, 06:47:36
[MJ2] To avoid divisions by zero / undefined behaviour on shift Signed-off-by: Young_X <YangX92@hotmail.com>
Young_X
null
{'additions': 21, 'deletions': 0, 'total': 21}
[ { "additions": 21, "changes": 21, "deletions": 0, "patch": "@@ -224,6 +224,13 @@ static opj_bool pi_next_rpcl(opj_pi_iterator_t * pi)\n try1 = int_ceildiv(pi->ty1, comp->dy << levelno);\n rpx = res->pdx + levelno;\n rpy = res->pdy + levelno...
c
CWE-369
[ "src/lib/openmj2/pi.c" ]
src/lib/openmj2/pi.c
1
static opj_bool pi_next_cprl(opj_pi_iterator_t * pi); ========================================================== */ static opj_bool pi_next_lrcp(opj_pi_iterator_t * pi) { opj_pi_comp_t *comp = NULL; static opj_bool pi_next_lrcp(opj_pi_iterator_t * pi) for (pi->precno = pi->poc.precno0; pi->precno ...
static opj_bool pi_next_cprl(opj_pi_iterator_t * pi); ========================================================== */ static void opj_pi_emit_error(opj_pi_iterator_t * pi, const char* msg) { (void)pi; (void)msg; } static opj_bool pi_next_lrcp(opj_pi_iterator_t * pi) { opj_pi_comp_t *comp = NULL; static opj...
CVE-2018-20846
{'CWE-20'}
2.9
{'https://github.com/uclouvain/openjpeg/pull/1168/commits/c277159986c80142180fbe5efb256bbf3bdf3edc'}
nvd
Out-of-bounds accesses in the functions pi_next_lrcp, pi_next_rlcp, pi_next_rpcl, pi_next_pcrl, pi_next_rpcl, and pi_next_cprl in openmj2/pi.c in OpenJPEG through 2.3.0 allow remote attackers to cause a denial of service (application crash).
2019-06-26
1
https://github.com/uclouvain/openjpeg
https://github.com/uclouvain/openjpeg/pull/1168/commits/c277159986c80142180fbe5efb256bbf3bdf3edc
c277159986c80142180fbe5efb256bbf3bdf3edc
SINGLE
['c277159986c80142180fbe5efb256bbf3bdf3edc']
{'46822d0eddc3324b2a056bc60ffa997027bebd66'}
c277159986c80142180fbe5efb256bbf3bdf3edc
1
11/23/2018, 08:12:53
[MJ2] Avoid index out of bounds access to pi->include[] Signed-off-by: Young_X <YangX92@hotmail.com>
Young_X
{'com_1': {'author': 'rouault', 'datetime': '03/29/2019, 09:46:46', 'body': "@Young-X I had to revert that commit in e1740e7ce79d0a1676db4da0f4189b64e85f52cb since it didn't compile. I'm disappointed you submit commits that don't even compile..."}}
{'additions': 31, 'deletions': 0, 'total': 31}
[ { "additions": 31, "changes": 31, "deletions": 0, "patch": "@@ -85,6 +85,12 @@ static opj_bool pi_next_cprl(opj_pi_iterator_t * pi);\n ==========================================================\n */\n \n+static void opj_pi_emit_error(opj_pi_iterator_t * pi, const char* msg)\n+{\n+ (void)pi;\n+ ...
c
CWE-20
[ "src/lib/openmj2/pi.c" ]
src/lib/openmj2/pi.c
1
static struct phy *serdes_simple_xlate(struct device *dev, port = args->args[0]; idx = args->args[1]; for (i = 0; i <= SERDES_MAX; i++) { struct serdes_macro *macro = phy_get_drvdata(ctrl->phys[i]); if (idx != macro->idx) static int serdes_probe(struct platform_device *pdev) if (IS_ERR(ctrl->regs)) return ...
static struct phy *serdes_simple_xlate(struct device *dev, port = args->args[0]; idx = args->args[1]; for (i = 0; i < SERDES_MAX; i++) { struct serdes_macro *macro = phy_get_drvdata(ctrl->phys[i]); if (idx != macro->idx) static int serdes_probe(struct platform_device *pdev) if (IS_ERR(ctrl->regs)) return P...
CVE-2018-20854
{'CWE-125'}
6.4
{'https://github.com/torvalds/linux/commit/6acb47d1a318e5b3b7115354ebc4ea060c59d3a1'}
nvd
An issue was discovered in the Linux kernel before 4.20. drivers/phy/mscc/phy-ocelot-serdes.c has an off-by-one error with a resultant ctrl->phys out-of-bounds read.
2019-07-26
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/6acb47d1a318e5b3b7115354ebc4ea060c59d3a1
6acb47d1a318e5b3b7115354ebc4ea060c59d3a1
SINGLE
['6acb47d1a318e5b3b7115354ebc4ea060c59d3a1']
{'81fa7a69c2174ed8de314b9c231ef30a8718e5e1'}
6acb47d1a318e5b3b7115354ebc4ea060c59d3a1
1
10/19/2018, 09:21:38
phy: ocelot-serdes: fix out-of-bounds read Currently, there is an out-of-bounds read on array ctrl->phys, once variable i reaches the maximum array size of SERDES_MAX in the for loop. Fix this by changing the condition in the for loop from i <= SERDES_MAX to i < SERDES_MAX. Addresses-Coverity-ID: 1473966 ("Out-of-bo...
Gustavo A. R. Silva
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -206,7 +206,7 @@ static struct phy *serdes_simple_xlate(struct device *dev,\n \tport = args->args[0];\n \tidx = args->args[1];\n \n-\tfor (i = 0; i <= SERDES_MAX; i++) {\n+\tfor (i = 0; i < SERDES_MAX; i++) {\n \t\tstruct serdes_macro *mac...
c
CWE-125
[ "drivers/phy/mscc/phy-ocelot-serdes.c" ]
drivers/phy/mscc/phy-ocelot-serdes.c
1
static int create_qp_common(struct mlx5_ib_dev *dev, struct ib_pd *pd, struct mlx5_ib_resources *devr = &dev->devr; int inlen = MLX5_ST_SZ_BYTES(create_qp_in); struct mlx5_core_dev *mdev = dev->mdev; struct mlx5_ib_create_qp_resp resp; struct mlx5_ib_cq *send_cq; struct mlx5_ib_cq *recv_cq; unsigned long flags;
static int create_qp_common(struct mlx5_ib_dev *dev, struct ib_pd *pd, struct mlx5_ib_resources *devr = &dev->devr; int inlen = MLX5_ST_SZ_BYTES(create_qp_in); struct mlx5_core_dev *mdev = dev->mdev; struct mlx5_ib_create_qp_resp resp = {}; struct mlx5_ib_cq *send_cq; struct mlx5_ib_cq *recv_cq; unsigned long f...
CVE-2018-20855
{'CWE-119'}
2.9
{'https://github.com/torvalds/linux/commit/0625b4ba1a5d4703c7fb01c497bd6c156908af00'}
nvd
An issue was discovered in the Linux kernel before 4.18.7. In create_qp_common in drivers/infiniband/hw/mlx5/qp.c, mlx5_ib_create_qp_resp was never initialized, resulting in a leak of stack memory to userspace.
2019-07-26
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/0625b4ba1a5d4703c7fb01c497bd6c156908af00
0625b4ba1a5d4703c7fb01c497bd6c156908af00
SINGLE
['0625b4ba1a5d4703c7fb01c497bd6c156908af00']
{'0da9be22cdcbcbe0e5f04271dcfac71601526a3e'}
0625b4ba1a5d4703c7fb01c497bd6c156908af00
1
08/14/2018, 21:33:52
IB/mlx5: Fix leaking stack memory to userspace mlx5_ib_create_qp_resp was never initialized and only the first 4 bytes were written. Fixes: 41d902cb7c32 ("RDMA/mlx5: Fix definition of mlx5_ib_create_qp_resp") Cc: <stable@vger.kernel.org> Acked-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <...
Jason Gunthorpe
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -1607,7 +1607,7 @@ static int create_qp_common(struct mlx5_ib_dev *dev, struct ib_pd *pd,\n \tstruct mlx5_ib_resources *devr = &dev->devr;\n \tint inlen = MLX5_ST_SZ_BYTES(create_qp_in);\n \tstruct mlx5_core_dev *mdev = dev->mdev;\n-\tstru...
c
CWE-119
[ "drivers/infiniband/hw/mlx5/qp.c" ]
drivers/infiniband/hw/mlx5/qp.c
1
int blk_init_allocated_queue(struct request_queue *q) q->exit_rq_fn(q, q->fq->flush_rq); out_free_flush_queue: blk_free_flush_queue(q->fq); return -ENOMEM; } EXPORT_SYMBOL(blk_init_allocated_queue);
int blk_init_allocated_queue(struct request_queue *q) q->exit_rq_fn(q, q->fq->flush_rq); out_free_flush_queue: blk_free_flush_queue(q->fq); q->fq = NULL; return -ENOMEM; } EXPORT_SYMBOL(blk_init_allocated_queue);
CVE-2018-20856
{'CWE-416'}
6.4
{'https://github.com/torvalds/linux/commit/54648cf1ec2d7f4b6a71767799c45676a138ca24'}
nvd
An issue was discovered in the Linux kernel before 4.18.7. In block/blk-core.c, there is an __blk_drain_queue() use-after-free because a certain error case is mishandled.
2019-07-26
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/54648cf1ec2d7f4b6a71767799c45676a138ca24
54648cf1ec2d7f4b6a71767799c45676a138ca24
SINGLE
['54648cf1ec2d7f4b6a71767799c45676a138ca24']
{'f7f1fc363aab4601786d373569c1ae802ea593d0'}
54648cf1ec2d7f4b6a71767799c45676a138ca24
1
07/30/2018, 06:11:12
block: blk_init_allocated_queue() set q->fq as NULL in the fail case We find the memory use-after-free issue in __blk_drain_queue() on the kernel 4.14. After read the latest kernel 4.18-rc6 we think it has the same problem. Memory is allocated for q->fq in the blk_init_allocated_queue(). If the elevator init function...
xiao jin
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -1184,6 +1184,7 @@ int blk_init_allocated_queue(struct request_queue *q)\n \t\tq->exit_rq_fn(q, q->fq->flush_rq);\n out_free_flush_queue:\n \tblk_free_flush_queue(q->fq);\n+\tq->fq = NULL;\n \treturn -ENOMEM;\n }\n EXPORT_SYMBOL(blk_init_a...
c
CWE-416
[ "block/blk-core.c" ]
block/blk-core.c
1
void color_apply_icc_profile(opj_image_t *image) } if (image->numcomps > 2) { /* RGB, RGBA */ if (prec <= 8) { unsigned char *inbuf, *outbuf, *in, *out; max = max_w * max_h; nr_samples = (size_t)(max * 3U * sizeof(unsigned char)); in = inbuf = (unsigned...
void color_apply_icc_profile(opj_image_t *image) } if (image->numcomps > 2) { /* RGB, RGBA */ if ((image->comps[0].w == image->comps[1].w && image->comps[0].w == image->comps[2].w) && (image->comps[0].h == image->comps[1].h && image->comps[0].h == image...
CVE-2018-21010
{'CWE-787'}
6.4
{'https://github.com/uclouvain/openjpeg/commit/2e5ab1d9987831c981ff05862e8ccf1381ed58ea'}
nvd
OpenJPEG before 2.3.1 has a heap buffer overflow in color_apply_icc_profile in bin/common/color.c.
2019-09-05
1
https://github.com/uclouvain/openjpeg
https://github.com/uclouvain/openjpeg/commit/2e5ab1d9987831c981ff05862e8ccf1381ed58ea
2e5ab1d9987831c981ff05862e8ccf1381ed58ea
SINGLE
['2e5ab1d9987831c981ff05862e8ccf1381ed58ea']
{'92023cd6c377e0384a7725949b25655d4d94dced'}
2e5ab1d9987831c981ff05862e8ccf1381ed58ea
1
11/27/2018, 22:31:30
color_apply_icc_profile: avoid potential heap buffer overflow Derived from a patch by Thuan Pham
Even Rouault
null
{'additions': 82, 'deletions': 72, 'total': 154}
[ { "additions": 82, "changes": 154, "deletions": 72, "patch": "@@ -597,82 +597,92 @@ void color_apply_icc_profile(opj_image_t *image)\n }\n \n if (image->numcomps > 2) { /* RGB, RGBA */\n- if (prec <= 8) {\n- unsigned char *inbuf, *outbuf, *in, *out;\n-\n- max = m...
c
CWE-787
[ "src/bin/common/color.c" ]
src/bin/common/color.c
1
GF_Err dinf_Read(GF_Box *s, GF_BitStream *bs) return e; } if (!((GF_DataInformationBox *)s)->dref) { GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso file] Missing dref box in dinf\n")); ((GF_DataInformationBox *)s)->dref = (GF_DataReferenceBox *)gf_isom_box_new(GF_ISOM_BOX_TYPE_DREF); } return GF_OK; }
GF_Err dinf_Read(GF_Box *s, GF_BitStream *bs) return e; } if (!((GF_DataInformationBox *)s)->dref) { GF_Box* dref; GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso file] Missing dref box in dinf\n")); dref = gf_isom_box_new(GF_ISOM_BOX_TYPE_DREF); ((GF_DataInformationBox *)s)->dref = (GF_DataReferenceBox *)dr...
CVE-2018-21017
{'CWE-401'}
2.9
{'https://github.com/gpac/gpac/commit/d2371b4b204f0a3c0af51ad4e9b491144dd1225c'}
nvd
GPAC 0.7.1 has a memory leak in dinf_Read in isomedia/box_code_base.c.
2019-09-16
1
https://github.com/gpac/gpac
https://github.com/gpac/gpac/commit/d2371b4b204f0a3c0af51ad4e9b491144dd1225c
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
SINGLE
['d2371b4b204f0a3c0af51ad4e9b491144dd1225c']
{'1d9c5ef3b86e52ba0ad54e156346ecc3a3de274f'}
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
1
04/11/2019, 10:58:25
prevent dref memleak on invalid input (#1183)
Aurelien David
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -931,8 +931,11 @@ GF_Err dinf_Read(GF_Box *s, GF_BitStream *bs)\n \t\treturn e;\n \t}\n \tif (!((GF_DataInformationBox *)s)->dref) {\n+\t\tGF_Box* dref;\n \t\tGF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, (\"[iso file] Missing dref box in dinf\\n...
c
CWE-401
[ "src/isomedia/box_code_base.c" ]
src/isomedia/box_code_base.c
1
int rds_rdma_extra_size(struct rds_rdma_args *args) local_vec = (struct rds_iovec __user *)(unsigned long) args->local_vec_addr; /* figure out the number of pages in the vector */ for (i = 0; i < args->nr_local; i++) { if (copy_from_user(&vec, &local_vec[i],
int rds_rdma_extra_size(struct rds_rdma_args *args) local_vec = (struct rds_iovec __user *)(unsigned long) args->local_vec_addr; if (args->nr_local == 0) return -EINVAL; /* figure out the number of pages in the vector */ for (i = 0; i < args->nr_local; i++) { if (copy_from_user(&vec, &local_vec[i],
CVE-2018-5332
{'CWE-787'}
10
{'https://github.com/torvalds/linux/commit/c095508770aebf1b9218e77026e48345d719b17c'}
nvd
In the Linux kernel through 3.2, the rds_message_alloc_sgs() function does not validate a value that is used during DMA page allocation, leading to a heap-based out-of-bounds write (related to the rds_rdma_extra_size function in net/rds/rdma.c).
2018-01-11
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c095508770aebf1b9218e77026e48345d719b17c
c095508770aebf1b9218e77026e48345d719b17c
SINGLE
['c095508770aebf1b9218e77026e48345d719b17c']
{'c0bace798436bca0fdc221ff61143f1376a9c3de'}
c095508770aebf1b9218e77026e48345d719b17c
1
01/02/2018, 19:44:34
RDS: Heap OOB write in rds_message_alloc_sgs() When args->nr_local is 0, nr_pages gets also 0 due some size calculation via rds_rm_size(), which is later used to allocate pages for DMA, this bug produces a heap Out-Of-Bound write access to a specific memory region. Signed-off-by: Mohamed Ghannam <simo.ghannam@gmail.c...
Mohamed Ghannam
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -525,6 +525,9 @@ int rds_rdma_extra_size(struct rds_rdma_args *args)\n \n \tlocal_vec = (struct rds_iovec __user *)(unsigned long) args->local_vec_addr;\n \n+\tif (args->nr_local == 0)\n+\t\treturn -EINVAL;\n+\n \t/* figure out the number ...
c
CWE-787
[ "net/rds/rdma.c" ]
net/rds/rdma.c
1
int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm, err: if (page) put_page(page); kfree(rm->atomic.op_notifier); return ret;
int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm, err: if (page) put_page(page); rm->atomic.op_active = 0; kfree(rm->atomic.op_notifier); return ret;
CVE-2018-5333
{'CWE-476'}
6.9
{'https://github.com/torvalds/linux/commit/7d11f77f84b27cef452cee332f4e469503084737'}
nvd
In the Linux kernel through 4.14.13, the rds_cmsg_atomic function in net/rds/rdma.c mishandles cases where page pinning fails or an invalid address is supplied, leading to an rds_atomic_free_op NULL pointer dereference.
2018-01-11
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/7d11f77f84b27cef452cee332f4e469503084737
7d11f77f84b27cef452cee332f4e469503084737
SINGLE
['7d11f77f84b27cef452cee332f4e469503084737']
{'dfe8266b8dd10e12a731c985b725fcf7f0e537f0'}
7d11f77f84b27cef452cee332f4e469503084737
1
01/03/2018, 21:06:06
RDS: null pointer dereference in rds_atomic_free_op set rm->atomic.op_active to 0 when rds_pin_pages() fails or the user supplied address is invalid, this prevents a NULL pointer usage in rds_atomic_free_op() Signed-off-by: Mohamed Ghannam <simo.ghannam@gmail.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle...
Mohamed Ghannam
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -877,6 +877,7 @@ int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm,\n err:\n \tif (page)\n \t\tput_page(page);\n+\trm->atomic.op_active = 0;\n \tkfree(rm->atomic.op_notifier);\n \n \treturn ret;", "path": "net/rds/rdma.c"...
c
CWE-476
[ "net/rds/rdma.c" ]
net/rds/rdma.c
1
static int lo_open(struct block_device *bdev, fmode_t mode) return err; } static void lo_release(struct gendisk *disk, fmode_t mode) { struct loop_device *lo = disk->private_data; int err; if (atomic_dec_return(&lo->lo_refcnt)) static void lo_release(struct gendisk *disk, fmode_t mode) mutex_unlock(&lo->lo_ctl_...
static int lo_open(struct block_device *bdev, fmode_t mode) return err; } static void __lo_release(struct loop_device *lo) { int err; if (atomic_dec_return(&lo->lo_refcnt)) static void lo_release(struct gendisk *disk, fmode_t mode) mutex_unlock(&lo->lo_ctl_mutex); } static void lo_release(struct gendisk *disk, ...
CVE-2018-5344
{'CWE-416', 'CWE-362'}
6.4
{'https://github.com/torvalds/linux/commit/ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5'}
nvd
In the Linux kernel through 4.14.13, drivers/block/loop.c mishandles lo_release serialization, which allows attackers to cause a denial of service (__lock_acquire use-after-free) or possibly have unspecified other impact.
2018-01-12
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5
ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5
SINGLE
['ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5']
{'cbf3a95924d515c1883aec2322fec277e4726134'}
ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5
1
01/06/2018, 00:26:00
loop: fix concurrent lo_open/lo_release 范龙飞 reports that KASAN can report a use-after-free in __lock_acquire. The reason is due to insufficient serialization in lo_release(), which will continue to use the loop device even after it has decremented the lo_refcnt to zero. In the meantime, another process can come in, o...
Linus Torvalds
null
{'additions': 8, 'deletions': 2, 'total': 10}
[ { "additions": 8, "changes": 10, "deletions": 2, "patch": "@@ -1581,9 +1581,8 @@ static int lo_open(struct block_device *bdev, fmode_t mode)\n \treturn err;\n }\n \n-static void lo_release(struct gendisk *disk, fmode_t mode)\n+static void __lo_release(struct loop_device *lo)\n {\n-\tstruct loop_devi...
c
CWE-416
[ "drivers/block/loop.c" ]
drivers/block/loop.c
1
static int lo_open(struct block_device *bdev, fmode_t mode) return err; } static void lo_release(struct gendisk *disk, fmode_t mode) { struct loop_device *lo = disk->private_data; int err; if (atomic_dec_return(&lo->lo_refcnt)) static void lo_release(struct gendisk *disk, fmode_t mode) mutex_unlock(&lo->lo_ctl_...
static int lo_open(struct block_device *bdev, fmode_t mode) return err; } static void __lo_release(struct loop_device *lo) { int err; if (atomic_dec_return(&lo->lo_refcnt)) static void lo_release(struct gendisk *disk, fmode_t mode) mutex_unlock(&lo->lo_ctl_mutex); } static void lo_release(struct gendisk *disk, ...
CVE-2018-5344
{'CWE-416', 'CWE-362'}
6.4
{'https://github.com/torvalds/linux/commit/ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5'}
nvd
In the Linux kernel through 4.14.13, drivers/block/loop.c mishandles lo_release serialization, which allows attackers to cause a denial of service (__lock_acquire use-after-free) or possibly have unspecified other impact.
2018-01-12
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5
ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5
SINGLE
['ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5']
{'cbf3a95924d515c1883aec2322fec277e4726134'}
ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5
1
01/06/2018, 00:26:00
loop: fix concurrent lo_open/lo_release 范龙飞 reports that KASAN can report a use-after-free in __lock_acquire. The reason is due to insufficient serialization in lo_release(), which will continue to use the loop device even after it has decremented the lo_refcnt to zero. In the meantime, another process can come in, o...
Linus Torvalds
null
{'additions': 8, 'deletions': 2, 'total': 10}
[ { "additions": 8, "changes": 10, "deletions": 2, "patch": "@@ -1581,9 +1581,8 @@ static int lo_open(struct block_device *bdev, fmode_t mode)\n \treturn err;\n }\n \n-static void lo_release(struct gendisk *disk, fmode_t mode)\n+static void __lo_release(struct loop_device *lo)\n {\n-\tstruct loop_devi...
c
CWE-362
[ "drivers/block/loop.c" ]
drivers/block/loop.c
1