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
from flaskbb.extensions import allows, db, celery from flaskbb.user.models import User, Group from flaskbb.forum.models import Post from hub.forms import ConfigEditForm, BanSearchForm, ConnectionSearchForm from hub.permissions import CanAccessServerHub, CanAccessServerHubAdditional, CanAccessServerHubManagement def g...
from flaskbb.extensions import allows, db, celery from flaskbb.user.models import User, Group from flaskbb.forum.models import Post from werkzeug.utils import safe_join from hub.forms import ConfigEditForm, BanSearchForm, ConnectionSearchForm from hub.permissions import CanAccessServerHub, CanAccessServerHubAdditio...
CVE-2022-31501
{'CWE-22'}
4.9
{'https://github.com/ChaoticOnyx/OnyxForum/commit/f25543dfc62a9694d7e4f67eebfa45e3de916053'}
nvd
The ChaoticOnyx/OnyxForum repository before 2022-05-04 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
2022-07-11
1
https://github.com/ChaoticOnyx/OnyxForum
https://github.com/ChaoticOnyx/OnyxForum/commit/f25543dfc62a9694d7e4f67eebfa45e3de916053
f25543dfc62a9694d7e4f67eebfa45e3de916053
SINGLE
['f25543dfc62a9694d7e4f67eebfa45e3de916053']
{'4077b499a1ca213f3eb55b8321a4733d83531750'}
f25543dfc62a9694d7e4f67eebfa45e3de916053
1
05/04/2022, 21:40:28
fix(hub): absolute Path Traversal due to incorrect use of `send_file` call A path traversal attack (also known as directory traversal) aims to access files and directories that are stored outside the web root folder. By manipulating variables that reference files with “dot-dot-slash (../)” sequences and its variations...
porcupineyhairs
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -19,6 +19,8 @@\n from flaskbb.extensions import allows, db, celery\n from flaskbb.user.models import User, Group\n from flaskbb.forum.models import Post\n+from werkzeug.utils import safe_join \n+\n \n from hub.forms import ConfigEditForm, ...
py
CWE-22
[ "modules/hub/hub/views.py" ]
modules/hub/hub/views.py
1
#!/bin/env python from flask import Flask from flask import flash,request,send_file,send_from_directory,redirect,render_template, abort from werkzeug.utils import secure_filename from ipaddress import ip_address, ip_network def dir_listing(req_path): https://stackoverflow.com/questions/23718236/python-flask-browsing-...
#!/bin/env python from flask import Flask from flask import flash,request,send_file,send_from_directory,redirect,render_template, abort, safe_join from werkzeug.utils import secure_filename from ipaddress import ip_address, ip_network def dir_listing(req_path): https://stackoverflow.com/questions/23718236/python-flas...
CVE-2022-31502
{'CWE-22'}
4.9
{'https://github.com/operatorequals/wormnest/commit/2dfe96fc2570586ac487b399ac20d41b3c114861'}
nvd
The operatorequals/wormnest repository through 0.4.7 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
2022-07-11
1
https://github.com/operatorequals/wormnest
https://github.com/operatorequals/wormnest/commit/2dfe96fc2570586ac487b399ac20d41b3c114861
2dfe96fc2570586ac487b399ac20d41b3c114861
SINGLE
['2dfe96fc2570586ac487b399ac20d41b3c114861']
{'30ab2ba563a19040b07b7b8b06e97ad95c0b5793', 'dd981626b574a89939babd1246588580ecc323f9'}
2dfe96fc2570586ac487b399ac20d41b3c114861
1
04/29/2022, 08:37:58
Merge pull request #8 from porcupineyhairs/FixPathInjection Fix Path Traversal Vulnerability
John Torakis
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -1,6 +1,6 @@\n #!/bin/env python\n from flask import Flask\n-from flask import flash,request,send_file,send_from_directory,redirect,render_template, abort\n+from flask import flash,request,send_file,send_from_directory,redirect,render_temp...
py
CWE-22
[ "app.py" ]
app.py
1
from app.module.user.model import UserModel, UserTokenModel from app.module.user import UserSession from werkzeug.routing import BaseConverter, ValidationError from bson.objectid import ObjectId from bson.errors import InvalidId from os import path @login_required def private_static(filename): # Get path filep...
from app.module.user.model import UserModel, UserTokenModel from app.module.user import UserSession from werkzeug.routing import BaseConverter, ValidationError from werkzeug.utils import safe_join from bson.objectid import ObjectId from bson.errors import InvalidId from os import path @login_required def private_stati...
CVE-2022-31508
{'CWE-22'}
4.9
{'https://github.com/idayrus/evoting/commit/241d92a4d68f524365a6322b5bbcfaa7d9abc8a3'}
nvd
The idayrus/evoting repository before 2022-05-08 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
2022-07-11
1
https://github.com/idayrus/evoting
https://github.com/idayrus/evoting/commit/241d92a4d68f524365a6322b5bbcfaa7d9abc8a3
241d92a4d68f524365a6322b5bbcfaa7d9abc8a3
SINGLE
['241d92a4d68f524365a6322b5bbcfaa7d9abc8a3']
{'d9ef8c7c0343c7986fe06ff976395775d5844732', 'fefef0d06816ac2d80ed3c80df20fa5deca43a48'}
241d92a4d68f524365a6322b5bbcfaa7d9abc8a3
1
05/08/2022, 18:26:01
Merge pull request #2 from porcupineyhairs/FixPathInjection Fix Path Traversal Vulnerability
adierebel
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -5,6 +5,7 @@\n from app.module.user.model import UserModel, UserTokenModel\n from app.module.user import UserSession\n from werkzeug.routing import BaseConverter, ValidationError\n+from werkzeug.utils import safe_join\n from bson.objectid ...
py
CWE-22
[ "app/helper/middleware.py" ]
app/helper/middleware.py
1
import configparser from flask import Flask, render_template, session, request, flash, redirect, url_for, Response, abort, jsonify, send_file import socket import os import random def get_absolute_path(path): import os script_dir = os.path.dirname(__file__) # <-- absolute dir the script is in ...
import configparser from flask import Flask, render_template, session, request, flash, redirect, url_for, Response, abort, jsonify, send_file from werkzeug.utils import safe_join import socket import os import random def get_absolute_path(path): import os script_dir = os.path.dirname(__file__) # <-- ...
CVE-2022-31564
{'CWE-22'}
4.9
{'https://github.com/woduq1414/munhak-moa/commit/e8f800373b20cb22de70c7a994325b8903877da0'}
nvd
The woduq1414/munhak-moa repository before 2022-05-03 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
2022-07-11
1
https://github.com/woduq1414/munhak-moa
https://github.com/woduq1414/munhak-moa/commit/e8f800373b20cb22de70c7a994325b8903877da0
e8f800373b20cb22de70c7a994325b8903877da0
SINGLE
['e8f800373b20cb22de70c7a994325b8903877da0']
{'cdcc98959879c2e88a89eea164e806b3b0e09972'}
e8f800373b20cb22de70c7a994325b8903877da0
1
05/03/2022, 11:23:52
# Absolute Path Traversal due to incorrect use of `send_file` call A path traversal attack (also known as directory traversal) aims to access files and directories that are stored outside the web root folder. By manipulating variables that reference files with “dot-dot-slash (../)” sequences and its variations or by u...
Porcupiney Hairs
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -1,6 +1,7 @@\n import configparser\n \n from flask import Flask, render_template, session, request, flash, redirect, url_for, Response, abort, jsonify, send_file\n+from werkzeug.utils import safe_join\n import socket\n import os\n import r...
py
CWE-22
[ "app.py" ]
app.py
1
compileRule(FileInfo *file, TranslationTableHeader **table, case CTO_SeqAfterExpression: if (!getRuleCharsText(file, &ruleChars)) return 0; for ((*table)->seqAfterExpressionLength = 0; (*table)->seqAfterExpressionLength < ruleChars.length; (*table)->seqAfterExpressionLength++) (*table)->seqAfter...
compileRule(FileInfo *file, TranslationTableHeader **table, case CTO_SeqAfterExpression: if (!getRuleCharsText(file, &ruleChars)) return 0; if ((ruleChars.length + 1) > SEQPATTERNSIZE) { compileError(file, "More than %d characters", SEQPATTERNSIZE); return 0; } for (int k = 0; k < ruleChars.leng...
CVE-2022-31783
{'CWE-787'}
2.9
{'https://github.com/liblouis/liblouis/commit/ff747ec5e1ac54d54194846f6fe5bfc689192a85'}
nvd
Liblouis 3.21.0 has an out-of-bounds write in compileRule in compileTranslationTable.c, as demonstrated by lou_trace.
2022-06-02
1
https://github.com/liblouis/liblouis
https://github.com/liblouis/liblouis/commit/ff747ec5e1ac54d54194846f6fe5bfc689192a85
ff747ec5e1ac54d54194846f6fe5bfc689192a85
SINGLE
['ff747ec5e1ac54d54194846f6fe5bfc689192a85']
{'83c91359ee77cabd49d64392c18cb2635855515c'}
ff747ec5e1ac54d54194846f6fe5bfc689192a85
1
05/25/2022, 16:08:36
Prevent an invalid memory writes in compileRule Thanks to Han Zheng for reporting it Fixes #1214
Christian Egli
null
{'additions': 8, 'deletions': 6, 'total': 14}
[ { "additions": 8, "changes": 14, "deletions": 6, "patch": "@@ -3736,12 +3736,14 @@ compileRule(FileInfo *file, TranslationTableHeader **table,\n \n \t\tcase CTO_SeqAfterExpression:\n \t\t\tif (!getRuleCharsText(file, &ruleChars)) return 0;\n-\t\t\tfor ((*table)->seqAfterExpressionLength = 0;\n-\t\t\...
c
CWE-787
[ "liblouis/compileTranslationTable.c" ]
liblouis/compileTranslationTable.c
1
static int r_jwe_aesgcm_key_unwrap(jwe_t * jwe, jwa_alg alg, jwk_t * jwk, int x5 ret = RHN_ERROR; break; } if (!o_base64url_decode((const unsigned char *)r_jwe_get_header_str_value(jwe, "iv"), o_strlen(r_jwe_get_header_str_value(jwe, "iv")), iv, &iv_len)) { y_log_message(Y_LOG_LEVEL...
static int r_jwe_aesgcm_key_unwrap(jwe_t * jwe, jwa_alg alg, jwk_t * jwk, int x5 ret = RHN_ERROR; break; } if (!o_base64url_decode((const unsigned char *)r_jwe_get_header_str_value(jwe, "iv"), o_strlen(r_jwe_get_header_str_value(jwe, "iv")), NULL, &iv_len) || iv_len > 96) { y_log_me...
CVE-2022-32096
{'CWE-120'}
2.9
{'https://github.com/babelouest/rhonabwy/commit/b4c2923a1ba4fabf9b55a89244127e153a3e549b'}
nvd
Rhonabwy before v1.1.5 was discovered to contain a buffer overflow via the component r_jwe_aesgcm_key_unwrap. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted JWE token.
2022-07-13
1
https://github.com/babelouest/rhonabwy
https://github.com/babelouest/rhonabwy/commit/b4c2923a1ba4fabf9b55a89244127e153a3e549b
b4c2923a1ba4fabf9b55a89244127e153a3e549b
SINGLE
['b4c2923a1ba4fabf9b55a89244127e153a3e549b']
{'95415a743a5bb399e4ce80beffe26e49a0ace0b9'}
b4c2923a1ba4fabf9b55a89244127e153a3e549b
1
05/28/2022, 15:22:51
Fix buffer overflow on r_jwe_aesgcm_key_unwrap
Nicolas Mora
null
{'additions': 10, 'deletions': 0, 'total': 10}
[ { "additions": 10, "changes": 10, "deletions": 0, "patch": "@@ -1843,11 +1843,21 @@ static int r_jwe_aesgcm_key_unwrap(jwe_t * jwe, jwa_alg alg, jwk_t * jwk, int x5\n ret = RHN_ERROR;\n break;\n }\n+ if (!o_base64url_decode((const unsigned char *)r_jwe_get_header_str_value...
c
CWE-120
[ "src/jwe.c" ]
src/jwe.c
1
#include <config.h> #include <string.h> /* strlen() */ #if defined(_WIN32) && defined(HAVE_STDAFX_H) #include "stdafx.h" #endif /* HAVE_STDAFX_H */ _dwarf_fix_up_offset_irix(Dwarf_Debug dbg, } #endif /* __sgi */ static void dealloc_globals_chain(Dwarf_Debug dbg, Dwarf_Chain head_chain) _dwarf_internal_get_pubna...
#include <config.h> #include <string.h> /* strlen() */ #if defined(_WIN32) && defined(HAVE_STDAFX_H) #include "stdafx.h" #endif /* HAVE_STDAFX_H */ _dwarf_fix_up_offset_irix(Dwarf_Debug dbg, } #endif /* __sgi */ #if 0 /* Debugging only. Requires start. can calulate one of len, end */ static void debug_print_range(c...
CVE-2022-32200
{'CWE-125'}
6.4
{'https://github.com/davea42/libdwarf-code/commit/8151575a6ace77d005ca5bb5d71c1bfdba3f7069'}
nvd
libdwarf 0.4.0 has a heap-based buffer over-read in _dwarf_check_string_valid in dwarf_util.c.
2022-06-02
1
https://github.com/davea42/libdwarf-code
https://github.com/davea42/libdwarf-code/commit/8151575a6ace77d005ca5bb5d71c1bfdba3f7069
8151575a6ace77d005ca5bb5d71c1bfdba3f7069
SINGLE
['8151575a6ace77d005ca5bb5d71c1bfdba3f7069']
{'8e202226e604864b792ade45de8595c8944c0269'}
8151575a6ace77d005ca5bb5d71c1bfdba3f7069
1
05/29/2022, 16:35:39
Fixes vulnerability DW202205-001 Reports error instead of crashing the when reading a specially crafted (corrupted) .debug_pubnames or .debug_pubtypes section. modified: src/lib/libdwarf/dwarf_global.c
David Anderson
null
{'additions': 73, 'deletions': 8, 'total': 81}
[ { "additions": 73, "changes": 81, "deletions": 8, "patch": "@@ -31,7 +31,6 @@\n #include <config.h>\n \n #include <string.h> /* strlen() */\n-\n #if defined(_WIN32) && defined(HAVE_STDAFX_H)\n #include \"stdafx.h\"\n #endif /* HAVE_STDAFX_H */\n@@ -83,6 +82,33 @@ _dwarf_fix_up_offset_irix(Dwarf_Debu...
c
CWE-125
[ "src/lib/libdwarf/dwarf_global.c" ]
src/lib/libdwarf/dwarf_global.c
1
** This class pulls blocks from the frame and reconstructs from those ** quantized block lines or encodes from them. ** ** $Id: linebitmaprequester.cpp,v 1.36 2021/07/22 13:18:36 thor Exp $ ** */ void LineBitmapRequester::ReconstructRegion(const RectAngle<LONG> &orgregion,con LONG *dst = m_ppCTemp[i]; ...
** This class pulls blocks from the frame and reconstructs from those ** quantized block lines or encodes from them. ** ** $Id: linebitmaprequester.cpp,v 1.37 2022/05/31 10:16:52 thor Exp $ ** */ void LineBitmapRequester::ReconstructRegion(const RectAngle<LONG> &orgregion,con LONG *dst = m_ppCTemp[i]; ...
CVE-2022-32202
{'CWE-476'}
2.9
{'https://github.com/thorfdbg/libjpeg/commit/51c3241b6da39df30f016b63f43f31c4011222c7'}
nvd
In libjpeg 1.63, there is a NULL pointer dereference in LineBuffer::FetchRegion in linebuffer.cpp.
2022-06-02
1
https://github.com/thorfdbg/libjpeg
https://github.com/thorfdbg/libjpeg/commit/51c3241b6da39df30f016b63f43f31c4011222c7
51c3241b6da39df30f016b63f43f31c4011222c7
SINGLE
['51c3241b6da39df30f016b63f43f31c4011222c7']
{'ea6315164b1649ff932a396b7600eac4bffcfaba'}
51c3241b6da39df30f016b63f43f31c4011222c7
1
05/31/2022, 10:17:21
Fixed a NULL-pointer access in the line-based reconstruction process in case no valid scan was found and no data is present.
Thomas Richter
null
{'additions': 6, 'deletions': 2, 'total': 8}
[ { "additions": 6, "changes": 8, "deletions": 2, "patch": "@@ -43,7 +43,7 @@\n ** This class pulls blocks from the frame and reconstructs from those\n ** quantized block lines or encodes from them.\n **\n-** $Id: linebitmaprequester.cpp,v 1.36 2021/07/22 13:18:36 thor Exp $\n+** $Id: linebitmapreques...
cpp
CWE-476
[ "control/linebitmaprequester.cpp" ]
control/linebitmaprequester.cpp
1
static unsigned char *ReadImage(FILE * fd, int width, int height, { temp = image + (ypos * rowstride); for (xpos = 0; xpos < width; ++xpos) { px32 = ToL(&row_buf[xpos * 4]); unsigned char red = *(temp++) = ((px32 & masks[0].mask) >> masks[0].shiftin) * 255.0 / masks[0].max_value + 0.5; ...
static unsigned char *ReadImage(FILE * fd, int width, int height, { temp = image + (ypos * rowstride); for (xpos = 0; xpos < width; ++xpos) { px32 = ToL(&row_buf[xpos * 4]); unsigned char red = *(temp++) = ((px32 & masks[0].mask) >> masks[0].shiftin) * 255.0 / masks[0].max_value + 0.5; u...
CVE-2022-32323
{'CWE-787'}
6.4
{'https://github.com/autotrace/autotrace/commit/2b44c173027736c64b3f379bd154c41bab745423'}
nvd
AutoTrace v0.40.0 was discovered to contain a heap overflow via the ReadImage function at input-bmp.c:660.
2022-07-14
1
https://github.com/autotrace/autotrace
https://github.com/autotrace/autotrace/commit/2b44c173027736c64b3f379bd154c41bab745423
2b44c173027736c64b3f379bd154c41bab745423
SINGLE
['2b44c173027736c64b3f379bd154c41bab745423']
{'a943ffb87ba93b9cb6f0c2d5b42dd98f4967216a', '746c0d280668f250a7f58a54ebc76f81091373c0'}
2b44c173027736c64b3f379bd154c41bab745423
1
05/31/2022, 18:40:06
Merge pull request #72 from lemenkov/misleading_indentation Misleading indentation
Peter Lemenkov
null
{'additions': 31, 'deletions': 27, 'total': 58}
[ { "additions": 31, "changes": 58, "deletions": 27, "patch": "@@ -640,19 +640,19 @@ static unsigned char *ReadImage(FILE * fd, int width, int height,\n {\n temp = image + (ypos * rowstride);\n for (xpos = 0; xpos < width; ++xpos) {\n-\t\t\t px32 = ToL(&row_buf[xpos * 4]);\n-\t\...
c
CWE-787
[ "src/input-bmp.c" ]
src/input-bmp.c
1
void streamGetEdgeID(stream *s, int first, int skip_tombstones, streamID *edge_i streamID min_id = {0, 0}, max_id = {UINT64_MAX, UINT64_MAX}; *edge_id = first ? max_id : min_id; } } /* Adds a new item into the stream 's' having the specified number of
void streamGetEdgeID(stream *s, int first, int skip_tombstones, streamID *edge_i streamID min_id = {0, 0}, max_id = {UINT64_MAX, UINT64_MAX}; *edge_id = first ? max_id : min_id; } streamIteratorStop(&si); } /* Adds a new item into the stream 's' having the specified number of
CVE-2022-33105
{'CWE-401'}
2.9
{'https://github.com/redis/redis/commit/4a7a4e42db8ff757cdf3f4a824f66426036034ef'}
nvd
Redis v7.0 was discovered to contain a memory leak via the component streamGetEdgeID.
2022-06-23
1
https://github.com/redis/redis
https://github.com/redis/redis/commit/4a7a4e42db8ff757cdf3f4a824f66426036034ef
4a7a4e42db8ff757cdf3f4a824f66426036034ef
SINGLE
['4a7a4e42db8ff757cdf3f4a824f66426036034ef']
{'00a9d6b3147143b7ed3f208f3924ff46c31e1fd9'}
4a7a4e42db8ff757cdf3f4a824f66426036034ef
1
05/22/2022, 09:15:26
Fix memory leak in streamGetEdgeID (#10753) si is initialized by streamIteratorStart(), we should call streamIteratorStop() on it when done. regression introduced in #9127 (redis 7.0)
Yuuoniy
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -401,7 +401,7 @@ void streamGetEdgeID(stream *s, int first, int skip_tombstones, streamID *edge_i\n streamID min_id = {0, 0}, max_id = {UINT64_MAX, UINT64_MAX};\n *edge_id = first ? max_id : min_id;\n }\n-\n+ streamI...
c
CWE-401
[ "src/t_stream.c" ]
src/t_stream.c
1
public function validate() { header("Content-Type: application/json"); $id = $this->input->post('id', TRUE); $type = $this->input->post('type', TRUE); //The above parameters could cause an SQL injection vulnerability due to the non standard //SQL query in leave_model::detectOver...
public function validate() { header("Content-Type: application/json"); $id = $this->input->post('id', TRUE); $type = $this->input->post('type', TRUE); $date = $this->input->post('startdate', TRUE); $d = DateTime::createFromFormat('Y-m-d', $date); $startdate = ($d && $d->...
CVE-2022-34132
{'CWE-89'}
6.4
{'https://github.com/bbalet/jorani/commit/c5c42e29e6a9e59a3c82450bef48b67b8dd48333'}
nvd
Benjamin BALET Jorani v1.0 was discovered to contain a SQL injection vulnerability via the id parameter at application/controllers/Leaves.php.
2022-06-28
1
https://github.com/bbalet/jorani
https://github.com/bbalet/jorani/commit/c5c42e29e6a9e59a3c82450bef48b67b8dd48333
c5c42e29e6a9e59a3c82450bef48b67b8dd48333
SINGLE
['c5c42e29e6a9e59a3c82450bef48b67b8dd48333']
{'299b5a3a66add4ac643e3ba78ada4d9637c8baff'}
c5c42e29e6a9e59a3c82450bef48b67b8dd48333
1
06/06/2022, 15:49:54
BF:Prevent SQL injection fix #369
Benjamin BALET
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -820,14 +820,14 @@ public function validate() {\n header(\"Content-Type: application/json\");\n $id = $this->input->post('id', TRUE);\n $type = $this->input->post('type', TRUE);\n- //The above parameters coul...
php
CWE-89
[ "application/controllers/Leaves.php" ]
application/controllers/Leaves.php
1
public function createComment($id, $source = "leaves/leaves"){ $newComment = new stdClass; $newComment->type = "comment"; $newComment->author = $this->session->userdata('id'); $newComment->value = $this->input->post('comment'); $newComment->date = date("Y-n-j"); if ($oldComment != N...
public function createComment($id, $source = "leaves/leaves"){ $newComment = new stdClass; $newComment->type = "comment"; $newComment->author = $this->session->userdata('id'); $newComment->value = $this->input->post('comment', TRUE); $newComment->date = date("Y-n-j"); if ($oldCommen...
CVE-2022-34133
{'CWE-79'}
2.9
{'https://github.com/bbalet/jorani/commit/3d01cef4ee9cdd70cfe1ac4fd7f5d607dda0d0ca'}
nvd
Benjamin BALET Jorani v1.0 was discovered to contain a cross-site scripting (XSS) vulnerability via the Comment parameter at application/controllers/Leaves.php.
2022-06-28
1
https://github.com/bbalet/jorani
https://github.com/bbalet/jorani/commit/3d01cef4ee9cdd70cfe1ac4fd7f5d607dda0d0ca
3d01cef4ee9cdd70cfe1ac4fd7f5d607dda0d0ca
SINGLE
['3d01cef4ee9cdd70cfe1ac4fd7f5d607dda0d0ca']
{'741b62169b52409a90837a2f9eb2ab70b5d51cab'}
3d01cef4ee9cdd70cfe1ac4fd7f5d607dda0d0ca
1
06/06/2022, 13:02:42
BF:Persistent XSS fix #369
Benjamin BALET
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -182,7 +182,7 @@ public function createComment($id, $source = \"leaves/leaves\"){\n $newComment = new stdClass;\n $newComment->type = \"comment\";\n $newComment->author = $this->session->userdata('id');\n- $newCommen...
php
CWE-79
[ "application/controllers/Leaves.php" ]
application/controllers/Leaves.php
1
find_sig8_target_as_global_offset(Dwarf_Attribute attr, Dwarf_Bool targ_is_info = 0; Dwarf_Off localoff = 0; int res = 0; targ_is_info = attr->ar_cu_context->cc_is_info; memcpy(sig8,attr->ar_debug_ptr,sizeof(*sig8)); res = dwarf_find_die_given_sig8(attr->ar_dbg, dwarf_global_formref_b(Dwarf_A...
find_sig8_target_as_global_offset(Dwarf_Attribute attr, Dwarf_Bool targ_is_info = 0; Dwarf_Off localoff = 0; int res = 0; targ_is_info = attr->ar_cu_context->cc_is_info; memcpy(sig8,attr->ar_debug_ptr,sizeof(*sig8)); res = dwarf_find_die_given_sig8(attr->ar_dbg, dwarf_global_formref_b(Dwarf_At...
CVE-2022-34299
{'CWE-125'}
4.9
{'https://github.com/davea42/libdwarf-code/commit/7ef09e1fc9ba07653dd078edb2408631c7969162'}
nvd
There is a heap-based buffer over-read in libdwarf 0.4.0. This issue is related to dwarf_global_formref_b.
2022-06-23
1
https://github.com/davea42/libdwarf-code
https://github.com/davea42/libdwarf-code/commit/7ef09e1fc9ba07653dd078edb2408631c7969162
7ef09e1fc9ba07653dd078edb2408631c7969162
SINGLE
['7ef09e1fc9ba07653dd078edb2408631c7969162']
{'bc068ac4049261bcd5cc6293aa2c90dc58fbcf8d'}
7ef09e1fc9ba07653dd078edb2408631c7969162
1
06/15/2022, 21:46:01
Fixes old bug(which could result in Denial of Service) due to a missing check before reading the 8 bytes of a DW_FORM_ref_sig8. DW202206-001 modified: src/lib/libdwarf/dwarf_form.c
David Anderson
null
{'additions': 7, 'deletions': 1, 'total': 8}
[ { "additions": 7, "changes": 8, "deletions": 1, "patch": "@@ -605,7 +605,6 @@ find_sig8_target_as_global_offset(Dwarf_Attribute attr,\n Dwarf_Bool targ_is_info = 0;\n Dwarf_Off localoff = 0;\n int res = 0;\n-\n targ_is_info = attr->ar_cu_context->cc_is_info;\n memcpy(sig8,attr->...
c
CWE-125
[ "src/lib/libdwarf/dwarf_form.c" ]
src/lib/libdwarf/dwarf_form.c
1
static struct rpmsg_device *rpmsg_virtio_add_ctrl_dev(struct virtio_device *vdev err = rpmsg_ctrldev_register_device(rpdev_ctrl); if (err) { kfree(vch); return ERR_PTR(err); }
static struct rpmsg_device *rpmsg_virtio_add_ctrl_dev(struct virtio_device *vdev err = rpmsg_ctrldev_register_device(rpdev_ctrl); if (err) { /* vch will be free in virtio_rpmsg_release_device() */ return ERR_PTR(err); }
CVE-2022-34494
{'CWE-415'}
6.9
{'https://github.com/torvalds/linux/commit/1680939e9ecf7764fba8689cfb3429c2fe2bb23c'}
nvd
rpmsg_virtio_add_ctrl_dev in drivers/rpmsg/virtio_rpmsg_bus.c in the Linux kernel before 5.18.4 has a double free.
2022-06-26
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/1680939e9ecf7764fba8689cfb3429c2fe2bb23c
1680939e9ecf7764fba8689cfb3429c2fe2bb23c
SINGLE
['1680939e9ecf7764fba8689cfb3429c2fe2bb23c']
{'c2eecefec5df1306eafce28ccdf1ca159a552ecc'}
1680939e9ecf7764fba8689cfb3429c2fe2bb23c
1
04/26/2022, 06:05:35
rpmsg: virtio: Fix possible double free in rpmsg_virtio_add_ctrl_dev() vch will be free in virtio_rpmsg_release_device() when rpmsg_ctrldev_register_device() fails. There is no need to call kfree() again. Fixes: c486682ae1e2 ("rpmsg: virtio: Register the rpmsg_char device") Signed-off-by: Hangyu Hua <hbh25y@gmail.com...
Hangyu Hua
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -851,7 +851,7 @@ static struct rpmsg_device *rpmsg_virtio_add_ctrl_dev(struct virtio_device *vdev\n \n \terr = rpmsg_ctrldev_register_device(rpdev_ctrl);\n \tif (err) {\n-\t\tkfree(vch);\n+\t\t/* vch will be free in virtio_rpmsg_release_de...
c
CWE-415
[ "drivers/rpmsg/virtio_rpmsg_bus.c" ]
drivers/rpmsg/virtio_rpmsg_bus.c
1
static int rpmsg_probe(struct virtio_device *vdev) err = rpmsg_ns_register_device(rpdev_ns); if (err) goto free_vch; } /* static int rpmsg_probe(struct virtio_device *vdev) return 0; free_vch: kfree(vch); free_ctrldev: rpmsg_virtio_del_ctrl_dev(rpdev_ctrl); free_coherent:
static int rpmsg_probe(struct virtio_device *vdev) err = rpmsg_ns_register_device(rpdev_ns); if (err) /* vch will be free in virtio_rpmsg_release_device() */ goto free_ctrldev; } /* static int rpmsg_probe(struct virtio_device *vdev) return 0; free_ctrldev: rpmsg_virtio_del_ctrl_dev(rpdev_ctrl); free_...
CVE-2022-34495
{'CWE-415'}
6.9
{'https://github.com/torvalds/linux/commit/c2eecefec5df1306eafce28ccdf1ca159a552ecc'}
nvd
rpmsg_probe in drivers/rpmsg/virtio_rpmsg_bus.c in the Linux kernel before 5.18.4 has a double free.
2022-06-26
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c2eecefec5df1306eafce28ccdf1ca159a552ecc
c2eecefec5df1306eafce28ccdf1ca159a552ecc
SINGLE
['c2eecefec5df1306eafce28ccdf1ca159a552ecc']
{'1a358d35066487d228a68303d808bc4721c6b1b9'}
c2eecefec5df1306eafce28ccdf1ca159a552ecc
1
04/26/2022, 06:05:34
rpmsg: virtio: Fix possible double free in rpmsg_probe() vch will be free in virtio_rpmsg_release_device() when rpmsg_ns_register_device() fails. There is no need to call kfree() again. Fix this by changing error path from free_vch to free_ctrldev. Fixes: c486682ae1e2 ("rpmsg: virtio: Register the rpmsg_char device"...
Hangyu Hua
null
{'additions': 2, 'deletions': 3, 'total': 5}
[ { "additions": 2, "changes": 5, "deletions": 3, "patch": "@@ -973,7 +973,8 @@ static int rpmsg_probe(struct virtio_device *vdev)\n \n \t\terr = rpmsg_ns_register_device(rpdev_ns);\n \t\tif (err)\n-\t\t\tgoto free_vch;\n+\t\t\t/* vch will be free in virtio_rpmsg_release_device() */\n+\t\t\tgoto free_...
c
CWE-415
[ "drivers/rpmsg/virtio_rpmsg_bus.c" ]
drivers/rpmsg/virtio_rpmsg_bus.c
1
void i2c_init_board(void) * * Returns the address length. */ static uint get_alen(char *arg, int default_len) { int j; int alen; alen = default_len; for (j = 0; j < 8; j++) { static int do_i2c_read(struct cmd_tbl *cmdtp, int flag, int argc, { uint chip; uint devaddr, length; int alen; u_char *memaddr; in...
void i2c_init_board(void) * * Returns the address length. */ static uint get_alen(char *arg, uint default_len) { uint j; uint alen; alen = default_len; for (j = 0; j < 8; j++) { static int do_i2c_read(struct cmd_tbl *cmdtp, int flag, int argc, { uint chip; uint devaddr, length; uint alen; u_char *memaddr;...
CVE-2022-34835
{'CWE-787'}
6.4
{'https://github.com/u-boot/u-boot/commit/8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409'}
nvd
In Das U-Boot through 2022.07-rc5, an integer signedness error and resultant stack-based buffer overflow in the "i2c md" command enables the corruption of the return address pointer of the do_i2c_md function.
2022-06-30
1
https://github.com/u-boot/u-boot
https://github.com/u-boot/u-boot/commit/8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409
8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409
SINGLE
['8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409']
{'b75fd37037bcca8a5e86f1648e8fb4e97cba345a'}
8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409
1
06/10/2022, 14:50:25
i2c: fix stack buffer overflow vulnerability in i2c md command When running "i2c md 0 0 80000100", the function do_i2c_md parses the length into an unsigned int variable named length. The value is then moved to a signed variable: int nbytes = length; #define DISP_LINE_LEN 16 int linebytes = (nbytes > DISP...
Nicolas Iooss
null
{'additions': 12, 'deletions': 12, 'total': 24}
[ { "additions": 12, "changes": 24, "deletions": 12, "patch": "@@ -200,10 +200,10 @@ void i2c_init_board(void)\n *\n * Returns the address length.\n */\n-static uint get_alen(char *arg, int default_len)\n+static uint get_alen(char *arg, uint default_len)\n {\n-\tint\tj;\n-\tint\talen;\n+\tuint\tj;\...
c
CWE-787
[ "cmd/i2c.c" ]
cmd/i2c.c
1