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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
void ReshapeSparseTensor(OpKernelContext *context, TensorShape({nnz, output_rank}), &result_indices)); if (nnz > 0) { OP_REQUIRES_OK(context, functor::ReshapeSparseTensorFunctor<Device>()( context,... | void ReshapeSparseTensor(OpKernelContext *context, TensorShape({nnz, output_rank}), &result_indices)); if (nnz > 0) { OP_REQUIRES( context, dense_size > 0 && product > 0, errors::InvalidArgument( "Inpu... | GHSA-95xm-g58g-3p88 | {'CWE-369'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/4923de56ec94fff7770df259ab7f2288a74feb41'} | osv | Integer division by 0 in sparse reshaping ### Impact
The implementation of `tf.raw_ops.SparseReshape` can be made to trigger an integral division by 0 exception:
```python
import tensorflow as tf
tf.raw_ops.SparseReshape(
input_indices = np.ones((1,3)),
input_shape = np.array([1,1,0]),
new_shape = np.array([1,0... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/4923de56ec94fff7770df259ab7f2288a74feb41 | 4923de56ec94fff7770df259ab7f2288a74feb41 | SINGLE | ['4923de56ec94fff7770df259ab7f2288a74feb41'] | {'062534a0e7af9a49e96bc5797851be0e57cad1d6'} | 4923de56ec94fff7770df259ab7f2288a74feb41 | 1 | 08/02/2021, 20:52:28 | Don't do any work when reshaping 0 elements sparse tensor.
If reshaping to 0 elements tensor, check that input has no elements.
If reshaping no elements input, check that output has no elements.
PiperOrigin-RevId: 388296986
Change-Id: Iadc9fe7252e14313ca987e69bf0d7042fd10232a | Mihai Maruseac | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -174,6 +174,12 @@ void ReshapeSparseTensor(OpKernelContext *context,\n TensorShape({nnz, output_rank}),\n &result_indices));\n if (nnz > 0) {\n+ OP_RE... | cc | CWE-369 | [
"tensorflow/core/kernels/reshape_util.cc"
] | tensorflow/core/kernels/reshape_util.cc | 1 |
class UpperBoundOp : public OpKernel { const Tensor& sorted_inputs_t = ctx->input(0); const Tensor& values_t = ctx->input(1); // must have same batch dim_size for both OP_REQUIRES(ctx, sorted_inputs_t.dim_size(0) == values_t.dim_size(0), Status(error::INVALID_ARGUMENT, class LowerBound... | class UpperBoundOp : public OpKernel { const Tensor& sorted_inputs_t = ctx->input(0); const Tensor& values_t = ctx->input(1); // inputs must be at least a matrix OP_REQUIRES( ctx, sorted_inputs_t.shape().dims() >= 2, errors::InvalidArgument("sorted input argument must be a matrix")); ... | GHSA-9697-98pf-4rw7 | {'CWE-125'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/42459e4273c2e47a3232cc16c4f4fff3b3a35c38'} | osv | Heap OOB in `UpperBound` and `LowerBound` ### Impact
An attacker can read from outside of bounds of heap allocated data by sending specially crafted illegal arguments to `tf.raw_ops.UpperBound`:
```python
import tensorflow as tf
tf.raw_ops.UpperBound(
sorted_input=[1,2,3],
values=tf.constant(value=[[0,0,0],[1,1... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/42459e4273c2e47a3232cc16c4f4fff3b3a35c38 | 42459e4273c2e47a3232cc16c4f4fff3b3a35c38 | SINGLE | ['42459e4273c2e47a3232cc16c4f4fff3b3a35c38'] | {'b5cdbf12ffcaaffecf98f22a6be5a64bb96e4f58'} | 42459e4273c2e47a3232cc16c4f4fff3b3a35c38 | 1 | 07/30/2021, 05:25:05 | Prevent CHECK-fail/heap OOB in UpperBound and LowerBound
PiperOrigin-RevId: 387738073
Change-Id: Iee74de95ddad18440d052a75a5a1cb67544f490a | Mihai Maruseac | null | {'additions': 8, 'deletions': 0, 'total': 8} | [
{
"additions": 8,
"changes": 8,
"deletions": 0,
"patch": "@@ -86,6 +86,10 @@ class UpperBoundOp : public OpKernel {\n const Tensor& sorted_inputs_t = ctx->input(0);\n const Tensor& values_t = ctx->input(1);\n \n+ // inputs must be at least a matrix\n+ OP_REQUIRES(\n+ ctx, sorted... | cc | CWE-125 | [
"tensorflow/core/kernels/searchsorted_op.cc"
] | tensorflow/core/kernels/searchsorted_op.cc | 1 |
def get_int_arg(value, default=0): num_dag_to=min(end, num_of_all_dags), num_of_all_dags=num_of_all_dags, paging=wwwutils.generate_pages(current_page, num_of_pages, search=arg_search_query, showPau... | def get_int_arg(value, default=0): num_dag_to=min(end, num_of_all_dags), num_of_all_dags=num_of_all_dags, paging=wwwutils.generate_pages(current_page, num_of_pages, search=escape(arg_search_query) if arg_search_query else None, ... | GHSA-976r-qfjj-c24w | {'CWE-78'} | 9.8 | {'https://github.com/apache/airflow/commit/afa4b11fddfdbadb048f742cf66d5c21c675a5c8'} | osv | Command injection via Celery broker in Apache Airflow An issue was found in Apache Airflow versions 1.10.10 and below. When using CeleryExecutor, if an attacker can connect to the broker (Redis, RabbitMQ) directly, it is possible to inject commands, resulting in the celery worker running arbitrary commands. | 2020-07-27 | 1 | https://github.com/apache/airflow | https://github.com/apache/airflow/commit/afa4b11fddfdbadb048f742cf66d5c21c675a5c8 | afa4b11fddfdbadb048f742cf66d5c21c675a5c8 | SINGLE | ['afa4b11fddfdbadb048f742cf66d5c21c675a5c8'] | {'63260c9955d12a60d8c143a932432013dd05eebb'} | afa4b11fddfdbadb048f742cf66d5c21c675a5c8 | 1 | 12/27/2019, 08:24:41 | [AIRFLOW-6351] security - ui - Add Cross Site Scripting defence (#6913) | tooptoop4 | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -321,7 +321,7 @@ def get_int_arg(value, default=0):\n num_dag_to=min(end, num_of_all_dags),\n num_of_all_dags=num_of_all_dags,\n paging=wwwutils.generate_pages(current_page, num_of_pages,\n- ... | py | CWE-78 | [
"airflow/www_rbac/views.py"
] | airflow/www_rbac/views.py | 1 |
var configure = function( app, configObject ) { // Register routes app.get( "/i18n/:locale", i18nRoutes.i18n ); app.get( "/i18n/:locale/:phrase", i18nRoutes.translate ); }; /** | var configure = function( app, configObject ) { // Register routes app.get( "/i18n/:locale", i18nRoutes.i18n ); if( process.env.NODE_ENV === "development" ) { app.get( "/i18n/:locale/:phrase", i18nRoutes.translate ); } }; /** | GHSA-97gv-3p2c-xw7j | {'CWE-74', 'CWE-400'} | 8.2 | {'https://github.com/oliversalzburg/i18n-node-angular/commit/877720d2d9bb90dc8233706e81ffa03f99fc9dc8'} | osv | Denial of Service and Content Injection in i18n-node-angular Versions of `i18n-node-angular` prior to 1.4.0 are affected by denial of service and cross-site scripting vulnerabilities. The vulnerabilities exist in a REST endpoint that was created for development purposes, but was not disabled in production in affected v... | 2019-02-18 | 1 | https://github.com/oliversalzburg/i18n-node-angular | https://github.com/oliversalzburg/i18n-node-angular/commit/877720d2d9bb90dc8233706e81ffa03f99fc9dc8 | 877720d2d9bb90dc8233706e81ffa03f99fc9dc8 | SINGLE | ['877720d2d9bb90dc8233706e81ffa03f99fc9dc8'] | {'85ba51ac9dc47a3e232a19926791219ef9de20ee'} | 877720d2d9bb90dc8233706e81ffa03f99fc9dc8 | 1 | 01/07/2016, 08:40:02 | [FIX] Only register translate route during development | Oliver Salzburg | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -49,7 +49,10 @@ var configure = function( app, configObject ) {\n \n \t// Register routes\n \tapp.get( \"/i18n/:locale\", i18nRoutes.i18n );\n-\tapp.get( \"/i18n/:locale/:phrase\", i18nRoutes.translate );\n+\n+\tif( process.env.NODE_ENV ==... | js | CWE-400 | [
"i18n-node-routes.js"
] | i18n-node-routes.js | 1 |
TfLiteStatus ResizeOutputTensors(TfLiteContext* context, TfLiteNode* node, TF_LITE_ENSURE(context, axis_value < NumDimensions(input)); const int input_size = SizeOfDimension(input, axis_value); TF_LITE_ENSURE_MSG(context, input_size % num_splits == 0, "Not an even split"); const int slice... | TfLiteStatus ResizeOutputTensors(TfLiteContext* context, TfLiteNode* node, TF_LITE_ENSURE(context, axis_value < NumDimensions(input)); const int input_size = SizeOfDimension(input, axis_value); TF_LITE_ENSURE(context, num_splits != 0); TF_LITE_ENSURE_MSG(context, input_size % num_splits == 0, ... | GHSA-97wf-p777-86jq | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/b22786e7e9b7bdb6a56936ff29cc7e9968d7bc1d'} | osv | Division by zero in TFLite's implementation of Split ### Impact
The implementation of the `Split` TFLite operator is [vulnerable to a division by zero error](https://github.com/tensorflow/tensorflow/blob/e2752089ef7ce9bcf3db0ec618ebd23ea119d0c7/tensorflow/lite/kernels/split.cc#L63-L65):
```cc
TF_LITE_ENSURE_MSG(contex... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/b22786e7e9b7bdb6a56936ff29cc7e9968d7bc1d | b22786e7e9b7bdb6a56936ff29cc7e9968d7bc1d | SINGLE | ['b22786e7e9b7bdb6a56936ff29cc7e9968d7bc1d'] | {'e2752089ef7ce9bcf3db0ec618ebd23ea119d0c7'} | b22786e7e9b7bdb6a56936ff29cc7e9968d7bc1d | 1 | 04/28/2021, 22:31:26 | Prevent division by 0
PiperOrigin-RevId: 370998952
Change-Id: I6b1d49079624ee1447d2d9b53a8976fb356cc8f5 | Mihai Maruseac | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -60,6 +60,7 @@ TfLiteStatus ResizeOutputTensors(TfLiteContext* context, TfLiteNode* node,\n TF_LITE_ENSURE(context, axis_value < NumDimensions(input));\n \n const int input_size = SizeOfDimension(input, axis_value);\n+ TF_LITE_ENSURE(... | cc | CWE-369 | [
"tensorflow/lite/kernels/split.cc"
] | tensorflow/lite/kernels/split.cc | 1 |
import re import inspect __version__ = '0.8' __author__ = 'Hsiaoming Yang <me@lepture.com>' __all__ = [ 'BlockGrammar', 'BlockLexer', def _pure_pattern(regex): def _keyify(key): return _key_pattern.sub(' ', key.lower()) def escape(text, quote=False, smart_amp=True): class InlineGrammar(object): inline... | import re import inspect __version__ = '0.8.1' __author__ = 'Hsiaoming Yang <me@lepture.com>' __all__ = [ 'BlockGrammar', 'BlockLexer', def _pure_pattern(regex): def _keyify(key): key = escape(key.lower(), quote=True) return _key_pattern.sub(' ', key) def escape(text, quote=False, smart_amp=True): cla... | GHSA-98gj-wwxm-cj3h | {'CWE-79'} | 6.1 | {'https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98'} | osv | Moderate severity vulnerability that affects mistune Cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1 allows remote attackers to inject arbitrary web script or HTML by leveraging failure to escape the "key" argument. | 2019-01-04 | 1 | https://github.com/lepture/mistune | https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98 | 5f06d724bc05580e7f203db2d4a4905fc1127f98 | SINGLE | ['5f06d724bc05580e7f203db2d4a4905fc1127f98'] | {'7f7f106a717e6cf58012304e56b41d6fb2b98e5f'} | 5f06d724bc05580e7f203db2d4a4905fc1127f98 | 1 | 11/20/2017, 15:15:09 | Fix CVE-2017-16876 | Hsiaoming Yang | null | {'additions': 5, 'deletions': 3, 'total': 8} | [
{
"additions": 5,
"changes": 8,
"deletions": 3,
"patch": "@@ -11,7 +11,7 @@\n import re\n import inspect\n \n-__version__ = '0.8'\n+__version__ = '0.8.1'\n __author__ = 'Hsiaoming Yang <me@lepture.com>'\n __all__ = [\n 'BlockGrammar', 'BlockLexer',\n@@ -48,7 +48,8 @@ def _pure_pattern(regex):\n ... | py | CWE-79 | [
"mistune.py"
] | mistune.py | 1 |
private ChannelBuffer unwrap( // always contain at least one record in decode(). Therefore, if SSLEngine.unwrap() returns // BUFFER_OVERFLOW, it is always resolved by retrying after emptying the application buffer. for (;;) { try { ... | private ChannelBuffer unwrap( // always contain at least one record in decode(). Therefore, if SSLEngine.unwrap() returns // BUFFER_OVERFLOW, it is always resolved by retrying after emptying the application buffer. for (;;) { final in... | GHSA-9959-6p3m-wxpc | {'CWE-119'} | 0 | {'https://github.com/netty/netty/commit/2fa9400a59d0563a66908aba55c41e7285a04994'} | osv | Denial of service in Netty The SslHandler in Netty before 3.9.2 allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a crafted SSLv2Hello message. | 2020-06-30 | 1 | https://github.com/netty/netty | https://github.com/netty/netty/commit/2fa9400a59d0563a66908aba55c41e7285a04994 | 2fa9400a59d0563a66908aba55c41e7285a04994 | SINGLE | ['2fa9400a59d0563a66908aba55c41e7285a04994'] | {'129c17aaa4ac5c611519ef480c35a12e8282b807'} | 2fa9400a59d0563a66908aba55c41e7285a04994 | 1 | 06/10/2014, 08:55:19 | Fix a bug where SslHandler does not handle SSLv2Hello correctly
Motivation:
When a SSLv2Hello message is received, SSLEngine expects the application buffer size to be more than 30KB which is larger than what SslBufferPool can provide. SSLEngine will always return with BUFFER_OVERFLOW status, blocking the SSL session... | Trustin Lee | {'com_1': {'author': 'normanmaurer', 'datetime': '06/10/2014, 10:12:19', 'body': "shouldn't this check against remaining() ?"}, 'com_2': {'author': 'trustin', 'datetime': '06/10/2014, 11:07:26', 'body': 'Not really because we always clear the buffer at the finally block below.'}} | {'additions': 15, 'deletions': 5, 'total': 20} | [
{
"additions": 15,
"changes": 20,
"deletions": 5,
"patch": "@@ -1268,8 +1268,18 @@ private ChannelBuffer unwrap(\n // always contain at least one record in decode(). Therefore, if SSLEngine.unwrap() returns\n // BUFFER_OVERFLOW, it is always resolved by retry... | java | CWE-119 | [
"src/main/java/org/jboss/netty/handler/ssl/SslHandler.java"
] | src/main/java/org/jboss/netty/handler/ssl/SslHandler.java | 1 |
TfLiteStatus EvalShuffledQuantized(TfLiteContext* context, TfLiteNode* node, return kTfLiteOk; } template <KernelType kernel_type> TfLiteStatus EvalFloat(TfLiteContext* context, TfLiteNode* node, TfLiteFullyConnectedParams* params, OpData* data, TfLiteStatus EvalFloat(TfLiteContext* context, ... | TfLiteStatus EvalShuffledQuantized(TfLiteContext* context, TfLiteNode* node, return kTfLiteOk; } // Verifies that sparsity values are valid given input/weight/output. bool VerifySparsity(const RuntimeShape& weights_shape, const RuntimeShape& input_shape, const RuntimeShape& o... | GHSA-9c78-vcq7-7vxq | {'CWE-787'} | 8.8 | {'https://github.com/tensorflow/tensorflow/commit/6c0b2b70eeee588591680f5b7d5d38175fd7cdf6'} | osv | Out of bounds write in TFLite ### Impact
An attacker can craft a TFLite model that would cause a write outside of bounds of an array in TFLite. In fact, the attacker can override the linked list used by the memory allocator. This can be leveraged for an arbitrary write primitive under certain conditions.
### Patches
... | 2022-02-09 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/6c0b2b70eeee588591680f5b7d5d38175fd7cdf6 | 6c0b2b70eeee588591680f5b7d5d38175fd7cdf6 | SINGLE | ['6c0b2b70eeee588591680f5b7d5d38175fd7cdf6'] | {'1de49725a5fc4e48f1a3b902ec3599ee99283043'} | 6c0b2b70eeee588591680f5b7d5d38175fd7cdf6 | 1 | 12/21/2021, 16:50:37 | [lite] add validation check for sparse fully connected
PiperOrigin-RevId: 417629354
Change-Id: If96171c4bd4f5fdb01d6368d6deab19d1c9beca7 | Karim Nosir | null | {'additions': 48, 'deletions': 10, 'total': 58} | [
{
"additions": 48,
"changes": 58,
"deletions": 10,
"patch": "@@ -928,6 +928,36 @@ TfLiteStatus EvalShuffledQuantized(TfLiteContext* context, TfLiteNode* node,\n return kTfLiteOk;\n }\n \n+// Verifies that sparsity values are valid given input/weight/output.\n+bool VerifySparsity(const RuntimeShape... | cc | CWE-787 | [
"tensorflow/lite/kernels/fully_connected.cc"
] | tensorflow/lite/kernels/fully_connected.cc | 1 |
limitations under the License. #include <stdint.h> #include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/common.h" #include "tensorflow/lite/kernels/internal/compatibility.h" TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { TF_LITE_ENSURE_EQ(context, t->type, input_type); ... | limitations under the License. #include <stdint.h> #include <limits> #include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/common.h" #include "tensorflow/lite/kernels/internal/compatibility.h" TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { TF_LITE_ENSURE_EQ(context, t->typ... | GHSA-9c84-4hx6-xmm4 | {'CWE-190'} | 6.3 | {'https://github.com/tensorflow/tensorflow/commit/4253f96a58486ffe84b61c0415bb234a4632ee73'} | osv | Integer overflow in TFLite concatentation ### Impact
The TFLite implementation of concatenation is [vulnerable to an integer overflow issue](https://github.com/tensorflow/tensorflow/blob/7b7352a724b690b11bfaae2cd54bc3907daf6285/tensorflow/lite/kernels/concatenation.cc#L70-L76):
```cc
for (int d = 0; d < t0->dims->size... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/4253f96a58486ffe84b61c0415bb234a4632ee73 | 4253f96a58486ffe84b61c0415bb234a4632ee73 | SINGLE | ['4253f96a58486ffe84b61c0415bb234a4632ee73'] | {'7b7352a724b690b11bfaae2cd54bc3907daf6285'} | 4253f96a58486ffe84b61c0415bb234a4632ee73 | 1 | 04/28/2021, 23:50:55 | Fix integer overflow in TFLite concat
PiperOrigin-RevId: 371013841
Change-Id: I6a4782ce7ca753e23ff31e7fb6aeb7f9d412cd29 | Mihai Maruseac | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -16,6 +16,8 @@ limitations under the License.\n \n #include <stdint.h>\n \n+#include <limits>\n+\n #include \"tensorflow/lite/c/builtin_op_data.h\"\n #include \"tensorflow/lite/c/common.h\"\n #include \"tensorflow/lite/kernels/internal/com... | cc | CWE-190 | [
"tensorflow/lite/kernels/concatenation.cc"
] | tensorflow/lite/kernels/concatenation.cc | 1 |
Status Conv2DShapeImpl(shape_inference::InferenceContext* c, if (c->ValueKnown(input_depth_dim) && c->ValueKnown(filter_input_depth_dim)) { int64_t input_depth_value = c->Value(input_depth_dim), filter_input_depth_value = c->Value(filter_input_depth_dim); if (input_depth_value % filter_input_dept... | Status Conv2DShapeImpl(shape_inference::InferenceContext* c, if (c->ValueKnown(input_depth_dim) && c->ValueKnown(filter_input_depth_dim)) { int64_t input_depth_value = c->Value(input_depth_dim), filter_input_depth_value = c->Value(filter_input_depth_dim); if (filter_input_depth_value == 0) ... | GHSA-9c8h-2mv3-49ww | {'CWE-369'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/8a793b5d7f59e37ac7f3cd0954a750a2fe76bad4'} | osv | Division by 0 in most convolution operators ### Impact
Most implementations of convolution operators in TensorFlow are affected by a division by 0 vulnerability where an attacker can trigger a denial of service via a crash:
```python
import tensorflow as tf
tf.compat.v1.disable_v2_behavior()
tf.raw_ops.Conv2D(
inpu... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/8a793b5d7f59e37ac7f3cd0954a750a2fe76bad4 | 8a793b5d7f59e37ac7f3cd0954a750a2fe76bad4 | SINGLE | ['8a793b5d7f59e37ac7f3cd0954a750a2fe76bad4'] | {'1071f554dbd09f7e101324d366eec5f4fe5a3ece'} | 8a793b5d7f59e37ac7f3cd0954a750a2fe76bad4 | 1 | 07/30/2021, 01:23:45 | Prevent division by 0 in common shape functions.
PiperOrigin-RevId: 387712197
Change-Id: Id25c7460e35b68aeeeac23b9a88e455b443ee149 | Mihai Maruseac | null | {'additions': 11, 'deletions': 0, 'total': 11} | [
{
"additions": 11,
"changes": 11,
"deletions": 0,
"patch": "@@ -672,6 +672,8 @@ Status Conv2DShapeImpl(shape_inference::InferenceContext* c,\n if (c->ValueKnown(input_depth_dim) && c->ValueKnown(filter_input_depth_dim)) {\n int64_t input_depth_value = c->Value(input_depth_dim),\n f... | cc | CWE-369 | [
"tensorflow/core/framework/common_shape_fns.cc"
] | tensorflow/core/framework/common_shape_fns.cc | 1 |
class RaggedGatherOpBase : public OpKernel { void Compute(OpKernelContext* context) override { // Get the input Tensors. OpInputList params_nested_splits_in; OP_REQUIRES_OK(context, context->input_list("params_nested_splits", ¶ms_nested_splits_in)); ... | class RaggedGatherOpBase : public OpKernel { void Compute(OpKernelContext* context) override { // Get the input Tensors. OpInputList params_nested_splits_in; OP_REQUIRES_OK(context, context->input_list("params_nested_splits", ¶ms_nested_splits_in)); ... | GHSA-9c8h-vvrj-w2p8 | {'CWE-125'} | 7.1 | {'https://github.com/tensorflow/tensorflow/commit/a2b743f6017d7b97af1fe49087ae15f0ac634373'} | osv | Heap OOB in `RaggedGather` ### Impact
If the arguments to `tf.raw_ops.RaggedGather` don't determine a valid ragged tensor code can trigger a read from outside of bounds of heap allocated buffers.
... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/a2b743f6017d7b97af1fe49087ae15f0ac634373 | a2b743f6017d7b97af1fe49087ae15f0ac634373 | SINGLE | ['a2b743f6017d7b97af1fe49087ae15f0ac634373'] | {'4979e3b104cede96958ea88be5ce5fc584949340'} | a2b743f6017d7b97af1fe49087ae15f0ac634373 | 1 | 08/03/2021, 02:05:27 | Fix heap OOB in `tf.raw_ops.RaggedGather`
PiperOrigin-RevId: 388355464
Change-Id: If14d96231d1cd7aad7c4d1c22c1bab1576b75717 | Mihai Maruseac | null | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -58,15 +58,21 @@ class RaggedGatherOpBase : public OpKernel {\n \n void Compute(OpKernelContext* context) override {\n // Get the input Tensors.\n+\n OpInputList params_nested_splits_in;\n OP_REQUIRES_OK(context, context->inp... | cc | CWE-125 | [
"tensorflow/core/kernels/ragged_gather_op.cc"
] | tensorflow/core/kernels/ragged_gather_op.cc | 1 |
public function addUser(){ $this->checkAdmin(); $username = I("post.username"); $password = I("post.password"); $uid = I("post.uid"); $name = I("post.name"); if(!$username){ $this->sendError(10101,'用户名不允许为空'); | public function addUser(){ $this->checkAdmin(); $username = I("post.username"); $password = I("post.password"); $uid = I("post.uid/d"); $name = I("post.name"); if(!$username){ $this->sendError(10101,'用户名不允许为空'); | GHSA-9cq5-xgg4-x477 | {'CWE-89'} | 6.7 | {'https://github.com/star7th/showdoc/commit/2b34e267e4186125f99bfa420140634ad45801fb'} | osv | SQL Injection in showdoc Showdoc verions 2.10.2 and prior is vulnerable to SQL injection. A patch is available in the `master` branch of the repository. | 2022-01-27 | 1 | https://github.com/star7th/showdoc | https://github.com/star7th/showdoc/commit/2b34e267e4186125f99bfa420140634ad45801fb | 2b34e267e4186125f99bfa420140634ad45801fb | SINGLE | ['2b34e267e4186125f99bfa420140634ad45801fb'] | {'409c8a1208bbb847046a9496303192980f2e6219'} | 2b34e267e4186125f99bfa420140634ad45801fb | 1 | 01/25/2022, 12:34:52 | bug | star7th | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -76,7 +76,7 @@ public function addUser(){\n $this->checkAdmin();\n $username = I(\"post.username\");\n $password = I(\"post.password\");\n- $uid = I(\"post.uid\");\n+ $uid = I(\"post.uid/d\");\n ... | php | CWE-89 | [
"server/Application/Api/Controller/AdminUserController.class.php"
] | server/Application/Api/Controller/AdminUserController.class.php | 1 |
classes: 'table table-responsive table-no-bordered', export: 'fa-download', clearSearch: 'fa-times' }, exportTypes: ['csv', 'excel', 'doc', 'txt','json', 'xml', 'pdf'], onLoadSuccess: function () { $('[data-toggle="tooltip"]').tooltip(... | classes: 'table table-responsive table-no-bordered', export: 'fa-download', clearSearch: 'fa-times' }, exportOptions: { htmlContent: true, }, exportTypes: ['csv', 'excel', 'doc', 'txt','json', 'xml', 'pdf'], on... | GHSA-9g3v-j3cr-6fc6 | {'CWE-79'} | 6.8 | {'https://github.com/snipe/snipe-it/commit/bda23bb1e66fd7ce42c75c69cf5eea4e80865c1c'} | osv | Cross-site Scripting in snipe-it snipe-it is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | 2021-10-21 | 1 | https://github.com/snipe/snipe-it | https://github.com/snipe/snipe-it/commit/bda23bb1e66fd7ce42c75c69cf5eea4e80865c1c | bda23bb1e66fd7ce42c75c69cf5eea4e80865c1c | SINGLE | ['bda23bb1e66fd7ce42c75c69cf5eea4e80865c1c'] | {'5d94b99035317cd23059c7af91ff5f38177f5968'} | bda23bb1e66fd7ce42c75c69cf5eea4e80865c1c | 1 | 10/15/2021, 16:50:52 | Fixes possible XSS on all-file-types export
Signed-off-by: snipe <snipe@snipe.net> | snipe | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -75,6 +75,10 @@ classes: 'table table-responsive table-no-bordered',\n export: 'fa-download',\n clearSearch: 'fa-times'\n },\n+ exportOptions: {\n+ htmlContent: true,\n+... | php | CWE-79 | [
"resources/views/partials/bootstrap-table.blade.php"
] | resources/views/partials/bootstrap-table.blade.php | 1 |
static JasperInitializer initialize_jasper; Jpeg2KDecoder::Jpeg2KDecoder() { m_signature = '\0' + String() + '\0' + String() + '\0' + String("\x0cjP \r\n\x87\n"); m_stream = 0; m_image = 0; } bool Jpeg2KDecoder::readHeader() jas_image_t* image = jas_image_decode( stream, -1, 0 ); m_image... | static JasperInitializer initialize_jasper; Jpeg2KDecoder::Jpeg2KDecoder() { static const unsigned char signature_[12] = { 0, 0, 0, 0x0c, 'j', 'P', ' ', ' ', 13, 10, 0x87, 10}; m_signature = String((const char*)signature_, (const char*)signature_ + sizeof(signature_)); m_stream = 0; m_image = 0; } boo... | GHSA-9g8h-pjm4-q92p | {'CWE-787'} | 5.5 | {'https://github.com/opencv/opencv/pull/10566/commits/435a3e337bd9d4e11af61cf8b8afca067bf1a8aa'} | osv | Out-of-bounds Write in OpenCV. In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file. | 2021-10-12 | 1 | https://github.com/opencv/opencv | https://github.com/opencv/opencv/pull/10566/commits/435a3e337bd9d4e11af61cf8b8afca067bf1a8aa | 435a3e337bd9d4e11af61cf8b8afca067bf1a8aa | SINGLE | ['435a3e337bd9d4e11af61cf8b8afca067bf1a8aa'] | {'f34a0a874a029a6201df0acbf46eeeaab8686e4d'} | 435a3e337bd9d4e11af61cf8b8afca067bf1a8aa | 1 | 01/09/2018, 14:36:57 | imgcodecs: add more Jasper checks for supported and tested cases | Alexander Alekhin | null | {'additions': 39, 'deletions': 7, 'total': 46} | [
{
"additions": 39,
"changes": 46,
"deletions": 7,
"patch": "@@ -77,7 +77,8 @@ static JasperInitializer initialize_jasper;\n \n Jpeg2KDecoder::Jpeg2KDecoder()\n {\n- m_signature = '\\0' + String() + '\\0' + String() + '\\0' + String(\"\\x0cjP \\r\\n\\x87\\n\");\n+ static const unsigned char si... | cpp | CWE-787 | [
"modules/imgcodecs/src/grfmt_jpeg2000.cpp"
] | modules/imgcodecs/src/grfmt_jpeg2000.cpp | 1 |
async def get_resolved_ref(self): self.sha1_validate(self.unresolved_ref) except ValueError: # The ref is a head/tag and we resolve it using `git ls-remote` command = ["git", "ls-remote", self.repo, self.unresolved_ref] result = subprocess.run(command, universal_... | async def get_resolved_ref(self): self.sha1_validate(self.unresolved_ref) except ValueError: # The ref is a head/tag and we resolve it using `git ls-remote` command = ["git", "ls-remote", "--", self.repo, self.unresolved_ref] result = subprocess.run(command, univ... | GHSA-9jjr-qqfp-ppwx | {'CWE-94'} | 9.6 | {'https://github.com/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182'} | osv | remote code execution via git repo provider ### Impact
A remote code execution vulnerability has been identified in BinderHub, where providing BinderHub with maliciously crafted input could execute code in the BinderHub context, with the potential to egress credentials of the BinderHub deployment, including JupyterHub... | 2021-08-30 | 1 | https://github.com/jupyterhub/binderhub | https://github.com/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182 | 195caac172690456dcdc8cc7a6ca50e05abf8182 | SINGLE | ['195caac172690456dcdc8cc7a6ca50e05abf8182'] | {'034430adc8ed379135f3ef46ee6ca650781ef67c'} | 195caac172690456dcdc8cc7a6ca50e05abf8182 | 1 | 08/19/2021, 13:49:43 | Explicitly separate git-ls-remote options from positional arguments | Riccardo Castellotti | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -484,7 +484,7 @@ async def get_resolved_ref(self):\n self.sha1_validate(self.unresolved_ref)\n except ValueError:\n # The ref is a head/tag and we resolve it using `git ls-remote`\n- command = [\"... | py | CWE-94 | [
"binderhub/repoproviders.py"
] | binderhub/repoproviders.py | 1 |
func (te *TarExtractor) UnpackEntry(root string, hdr *tar.Header, r io.Reader) ( if filepath.Join("/", hdr.Name) == "/" { // If we got an entry for the root, then unsafeDir is the full path. unsafeDir, file = hdr.Name, "." } dir, err := securejoin.SecureJoinVFS(root, unsafeDir, te.fsEval) if err != nil { | func (te *TarExtractor) UnpackEntry(root string, hdr *tar.Header, r io.Reader) ( if filepath.Join("/", hdr.Name) == "/" { // If we got an entry for the root, then unsafeDir is the full path. unsafeDir, file = hdr.Name, "." // If we're being asked to change the root type, bail because they may // change it to ... | GHSA-9m95-8hx6-7p9v | {'CWE-20'} | 5.5 | {'https://github.com/opencontainers/umoci/commit/d9efc31daf2206f7d3fdb839863cf7a576a2eb57'} | osv | Improper input validation in umoci ### Impact
umoci 0.4.6 and earlier can be tricked into modifying host files by
creating a malicious layer that has a symlink with the name "." (or
"/"). Because umoci deletes inodes if they change types, this results in
the rootfs directory being replaced with an attacker-controlled ... | 2022-02-15 | 1 | https://github.com/opencontainers/umoci | https://github.com/opencontainers/umoci/commit/d9efc31daf2206f7d3fdb839863cf7a576a2eb57 | d9efc31daf2206f7d3fdb839863cf7a576a2eb57 | SINGLE | ['d9efc31daf2206f7d3fdb839863cf7a576a2eb57'] | {'07fa845e5b068dee64dcbf391b456a564a6fcfa6'} | d9efc31daf2206f7d3fdb839863cf7a576a2eb57 | 1 | 03/23/2021, 13:17:06 | layer: don't permit / type to be changed on extraction
If users can change the type of / to a symlink, they can cause umoci to
overwrite host files. This is obviously bad, and is not caught by the
rest of our directory escape detection code because the root itself has
been changed to a different directory.
Fixes: CVE... | Aleksa Sarai | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -404,6 +404,11 @@ func (te *TarExtractor) UnpackEntry(root string, hdr *tar.Header, r io.Reader) (\n \tif filepath.Join(\"/\", hdr.Name) == \"/\" {\n \t\t// If we got an entry for the root, then unsafeDir is the full path.\n \t\tunsafeDir,... | go | CWE-20 | [
"oci/layer/tar_extract.go"
] | oci/layer/tar_extract.go | 1 |
limitations under the License. #include "tensorflow/core/framework/op_def.pb.h" #include "tensorflow/core/framework/types.h" #include "tensorflow/core/platform/statusor.h" namespace tensorflow { StatusOr<FullTypeDef> SpecializeType(const AttrSlice& attrs, auto* arg = t->mutable_args(i); if (arg->type_id(... | limitations under the License. #include "tensorflow/core/framework/op_def.pb.h" #include "tensorflow/core/framework/types.h" #include "tensorflow/core/platform/statusor.h" #include "tensorflow/core/protobuf/error_codes.pb.h" namespace tensorflow { StatusOr<FullTypeDef> SpecializeType(const AttrSlice& attrs, au... | GHSA-9p77-mmrw-69c7 | {'CWE-476'} | 6.5 | {'https://github.com/tensorflow/tensorflow/commit/8a513cec4bec15961fbfdedcaa5376522980455c'} | osv | Null-dereference in Tensorflow ### Impact
When decoding a tensor from protobuf, TensorFlow might do a null-dereference if attributes of some mutable arguments to some operations are missing from the proto. This is [guarded by a `DCHECK`](https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2... | 2022-02-09 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/8a513cec4bec15961fbfdedcaa5376522980455c | 8a513cec4bec15961fbfdedcaa5376522980455c | SINGLE | ['8a513cec4bec15961fbfdedcaa5376522980455c'] | {'258112d838f008a632fe0dc43fc9ebecb9b0b869'} | 8a513cec4bec15961fbfdedcaa5376522980455c | 1 | 11/08/2021, 18:35:47 | Prevent null dereference read in `SpecializeType()`
For some adversarial protos, the attribute for a key might not exist.
PiperOrigin-RevId: 408382090
Change-Id: Ie7eabe532c9ff280fce5dce1f6cdb93c76c2e040 | Mihai Maruseac | null | {'additions': 6, 'deletions': 1, 'total': 7} | [
{
"additions": 6,
"changes": 7,
"deletions": 1,
"patch": "@@ -22,6 +22,7 @@ limitations under the License.\n #include \"tensorflow/core/framework/op_def.pb.h\"\n #include \"tensorflow/core/framework/types.h\"\n #include \"tensorflow/core/platform/statusor.h\"\n+#include \"tensorflow/core/protobuf/er... | cc | CWE-476 | [
"tensorflow/core/framework/full_type_util.cc"
] | tensorflow/core/framework/full_type_util.cc | 1 |
limitations under the License. #include "tensorflow/core/framework/types.h" #include "tensorflow/core/kernels/reshape_util.h" #include "tensorflow/core/lib/gtl/inlined_vector.h" namespace tensorflow { class SparseReshapeOp : public OpKernel { explicit SparseReshapeOp(OpKernelConstruction* context) : OpKernel(conte... | limitations under the License. #include "tensorflow/core/framework/types.h" #include "tensorflow/core/kernels/reshape_util.h" #include "tensorflow/core/lib/gtl/inlined_vector.h" #include "tensorflow/core/platform/errors.h" namespace tensorflow { class SparseReshapeOp : public OpKernel { explicit SparseReshapeOp(Op... | GHSA-9rpc-5v9q-5r7f | {'CWE-665', 'CWE-20'} | 3.6 | {'https://github.com/tensorflow/tensorflow/commit/1d04d7d93f4ed3854abf75d6b712d72c3f70d6b6'} | osv | Incomplete validation in `SparseReshape` ### Impact
Incomplete validation in `SparseReshape` results in a denial of service based on a `CHECK`-failure.
```python
import tensorflow as tf
input_indices = tf.constant(41, shape=[1, 1], dtype=tf.int64)
input_shape = tf.zeros([11], dtype=tf.int64)
new_shape = tf.zeros([1],... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/1d04d7d93f4ed3854abf75d6b712d72c3f70d6b6 | 1d04d7d93f4ed3854abf75d6b712d72c3f70d6b6 | SINGLE | ['1d04d7d93f4ed3854abf75d6b712d72c3f70d6b6'] | {'8d78df9997a8537a2f389adc2cfdc36e71da0665'} | 1d04d7d93f4ed3854abf75d6b712d72c3f70d6b6 | 1 | 04/29/2021, 22:30:30 | Fix heap-buffer-overflow issue with `tf.raw_ops.SparseReshape`.
PiperOrigin-RevId: 371218558
Change-Id: I6a6dc5bf15b50a1d05bdd95e9ba347cb39f40f45 | Amit Patankar | null | {'additions': 12, 'deletions': 0, 'total': 12} | [
{
"additions": 12,
"changes": 12,
"deletions": 0,
"patch": "@@ -26,6 +26,7 @@ limitations under the License.\n #include \"tensorflow/core/framework/types.h\"\n #include \"tensorflow/core/kernels/reshape_util.h\"\n #include \"tensorflow/core/lib/gtl/inlined_vector.h\"\n+#include \"tensorflow/core/pla... | cc | CWE-20 | [
"tensorflow/core/kernels/sparse_reshape_op.cc"
] | tensorflow/core/kernels/sparse_reshape_op.cc | 1 |
SassImportList CustomImporterBridge::post_process_return_value(v8::Local<v8::Val imports = sass_make_import_list(array->Length()); for (size_t i = 0; i < array->Length(); ++i) { v8::Local<v8::Value> value = Nan::Get(array, static_cast<uint32_t>(i)).ToLocalChecked(); if (!value->IsObject()) { ... | SassImportList CustomImporterBridge::post_process_return_value(v8::Local<v8::Val imports = sass_make_import_list(array->Length()); for (size_t i = 0; i < array->Length(); ++i) { v8::Local<v8::Value> value; Nan::MaybeLocal<v8::Value> unchecked = Nan::Get(array, static_cast<uint32_t>(i)); if ... | GHSA-9v62-24cr-58cx | {'CWE-400'} | 5.9 | {'https://github.com/sass/node-sass/commit/338fd7a14d3b8bd374a382336df16f9c6792b884'} | osv | Denial of Service in node-sass Affected versions of `node-sass` are vulnerable to Denial of Service (DoS). Crafted objects passed to the `renderSync` function may trigger C++ assertions in `CustomImporterBridge::get_importer_entry` and `CustomImporterBridge::post_process_return_value` that crash the Node process. This ... | 2020-09-11 | 1 | https://github.com/sass/node-sass | https://github.com/sass/node-sass/commit/338fd7a14d3b8bd374a382336df16f9c6792b884 | 338fd7a14d3b8bd374a382336df16f9c6792b884 | SINGLE | ['338fd7a14d3b8bd374a382336df16f9c6792b884'] | {'c6f2e5a1643dd00105b63a638756dc99fc33c3e4'} | 338fd7a14d3b8bd374a382336df16f9c6792b884 | 1 | 01/16/2020, 08:51:15 | Merge pull request from GHSA-f6rp-gv58-9cw3 | Michael Mifsud | null | {'additions': 8, 'deletions': 7, 'total': 15} | [
{
"additions": 8,
"changes": 15,
"deletions": 7,
"patch": "@@ -13,11 +13,12 @@ SassImportList CustomImporterBridge::post_process_return_value(v8::Local<v8::Val\n imports = sass_make_import_list(array->Length());\n \n for (size_t i = 0; i < array->Length(); ++i) {\n- v8::Local<v8::Value>... | cpp | CWE-400 | [
"src/custom_importer_bridge.cpp"
] | src/custom_importer_bridge.cpp | 1 |
class MaxPoolingGradWithArgmaxOp : public OpKernel { OP_REQUIRES_OK(context, context->forward_input_or_allocate_output( {0}, 0, out_shape, &grad_out)); LaunchMaxPoolingGradWithArgmax<Device, T>::launch( context, params, grad_in, argmax, grad_out, include_batch_in_index_... | class MaxPoolingGradWithArgmaxOp : public OpKernel { OP_REQUIRES_OK(context, context->forward_input_or_allocate_output( {0}, 0, out_shape, &grad_out)); if (out_shape.num_elements() == 0) return; // nothing to be done LaunchMaxPoolingGradWithArgmax<Device, T>::launch( ... | GHSA-9vpm-rcf4-9wqw | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/376c352a37ce5a68b721406dc7e77ac4b6cf483d'} | osv | Division by 0 in `MaxPoolGradWithArgmax` ### Impact
The implementation of `tf.raw_ops.MaxPoolGradWithArgmax` is vulnerable to a division by 0:
```python
import tensorflow as tf
input = tf.constant([], shape=[0, 0, 0, 0], dtype=tf.float32)
grad = tf.constant([], shape=[0, 0, 0, 0], dtype=tf.float32)
argmax = tf.consta... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/376c352a37ce5a68b721406dc7e77ac4b6cf483d | 376c352a37ce5a68b721406dc7e77ac4b6cf483d | SINGLE | ['376c352a37ce5a68b721406dc7e77ac4b6cf483d'] | {'279bab6efa22752a2827621b7edb56a730233bd8'} | 376c352a37ce5a68b721406dc7e77ac4b6cf483d | 1 | 05/05/2021, 21:34:54 | Don't do any work if output tensor is null (prevent div by 0)
PiperOrigin-RevId: 372208700
Change-Id: Iea6b6293e887ade8538facfdb50fb931e17f511e | Mihai Maruseac | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -1088,6 +1088,8 @@ class MaxPoolingGradWithArgmaxOp : public OpKernel {\n OP_REQUIRES_OK(context, context->forward_input_or_allocate_output(\n {0}, 0, out_shape, &grad_out));\n \n+ if (out_shape.num_e... | cc | CWE-369 | [
"tensorflow/core/kernels/maxpooling_op.cc"
] | tensorflow/core/kernels/maxpooling_op.cc | 1 |
public function module() $request_data_new = []; $antixss = new AntiXSS(); foreach ($request_data as $k=>$v){ $v = $antixss->xss_clean($v); if(is_string($k)){ $k = $antixss->xss_clean($k); if($k){ ... | public function module() $request_data_new = []; $antixss = new AntiXSS(); foreach ($request_data as $k=>$v){ if(is_string($v)) { $v = str_replace('<', '-', $v); $v = str_replace('>', '-', $v); } ... | GHSA-9w7h-3wwh-6m5q | {'CWE-79'} | 6.3 | {'https://github.com/microweber/microweber/commit/ad3928f67b2cd4443f4323d858b666d35a919ba8'} | osv | Cross-site Scripting in Microweber Microweber prior to 1.2.15 is vulnerable to reflected cross-site scripting on demo.microweber.org/demo/module/. This allows the execution of arbitrary JavaScript as the attacked user. | 2022-04-23 | 1 | https://github.com/microweber/microweber | https://github.com/microweber/microweber/commit/ad3928f67b2cd4443f4323d858b666d35a919ba8 | ad3928f67b2cd4443f4323d858b666d35a919ba8 | SINGLE | ['ad3928f67b2cd4443f4323d858b666d35a919ba8'] | {'3e47c4f1933aa3ffd0975e24e34b7af35de947b4'} | ad3928f67b2cd4443f4323d858b666d35a919ba8 | 1 | 04/22/2022, 16:26:41 | update | Peter Ivanov | null | {'additions': 7, 'deletions': 2, 'total': 9} | [
{
"additions": 7,
"changes": 9,
"deletions": 2,
"patch": "@@ -611,18 +611,23 @@ public function module()\n $request_data_new = [];\n $antixss = new AntiXSS();\n foreach ($request_data as $k=>$v){\n-\n+ if(is_string($v)) {\n+ $v = ... | php | CWE-79 | [
"src/MicroweberPackages/App/Http/Controllers/ApiController.php"
] | src/MicroweberPackages/App/Http/Controllers/ApiController.php | 1 |
class FusedBatchNormOpBase : public OpKernel { errors::InvalidArgument("Error during tensor copy.")); } if (has_side_input_) { OP_REQUIRES(context, side_input->shape() == x.shape(), errors::InvalidArgument( class FusedBatchNormOpBase : public OpKernel { // NOTE(... | class FusedBatchNormOpBase : public OpKernel { errors::InvalidArgument("Error during tensor copy.")); } const auto num_channels = GetTensorDim(x, tensor_format_, 'C'); OP_REQUIRES( context, scale.NumElements() == num_channels, errors::InvalidArgument("scale must have the ... | GHSA-9xh4-23q4-v6wr | {'CWE-476', 'CWE-787', 'CWE-125'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/6972f9dfe325636b3db4e0bc517ee22a159365c0'} | osv | Heap buffer overflow and undefined behavior in `FusedBatchNorm` ### Impact
The implementation of `tf.raw_ops.FusedBatchNorm` is vulnerable to a heap buffer overflow:
```python
import tensorflow as tf
x = tf.zeros([10, 10, 10, 6], dtype=tf.float32)
scale = tf.constant([0.0], shape=[1], dtype=tf.float32)
offset =... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/6972f9dfe325636b3db4e0bc517ee22a159365c0 | 6972f9dfe325636b3db4e0bc517ee22a159365c0 | SINGLE | ['6972f9dfe325636b3db4e0bc517ee22a159365c0'] | {'57d86e0db5d1365f19adcce848dfc1bf89fdd4c7'} | 6972f9dfe325636b3db4e0bc517ee22a159365c0 | 1 | 05/07/2021, 00:45:51 | Add missing valuidation to FusedBatchNorm.
PiperOrigin-RevId: 372460336
Change-Id: Ic8c4e4de67c58a741bd87f2e182bed07247d1126 | Mihai Maruseac | null | {'additions': 27, 'deletions': 1, 'total': 28} | [
{
"additions": 27,
"changes": 28,
"deletions": 1,
"patch": "@@ -1282,6 +1282,32 @@ class FusedBatchNormOpBase : public OpKernel {\n errors::InvalidArgument(\"Error during tensor copy.\"));\n }\n \n+ const auto num_channels = GetTensorDim(x, tensor_format_, 'C');\n+ OP_REQ... | cc | CWE-476 | [
"tensorflow/core/kernels/fused_batch_norm_op.cc"
] | tensorflow/core/kernels/fused_batch_norm_op.cc | 1 |
class FusedBatchNormOpBase : public OpKernel { errors::InvalidArgument("Error during tensor copy.")); } if (has_side_input_) { OP_REQUIRES(context, side_input->shape() == x.shape(), errors::InvalidArgument( class FusedBatchNormOpBase : public OpKernel { // NOTE(... | class FusedBatchNormOpBase : public OpKernel { errors::InvalidArgument("Error during tensor copy.")); } const auto num_channels = GetTensorDim(x, tensor_format_, 'C'); OP_REQUIRES( context, scale.NumElements() == num_channels, errors::InvalidArgument("scale must have the ... | GHSA-9xh4-23q4-v6wr | {'CWE-476', 'CWE-787', 'CWE-125'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/6972f9dfe325636b3db4e0bc517ee22a159365c0'} | osv | Heap buffer overflow and undefined behavior in `FusedBatchNorm` ### Impact
The implementation of `tf.raw_ops.FusedBatchNorm` is vulnerable to a heap buffer overflow:
```python
import tensorflow as tf
x = tf.zeros([10, 10, 10, 6], dtype=tf.float32)
scale = tf.constant([0.0], shape=[1], dtype=tf.float32)
offset =... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/6972f9dfe325636b3db4e0bc517ee22a159365c0 | 6972f9dfe325636b3db4e0bc517ee22a159365c0 | SINGLE | ['6972f9dfe325636b3db4e0bc517ee22a159365c0'] | {'57d86e0db5d1365f19adcce848dfc1bf89fdd4c7'} | 6972f9dfe325636b3db4e0bc517ee22a159365c0 | 1 | 05/07/2021, 00:45:51 | Add missing valuidation to FusedBatchNorm.
PiperOrigin-RevId: 372460336
Change-Id: Ic8c4e4de67c58a741bd87f2e182bed07247d1126 | Mihai Maruseac | null | {'additions': 27, 'deletions': 1, 'total': 28} | [
{
"additions": 27,
"changes": 28,
"deletions": 1,
"patch": "@@ -1282,6 +1282,32 @@ class FusedBatchNormOpBase : public OpKernel {\n errors::InvalidArgument(\"Error during tensor copy.\"));\n }\n \n+ const auto num_channels = GetTensorDim(x, tensor_format_, 'C');\n+ OP_REQ... | cc | CWE-787 | [
"tensorflow/core/kernels/fused_batch_norm_op.cc"
] | tensorflow/core/kernels/fused_batch_norm_op.cc | 1 |
class FusedBatchNormOpBase : public OpKernel { errors::InvalidArgument("Error during tensor copy.")); } if (has_side_input_) { OP_REQUIRES(context, side_input->shape() == x.shape(), errors::InvalidArgument( class FusedBatchNormOpBase : public OpKernel { // NOTE(... | class FusedBatchNormOpBase : public OpKernel { errors::InvalidArgument("Error during tensor copy.")); } const auto num_channels = GetTensorDim(x, tensor_format_, 'C'); OP_REQUIRES( context, scale.NumElements() == num_channels, errors::InvalidArgument("scale must have the ... | GHSA-9xh4-23q4-v6wr | {'CWE-476', 'CWE-787', 'CWE-125'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/6972f9dfe325636b3db4e0bc517ee22a159365c0'} | osv | Heap buffer overflow and undefined behavior in `FusedBatchNorm` ### Impact
The implementation of `tf.raw_ops.FusedBatchNorm` is vulnerable to a heap buffer overflow:
```python
import tensorflow as tf
x = tf.zeros([10, 10, 10, 6], dtype=tf.float32)
scale = tf.constant([0.0], shape=[1], dtype=tf.float32)
offset =... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/6972f9dfe325636b3db4e0bc517ee22a159365c0 | 6972f9dfe325636b3db4e0bc517ee22a159365c0 | SINGLE | ['6972f9dfe325636b3db4e0bc517ee22a159365c0'] | {'57d86e0db5d1365f19adcce848dfc1bf89fdd4c7'} | 6972f9dfe325636b3db4e0bc517ee22a159365c0 | 1 | 05/07/2021, 00:45:51 | Add missing valuidation to FusedBatchNorm.
PiperOrigin-RevId: 372460336
Change-Id: Ic8c4e4de67c58a741bd87f2e182bed07247d1126 | Mihai Maruseac | null | {'additions': 27, 'deletions': 1, 'total': 28} | [
{
"additions": 27,
"changes": 28,
"deletions": 1,
"patch": "@@ -1282,6 +1282,32 @@ class FusedBatchNormOpBase : public OpKernel {\n errors::InvalidArgument(\"Error during tensor copy.\"));\n }\n \n+ const auto num_channels = GetTensorDim(x, tensor_format_, 'C');\n+ OP_REQ... | cc | CWE-125 | [
"tensorflow/core/kernels/fused_batch_norm_op.cc"
] | tensorflow/core/kernels/fused_batch_norm_op.cc | 1 |
public function shippingMethodSave(Request $request) { if (is_array($request->get('Address'))) { $request->merge([ 'city'=>$request->get('Address')['city'], 'zip'=>$request->get('Address')['zip'], 'state'=>$request->get('Address')['state'], ... | public function shippingMethodSave(Request $request) { if (is_array($request->get('Address'))) { $request->merge([ 'city'=>$request->get('Address')['city'], 'zip'=>$request->get('Address')['zip'], 'state'=>$request->get('Address')['state'], ... | GHSA-c383-q5vf-hx55 | {'CWE-190'} | 7.5 | {'https://github.com/microweber/microweber/commit/7559e141d0707f8eeff2f9aeaa5a0ca2e3fe6583'} | osv | Integer Overflow or Wraparound in Microweber Microweber prior to 1.2.12 is vulnerable to Integer Overflow or Wraparound. | 2022-03-12 | 1 | https://github.com/microweber/microweber | https://github.com/microweber/microweber/commit/7559e141d0707f8eeff2f9aeaa5a0ca2e3fe6583 | 7559e141d0707f8eeff2f9aeaa5a0ca2e3fe6583 | SINGLE | ['7559e141d0707f8eeff2f9aeaa5a0ca2e3fe6583'] | {'28f2677ea228a36e7692505e1821ae373a8b07e4'} | 7559e141d0707f8eeff2f9aeaa5a0ca2e3fe6583 | 1 | 03/11/2022, 08:30:42 | checkout shipping address validation - max chars allowed | Bozhidar Slaveykov | null | {'additions': 21, 'deletions': 4, 'total': 25} | [
{
"additions": 21,
"changes": 25,
"deletions": 4,
"patch": "@@ -38,13 +38,30 @@ public function shippingMethodSave(Request $request) {\n \n if (is_array($request->get('Address'))) {\n $request->merge([\n- 'city'=>$request->get('Address')['city'],\n- 'z... | php | CWE-190 | [
"src/MicroweberPackages/Checkout/Http/Controllers/Traits/ShippingTrait.php"
] | src/MicroweberPackages/Checkout/Http/Controllers/Traits/ShippingTrait.php | 1 |
public function checkUpdate(){ // 下载更新代码包 public function download(){ set_time_limit(1000); ini_set('memory_limit','500M'); $new_version = I("new_version") ; public function download(){ // 执行升级操作,升级覆盖文件 public function updateFiles(){ set_time_limit(1000); ini_s... | public function checkUpdate(){ // 下载更新代码包 public function download(){ $this->checkLogin(); $this->checkAdmin(); set_time_limit(1000); ini_set('memory_limit','500M'); $new_version = I("new_version") ; public function download(){ // 执行升级操作,升级覆盖文件 public function ... | GHSA-c442-3278-rhrg | {'CWE-434'} | 9.8 | {'https://github.com/star7th/showdoc/commit/49b992d4c548c8c615a92b6efe8a50c8f1083abf'} | osv | Unrestricted File Upload in ShowDoc v2.9.5 Unrestricted File Upload in ShowDoc v2.9.5 allows remote attackers to execute arbitrary code via the 'file_url' parameter in the component AdminUpdateController.class.php'. | 2021-09-09 | 1 | https://github.com/star7th/showdoc | https://github.com/star7th/showdoc/commit/49b992d4c548c8c615a92b6efe8a50c8f1083abf | 49b992d4c548c8c615a92b6efe8a50c8f1083abf | SINGLE | ['49b992d4c548c8c615a92b6efe8a50c8f1083abf'] | {'8db2d13196df7067fdf2e37cf1e5e2d7aba3d748'} | 49b992d4c548c8c615a92b6efe8a50c8f1083abf | 1 | 06/24/2021, 15:25:43 | Fix security vulnerabilities | star7th | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -24,6 +24,8 @@ public function checkUpdate(){\n \n // 下载更新代码包\n public function download(){\n+ $this->checkLogin();\n+ $this->checkAdmin();\n set_time_limit(1000);\n ini_set('memory_limit','500M');\n ... | php | CWE-434 | [
"server/Application/Api/Controller/AdminUpdateController.class.php"
] | server/Application/Api/Controller/AdminUpdateController.class.php | 1 |
class DequantizeOp : public OpKernel { if (axis_ > -1) { num_slices = input.dim_size(axis_); } Tensor* output = nullptr; OP_REQUIRES_OK(ctx, ctx->allocate_output(0, input.shape(), &output)); | class DequantizeOp : public OpKernel { if (axis_ > -1) { num_slices = input.dim_size(axis_); } OP_REQUIRES(ctx, input_min_tensor.NumElements() == num_slices, errors::InvalidArgument( "input_min_tensor must have as many elements as input on " "th... | GHSA-c45w-2wxr-pp53 | {'CWE-125'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/5899741d0421391ca878da47907b1452f06aaf1b'} | osv | Heap OOB read in `tf.raw_ops.Dequantize` ### Impact
Due to lack of validation in `tf.raw_ops.Dequantize`, an attacker can trigger a read from outside of bounds of heap allocated data:
```python
import tensorflow as tf
input_tensor=tf.constant(
[75, 75, 75, 75, -6, -9, -10, -10, -10, -10, -10, -10, -10, -10, -10, -1... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/5899741d0421391ca878da47907b1452f06aaf1b | 5899741d0421391ca878da47907b1452f06aaf1b | SINGLE | ['5899741d0421391ca878da47907b1452f06aaf1b'] | {'26003593aa94b1742f34dc22ce88a1e17776a67d'} | 5899741d0421391ca878da47907b1452f06aaf1b | 1 | 05/06/2021, 22:31:05 | Fix heap OOB read in dequantize op.
Also fixes SEGV in same op
PiperOrigin-RevId: 372437896
Change-Id: I135e94d360c2a1ce374c10f7e0fed1af603dbc02 | Mihai Maruseac | null | {'additions': 12, 'deletions': 0, 'total': 12} | [
{
"additions": 12,
"changes": 12,
"deletions": 0,
"patch": "@@ -98,6 +98,18 @@ class DequantizeOp : public OpKernel {\n if (axis_ > -1) {\n num_slices = input.dim_size(axis_);\n }\n+ OP_REQUIRES(ctx, input_min_tensor.NumElements() == num_slices,\n+ errors::InvalidArgu... | cc | CWE-125 | [
"tensorflow/core/kernels/dequantize_op.cc"
] | tensorflow/core/kernels/dequantize_op.cc | 1 |
const liljs = (elem, data = {}) => { * @param {String} property Name of the property to render * @param {String} value (Optional) A value to use instead of a property (used in lil-list-text) */ const setText = (elem, property, value) => elem.innerHTML = value || state[property].value; /** Set s... | const liljs = (elem, data = {}) => { * @param {String} property Name of the property to render * @param {String} value (Optional) A value to use instead of a property (used in lil-list-text) */ const setText = (elem, property, value) => elem.textContent = value || state[property].value; /** Set... | GHSA-c53x-wwx2-pg96 | {'CWE-79'} | 6.5 | {'https://github.com/bersLucas/liljs/commit/779c0dcd8aba434a1c94db7d1d2d990a629f9a6c'} | osv | Cross-Site Scripting in @berslucas/liljs Versions of `@berslucas/liljs` prior to 1.0.2 are vulnerable to Cross-Site Scripting (XSS). The package uses the unsafe `innerHTML` function without sanitizing input, which may allow attackers to execute arbitrary JavaScript on the victim's browser.
## Recommendation
Upgrade... | 2020-09-03 | 1 | https://github.com/bersLucas/liljs | https://github.com/bersLucas/liljs/commit/779c0dcd8aba434a1c94db7d1d2d990a629f9a6c | 779c0dcd8aba434a1c94db7d1d2d990a629f9a6c | SINGLE | ['779c0dcd8aba434a1c94db7d1d2d990a629f9a6c'] | {'bc0919e0031e6e6aa99be9793a6a9afa8ad2e5b1'} | 779c0dcd8aba434a1c94db7d1d2d990a629f9a6c | 1 | 02/10/2019, 03:29:54 | Use textContent over innerHTML so you can bind untrusted text values
without the possibility of an XSS attack. | Cody Mikol | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -21,7 +21,7 @@ const liljs = (elem, data = {}) => {\n * @param {String} property Name of the property to render\n * @param {String} value (Optional) A value to use instead of a property (used in lil-list-text)\n */\n- con... | js | CWE-79 | [
"src/liljs.js"
] | src/liljs.js | 1 |
TfLiteStatus ExpandTensorDim(TfLiteContext* context, const TfLiteTensor& input, axis = input_dims.size + 1 + axis; } TF_LITE_ENSURE(context, axis <= input_dims.size); TfLiteIntArray* output_dims = TfLiteIntArrayCreate(input_dims.size + 1); for (int i = 0; i < output_dims->size; ++i) { | TfLiteStatus ExpandTensorDim(TfLiteContext* context, const TfLiteTensor& input, axis = input_dims.size + 1 + axis; } TF_LITE_ENSURE(context, axis <= input_dims.size); TF_LITE_ENSURE(context, axis >= 0); TfLiteIntArray* output_dims = TfLiteIntArrayCreate(input_dims.size + 1); for (int i = 0; i < output_d... | GHSA-c545-c4f9-rf6v | {'CWE-125'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/d94ffe08a65400f898241c0374e9edc6fa8ed257'} | osv | Heap OOB in TFLite ### Impact
TFLite's [`expand_dims.cc`](https://github.com/tensorflow/tensorflow/blob/149562d49faa709ea80df1d99fc41d005b81082a/tensorflow/lite/kernels/expand_dims.cc#L36-L50) contains a vulnerability which allows reading one element outside of bounds of heap allocated data:
```cc
if (axis < 0) {
... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/d94ffe08a65400f898241c0374e9edc6fa8ed257 | d94ffe08a65400f898241c0374e9edc6fa8ed257 | SINGLE | ['d94ffe08a65400f898241c0374e9edc6fa8ed257'] | {'e95fc647063378993ec84d41cbbda6dcb60bad4e'} | d94ffe08a65400f898241c0374e9edc6fa8ed257 | 1 | 07/27/2021, 21:42:54 | Prevent an OOB read in `expand_dims.cc`
The for loop that follows this check assumes that `axis` is between `0` and `input_dims.size`. If user supplied `axis` is negative, the if code before this check is supposed to bring it back to positive (similar to how in Python one can do `l[-3]` to mean `l[-3 + len(l)]`).
Pip... | Mihai Maruseac | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -37,6 +37,7 @@ TfLiteStatus ExpandTensorDim(TfLiteContext* context, const TfLiteTensor& input,\n axis = input_dims.size + 1 + axis;\n }\n TF_LITE_ENSURE(context, axis <= input_dims.size);\n+ TF_LITE_ENSURE(context, axis >= 0);\n \... | cc | CWE-125 | [
"tensorflow/lite/kernels/expand_dims.cc"
] | tensorflow/lite/kernels/expand_dims.cc | 1 |
namespace experimental { PrivateThreadPoolDatasetOp::kDatasetType; /* static */ constexpr const char* const PrivateThreadPoolDatasetOp::kDatasetOp; class ThreadPoolResource : public ResourceBase { public: ThreadPoolResource(Env* env, const ThreadOptions& thread_options, class ThreadPoolHandleOp : public OpKern... | namespace experimental { PrivateThreadPoolDatasetOp::kDatasetType; /* static */ constexpr const char* const PrivateThreadPoolDatasetOp::kDatasetOp; namespace { // To prevent integer overflow issues when allocating threadpool memory for an // unreasonable number of threads. constexpr int kThreadLimit = 65536; Sta... | GHSA-c582-c96p-r5cq | {'CWE-400', 'CWE-770'} | 4.3 | {'https://github.com/tensorflow/tensorflow/commit/e3749a6d5d1e8d11806d4a2e9cc3123d1a90b75e'} | osv | Memory exhaustion in Tensorflow ### Impact
The [implementation of `ThreadPoolHandle`](https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/data/experimental/threadpool_dataset_op.cc#L79-L135) can be used to trigger a denial of service attack by allocating too m... | 2022-02-10 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/e3749a6d5d1e8d11806d4a2e9cc3123d1a90b75e | e3749a6d5d1e8d11806d4a2e9cc3123d1a90b75e | SINGLE | ['e3749a6d5d1e8d11806d4a2e9cc3123d1a90b75e'] | {'dc94fe9983e3deca817b7a081fa43c4e3b1ddec8'} | e3749a6d5d1e8d11806d4a2e9cc3123d1a90b75e | 1 | 11/19/2021, 00:10:34 | [tf.data] Set limit on number of threads used in threadpool_dataset.
PiperOrigin-RevId: 410922677
Change-Id: Ib25814a99043ab10805b5d2d7088ae0e0b7b04fd | Andrew Audibert | null | {'additions': 19, 'deletions': 7, 'total': 26} | [
{
"additions": 19,
"changes": 26,
"deletions": 7,
"patch": "@@ -39,6 +39,22 @@ namespace experimental {\n PrivateThreadPoolDatasetOp::kDatasetType;\n /* static */ constexpr const char* const PrivateThreadPoolDatasetOp::kDatasetOp;\n \n+namespace {\n+// To prevent integer overflow issues when all... | cc | CWE-400 | [
"tensorflow/core/kernels/data/experimental/threadpool_dataset_op.cc"
] | tensorflow/core/kernels/data/experimental/threadpool_dataset_op.cc | 1 |
class << self # -:filter: convert all entries using the sepcified filter (not set by default) # def open(path, options = {}) b = parse(Kernel.open(path, 'r:UTF-8').read, options) b.path = path return b unless block_given? | class << self # -:filter: convert all entries using the sepcified filter (not set by default) # def open(path, options = {}) b = parse(File.read(path), options) b.path = path return b unless block_given? | GHSA-c5r5-7pfh-6qg6 | {'CWE-78'} | 9.8 | {'https://github.com/inukshuk/bibtex-ruby/commit/14406f4460f4e1ecabd25ca94f809b3ea7c5fb11'} | osv | OS command injection in BibTeX-Ruby BibTeX-ruby before 5.1.0 allows shell command injection due to unsanitized user input being passed directly to the built-in Ruby Kernel.open method through BibTeX.open. | 2020-02-14 | 1 | https://github.com/inukshuk/bibtex-ruby | https://github.com/inukshuk/bibtex-ruby/commit/14406f4460f4e1ecabd25ca94f809b3ea7c5fb11 | 14406f4460f4e1ecabd25ca94f809b3ea7c5fb11 | SINGLE | ['14406f4460f4e1ecabd25ca94f809b3ea7c5fb11'] | {'707b9303e4ed9a7e136dd1268e21d73d5faab817'} | 14406f4460f4e1ecabd25ca94f809b3ea7c5fb11 | 1 | 01/17/2020, 13:34:37 | Use File.read instead of Kernel.open
To avoid command injection with | strings | Sylvester Keil | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -47,7 +47,7 @@ class << self\n # -:filter: convert all entries using the sepcified filter (not set by default)\n #\n def open(path, options = {})\n- b = parse(Kernel.open(path, 'r:UTF-8').read, options)\n+ b... | rb | CWE-78 | [
"lib/bibtex/bibliography.rb"
] | lib/bibtex/bibliography.rb | 1 |
public function transformAsset(Asset $asset) $value = (Gate::allows('superadmin')) ? $decrypted : strtoupper(trans('admin/custom_fields/general.encrypted')); $fields_array[$field->name] = [ 'field' => $field->convertUnicodeDbSlug(), ... | public function transformAsset(Asset $asset) $value = (Gate::allows('superadmin')) ? $decrypted : strtoupper(trans('admin/custom_fields/general.encrypted')); $fields_array[$field->name] = [ 'field' => e($field->convertUnicodeDbSlug()), ... | GHSA-c65v-p733-9796 | {'CWE-79'} | 8 | {'https://github.com/snipe/snipe-it/commit/7ce5993f5ae9d713a0955c2fd8e2dff7a7ce886e'} | osv | Cross-site Scripting in snipe/snipe-it snipe-it is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | 2021-11-23 | 1 | https://github.com/snipe/snipe-it | https://github.com/snipe/snipe-it/commit/7ce5993f5ae9d713a0955c2fd8e2dff7a7ce886e | 7ce5993f5ae9d713a0955c2fd8e2dff7a7ce886e | SINGLE | ['7ce5993f5ae9d713a0955c2fd8e2dff7a7ce886e'] | {'e75a5f13ecb77a53d93d67c23e9f1b3580fe8092', 'f7b483358ff114b56c753ee9c2964059a55a3bd2'} | 7ce5993f5ae9d713a0955c2fd8e2dff7a7ce886e | 1 | 11/16/2021, 04:33:51 | Merge pull request #10315 from snipe/fixes/escape_custom_fields_in_api_response
Escape custom field values in API response | snipe | null | {'additions': 5, 'deletions': 5, 'total': 10} | [
{
"additions": 5,
"changes": 10,
"deletions": 5,
"patch": "@@ -93,15 +93,15 @@ public function transformAsset(Asset $asset)\n $value = (Gate::allows('superadmin')) ? $decrypted : strtoupper(trans('admin/custom_fields/general.encrypted'));\n \n $fields_array[$f... | php | CWE-79 | [
"app/Http/Transformers/AssetsTransformer.php"
] | app/Http/Transformers/AssetsTransformer.php | 1 |
public function uploadCustomLogoAction(Request $request) throw new \Exception('Unsupported file format'); } $storage = Tool\Storage::get('admin'); $storage->writeStream(self::CUSTOM_LOGO_PATH, fopen($_FILES['Filedata']['tmp_name'], 'rb')); | public function uploadCustomLogoAction(Request $request) throw new \Exception('Unsupported file format'); } if($fileExt === 'svg') { if(strpos(file_get_contents($_FILES['Filedata']['tmp_name']), '<script')) { throw new \Exception('Scripts in SVG files are not su... | GHSA-c697-r227-pq6h | {'CWE-434'} | 7.8 | {'https://github.com/pimcore/pimcore/commit/35d1853baf64d6a1d90fd8803e52439da53a3911'} | osv | Unrestricted Upload of File with Dangerous Type in pimcore Unrestricted Upload of File with Dangerous Type in Packagist pimcore/pimcore | 2022-01-21 | 1 | https://github.com/pimcore/pimcore | https://github.com/pimcore/pimcore/commit/35d1853baf64d6a1d90fd8803e52439da53a3911 | 35d1853baf64d6a1d90fd8803e52439da53a3911 | SINGLE | ['35d1853baf64d6a1d90fd8803e52439da53a3911'] | {'d8377fc752dc3a42ca72cb49650481191f14ec63'} | 35d1853baf64d6a1d90fd8803e52439da53a3911 | 1 | 01/17/2022, 15:52:05 | [Settings] Validate SVG uploads for branding | Bernhard Rusch | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -109,6 +109,12 @@ public function uploadCustomLogoAction(Request $request)\n throw new \\Exception('Unsupported file format');\n }\n \n+ if($fileExt === 'svg') {\n+ if(strpos(file_get_contents($_FILES[... | php | CWE-434 | [
"bundles/AdminBundle/Controller/Admin/SettingsController.php"
] | bundles/AdminBundle/Controller/Admin/SettingsController.php | 1 |
var Gmail_ = function(localJQuery) { endIndex = (parseInt(dataLength, 10) - 2) + response.indexOf("["); data = response.substring(response.indexOf("["), endIndex); var get_data = new Function("\"use strict\"; return " + data); realData = get_data(); ... | var Gmail_ = function(localJQuery) { endIndex = (parseInt(dataLength, 10) - 2) + response.indexOf("["); data = response.substring(response.indexOf("["), endIndex); var json = JSON.parse(data); parsedResponse.push(json); // prepare respon... | GHSA-c7pp-g2v2-2766 | {'CWE-79'} | 0 | {'https://github.com/KartikTalwar/gmail.js/commit/a83436f499f9c01b04280af945a5a81137b6baf1'} | osv | DOM-based XSS in gmail-js Affected versions of `gmail-js` are vulnerable to cross-site scripting in the `tools.parse_response`, `helper.get.visible_emails_post`, and `helper.get.email_data_post` functions, which pass user input directly into the Function constructor.
## Recommendation
Update to version 0.6.5 or lat... | 2020-09-01 | 1 | https://github.com/KartikTalwar/gmail.js | https://github.com/KartikTalwar/gmail.js/commit/a83436f499f9c01b04280af945a5a81137b6baf1 | a83436f499f9c01b04280af945a5a81137b6baf1 | SINGLE | ['a83436f499f9c01b04280af945a5a81137b6baf1'] | {'0e4732cb6c6c447d7f0487580ad7ada33184be92'} | a83436f499f9c01b04280af945a5a81137b6baf1 | 1 | 11/29/2016, 08:36:02 | Replace new Function() with JSON.parse() | Jostein Kjønigsen | null | {'additions': 8, 'deletions': 15, 'total': 23} | [
{
"additions": 8,
"changes": 23,
"deletions": 15,
"patch": "@@ -891,10 +891,8 @@ var Gmail_ = function(localJQuery) {\n endIndex = (parseInt(dataLength, 10) - 2) + response.indexOf(\"[\");\n data = response.substring(response.indexOf(\"[\"), endIndex);\n \n- ... | js | CWE-79 | [
"src/gmail.js"
] | src/gmail.js | 1 |
int64_t OpLevelCostEstimator::CalculateTensorSize( int64_t count = CalculateTensorElementCount(tensor, found_unknown_shapes); int size = DataTypeSize(BaseType(tensor.dtype())); VLOG(2) << "Count: " << count << " DataTypeSize: " << size; return count * size; } int64_t OpLevelCostEstimator::CalculateInputSize(c... | int64_t OpLevelCostEstimator::CalculateTensorSize( int64_t count = CalculateTensorElementCount(tensor, found_unknown_shapes); int size = DataTypeSize(BaseType(tensor.dtype())); VLOG(2) << "Count: " << count << " DataTypeSize: " << size; int64_t tensor_size = MultiplyWithoutOverflow(count, size); if (tensor_s... | GHSA-c94w-c95p-phf8 | {'CWE-190'} | 6.5 | {'https://github.com/tensorflow/tensorflow/commit/fcd18ce3101f245b083b30655c27b239dc72221e'} | osv | Integer overflow in Tensorflow ### Impact
The [implementation of `OpLevelCostEstimator::CalculateTensorSize`](https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/grappler/costs/op_level_cost_estimator.cc#L1552-L1558) is vulnerable to an integer overflow if an attacker ... | 2022-02-10 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/fcd18ce3101f245b083b30655c27b239dc72221e | fcd18ce3101f245b083b30655c27b239dc72221e | SINGLE | ['fcd18ce3101f245b083b30655c27b239dc72221e'] | {'29e899868d77d8f575907515acefa012c5574246'} | fcd18ce3101f245b083b30655c27b239dc72221e | 1 | 11/09/2021, 22:54:52 | Prevent integer overflow in `OpLevelCostEstimator::CalculateTensorSize`.
In order to not change the API, we return a negative value in case of overflow. A better fix is to change the API to return a status instead.
PiperOrigin-RevId: 408713061
Change-Id: I3771475b0c72a2844a3854086966562fd33f2da5 | Mihai Maruseac | null | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -1555,7 +1555,13 @@ int64_t OpLevelCostEstimator::CalculateTensorSize(\n int64_t count = CalculateTensorElementCount(tensor, found_unknown_shapes);\n int size = DataTypeSize(BaseType(tensor.dtype()));\n VLOG(2) << \"Count: \" << coun... | cc | CWE-190 | [
"tensorflow/core/grappler/costs/op_level_cost_estimator.cc"
] | tensorflow/core/grappler/costs/op_level_cost_estimator.cc | 1 |
class Conv3DBackpropInputOp : public OpKernel { input_shape = context->input(0).shape(); } OP_REQUIRES( context, input_shape.dim_size(4) == filter_shape.dim_size(3), errors::InvalidArgument("input and filter_sizes must have the same " class Conv3DCustomBackpropInputOp : public OpKernel {... | class Conv3DBackpropInputOp : public OpKernel { input_shape = context->input(0).shape(); } OP_REQUIRES(context, input_shape.dims() == 5, errors::InvalidArgument("input tensor must have 5 dimensions")); OP_REQUIRES( context, filter_shape.dims() == 5, errors::InvalidArg... | GHSA-c968-pq7h-7fxv | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/311403edbc9816df80274bd1ea8b3c0c0f22c3fa'} | osv | Division by 0 in `Conv3DBackprop*` ### Impact
The `tf.raw_ops.Conv3DBackprop*` operations fail to validate that the input tensors are not empty. In turn, this would result in a division by 0:
```python
import tensorflow as tf
input_sizes = tf.constant([0, 0, 0, 0, 0], shape=[5], dtype=tf.int32)
filter_tensor = tf.con... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/311403edbc9816df80274bd1ea8b3c0c0f22c3fa | 311403edbc9816df80274bd1ea8b3c0c0f22c3fa | SINGLE | ['311403edbc9816df80274bd1ea8b3c0c0f22c3fa'] | {'a91bb59769f19146d5a0c20060244378e878f140'} | 311403edbc9816df80274bd1ea8b3c0c0f22c3fa | 1 | 04/19/2021, 23:00:40 | Eliminate a division by 0 in 3D convolutions.
Also prevent a CHECK failed introduced in the most recent change.
PiperOrigin-RevId: 369322073
Change-Id: I4f609c028f89565fb2b49c3fdd20b63496582bae | Mihai Maruseac | null | {'additions': 42, 'deletions': 0, 'total': 42} | [
{
"additions": 42,
"changes": 42,
"deletions": 0,
"patch": "@@ -239,6 +239,14 @@ class Conv3DBackpropInputOp : public OpKernel {\n input_shape = context->input(0).shape();\n }\n \n+ OP_REQUIRES(context, input_shape.dims() == 5,\n+ errors::InvalidArgument(\"input tensor mu... | cc | CWE-369 | [
"tensorflow/core/kernels/conv_grad_ops_3d.cc"
] | tensorflow/core/kernels/conv_grad_ops_3d.cc | 1 |
Status CompressElement(const std::vector<Tensor>& element, int64 total_size = 0; for (auto& component : element) { if (DataTypeCanUseMemcpy(component.dtype())) { // Some datatypes can be memcopied, allowing us to save two copies // (AsProtoTensorContent and SerializeToArray). total_size += DM... | Status CompressElement(const std::vector<Tensor>& element, int64 total_size = 0; for (auto& component : element) { if (DataTypeCanUseMemcpy(component.dtype())) { const TensorBuffer* buffer = DMAHelper::buffer(&component); if (buffer) { total_size += buffer->size(); } } else { ... | GHSA-c9qf-r67m-p7cg | {'CWE-476'} | 7.7 | {'https://github.com/tensorflow/tensorflow/commit/5dc7f6981fdaf74c8c5be41f393df705841fb7c5'} | osv | Null pointer dereference in `CompressElement` ### Impact
It is possible to trigger a null pointer dereference in TensorFlow by passing an invalid input to `tf.raw_ops.CompressElement`:
```python
import tensorflow as tf
tf.raw_ops.CompressElement(components=[[]])
```
The [implementation](https://github.com/tensorfl... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/5dc7f6981fdaf74c8c5be41f393df705841fb7c5 | 5dc7f6981fdaf74c8c5be41f393df705841fb7c5 | SINGLE | ['5dc7f6981fdaf74c8c5be41f393df705841fb7c5'] | {'de9a4335c96bec8fa69abb89618b1daa4b2459fa'} | 5dc7f6981fdaf74c8c5be41f393df705841fb7c5 | 1 | 05/15/2021, 05:07:07 | Fix accessing possible nullptr in tensorflow::data::CompressElement and UncompressElement which are used in tf.data.service.
PiperOrigin-RevId: 373920841
Change-Id: Ia88d78aee09fa19bb53a0f163fd19620d0c68743 | A. Unique TensorFlower | null | {'additions': 15, 'deletions': 7, 'total': 22} | [
{
"additions": 15,
"changes": 22,
"deletions": 7,
"patch": "@@ -29,9 +29,10 @@ Status CompressElement(const std::vector<Tensor>& element,\n int64 total_size = 0;\n for (auto& component : element) {\n if (DataTypeCanUseMemcpy(component.dtype())) {\n- // Some datatypes can be memcopied, a... | cc | CWE-476 | [
"tensorflow/core/data/compression_utils.cc"
] | tensorflow/core/data/compression_utils.cc | 1 |
protected function generateCookieValue($class, $username, $expires, $password) */ protected function generateCookieHash($class, $username, $expires, $password) { return hash_hmac('sha256', $class.$username.$expires.$password, $this->getSecret()); } } | protected function generateCookieValue($class, $username, $expires, $password) */ protected function generateCookieHash($class, $username, $expires, $password) { return hash_hmac('sha256', $class.self::COOKIE_DELIMITER.$username.self::COOKIE_DELIMITER.$expires.self::COOKIE_DELIMITER.$password, $th... | GHSA-cchx-mfrc-fwqr | {'CWE-200', 'CWE-287'} | 7.5 | {'https://github.com/symfony/symfony/commit/a29ce2817cf43bb1850cf6af114004ac26c7a081'} | osv | Improper authentication in Symfony In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, a vulnerability would allow an attacker to authenticate as a privileged user on sites with user registration and remember me login functionality enabled. This is related to sym... | 2020-02-12 | 1 | https://github.com/symfony/symfony | https://github.com/symfony/symfony/commit/a29ce2817cf43bb1850cf6af114004ac26c7a081 | a29ce2817cf43bb1850cf6af114004ac26c7a081 | SINGLE | ['a29ce2817cf43bb1850cf6af114004ac26c7a081'] | {'3e0b2354dbc8813a1f5ff91757e1dce40dfe31b4'} | a29ce2817cf43bb1850cf6af114004ac26c7a081 | 1 | 04/06/2019, 10:40:18 | [Security] Add a separator in the remember me cookie hash | Pascal Borreli | {'com_1': {'author': 'simoheinonen', 'datetime': '06/05/2019, 12:10:12', 'body': 'This logs out all users with the old hash. 😐'}, 'com_2': {'author': 'stof', 'datetime': '06/05/2019, 12:18:28', 'body': '@simoheinonen which is better than allowing to spoof remember me cookies'}, 'com_3': {'author': 'simoheinonen', 'dat... | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -120,6 +120,6 @@ protected function generateCookieValue($class, $username, $expires, $password)\n */\n protected function generateCookieHash($class, $username, $expires, $password)\n {\n- return hash_hmac('sha256', $cla... | php | CWE-287 | [
"src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php"
] | src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php | 1 |
protected function generateCookieValue($class, $username, $expires, $password) */ protected function generateCookieHash($class, $username, $expires, $password) { return hash_hmac('sha256', $class.$username.$expires.$password, $this->getSecret()); } } | protected function generateCookieValue($class, $username, $expires, $password) */ protected function generateCookieHash($class, $username, $expires, $password) { return hash_hmac('sha256', $class.self::COOKIE_DELIMITER.$username.self::COOKIE_DELIMITER.$expires.self::COOKIE_DELIMITER.$password, $th... | GHSA-cchx-mfrc-fwqr | {'CWE-200', 'CWE-287'} | 7.5 | {'https://github.com/symfony/symfony/commit/a29ce2817cf43bb1850cf6af114004ac26c7a081'} | osv | Improper authentication in Symfony In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, a vulnerability would allow an attacker to authenticate as a privileged user on sites with user registration and remember me login functionality enabled. This is related to sym... | 2020-02-12 | 1 | https://github.com/symfony/symfony | https://github.com/symfony/symfony/commit/a29ce2817cf43bb1850cf6af114004ac26c7a081 | a29ce2817cf43bb1850cf6af114004ac26c7a081 | SINGLE | ['a29ce2817cf43bb1850cf6af114004ac26c7a081'] | {'3e0b2354dbc8813a1f5ff91757e1dce40dfe31b4'} | a29ce2817cf43bb1850cf6af114004ac26c7a081 | 1 | 04/06/2019, 10:40:18 | [Security] Add a separator in the remember me cookie hash | Pascal Borreli | {'com_1': {'author': 'simoheinonen', 'datetime': '06/05/2019, 12:10:12', 'body': 'This logs out all users with the old hash. 😐'}, 'com_2': {'author': 'stof', 'datetime': '06/05/2019, 12:18:28', 'body': '@simoheinonen which is better than allowing to spoof remember me cookies'}, 'com_3': {'author': 'simoheinonen', 'dat... | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -120,6 +120,6 @@ protected function generateCookieValue($class, $username, $expires, $password)\n */\n protected function generateCookieHash($class, $username, $expires, $password)\n {\n- return hash_hmac('sha256', $cla... | php | CWE-200 | [
"src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php"
] | src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php | 1 |
Server.prototype.setContentHeaders = function (req, res, next) { next(); }; Server.prototype.checkHost = function (headers) { // allow user to opt-out this security check, at own risk if (this.disableHostCheck) return true; // get the Host header and extract hostname // we don't care about port not matchin... | Server.prototype.setContentHeaders = function (req, res, next) { next(); }; Server.prototype.checkHost = function (headers, headerToCheck) { // allow user to opt-out this security check, at own risk if (this.disableHostCheck) return true; if (!headerToCheck) headerToCheck = "host"; // get the Host header ... | GHSA-cf66-xwfp-gvc4 | {'CWE-20'} | 7.5 | {'https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10'} | osv | Missing Origin Validation in webpack-dev-server Versions of `webpack-dev-server` before 3.1.10 are missing origin validation on the websocket server. This vulnerability allows a remote attacker to steal a developer's source code because the origin of requests to the websocket server that is used for Hot Module Replacem... | 2019-01-04 | 1 | https://github.com/webpack/webpack-dev-server | https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10 | f18e5adf123221a1015be63e1ca2491ca45b8d10 | SINGLE | ['f18e5adf123221a1015be63e1ca2491ca45b8d10'] | {'e1bd264b9ce5fb0a05a62754883f6c8a36fbc51b'} | f18e5adf123221a1015be63e1ca2491ca45b8d10 | 1 | 07/24/2018, 16:57:43 | check origin header for websocket connection | Tobias Koppers | {'com_1': {'author': 'hackel', 'datetime': '11/09/2018, 05:45:42', 'body': 'Any chance this security fix could be backported to 2.x?\r\nJust noticed this. https://nodesecurity.io/advisories/725'}, 'com_2': {'author': 'alexander-akait', 'datetime': '11/09/2018, 10:14:03', 'body': 'No, please update to `3` version, `2` ... | {'additions': 9, 'deletions': 2, 'total': 11} | [
{
"additions": 9,
"changes": 11,
"deletions": 2,
"patch": "@@ -513,13 +513,15 @@ Server.prototype.setContentHeaders = function (req, res, next) {\n next();\n };\n \n-Server.prototype.checkHost = function (headers) {\n+Server.prototype.checkHost = function (headers, headerToCheck) {\n // allow us... | js | CWE-20 | [
"lib/Server.js"
] | lib/Server.js | 1 |
TfLiteStatus PrepareImpl(TfLiteContext* context, TfLiteNode* node) { } TF_LITE_ENSURE_EQ(context, NumDimensions(filter), 2); const int batch_size = input_size / filter->dims->data[1]; const int num_units = filter->dims->data[0]; | TfLiteStatus PrepareImpl(TfLiteContext* context, TfLiteNode* node) { } TF_LITE_ENSURE_EQ(context, NumDimensions(filter), 2); TF_LITE_ENSURE(context, filter->dims->data[1] != 0); const int batch_size = input_size / filter->dims->data[1]; const int num_units = filter->dims->data[0]; | GHSA-cfpj-3q4c-jhvr | {'CWE-369'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/718721986aa137691ee23f03638867151f74935f'} | osv | Division by zero in TFLite ### Impact
The implementation of fully connected layers in TFLite is [vulnerable to a division by zero error](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/lite/kernels/fully_connected.cc#L226):
```cc
const int batch_size = input_size / fil... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/718721986aa137691ee23f03638867151f74935f | 718721986aa137691ee23f03638867151f74935f | SINGLE | ['718721986aa137691ee23f03638867151f74935f'] | {'985f07145a0cab0fd6018fdfc0b221b17e0c5a88'} | 718721986aa137691ee23f03638867151f74935f | 1 | 07/16/2021, 13:49:45 | Prevent division by 0 in `fully_connected.cc`
PiperOrigin-RevId: 385137282
Change-Id: If201e69b6e0048f0be001330b4b977e2b46db2cb | Mihai Maruseac | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -223,6 +223,7 @@ TfLiteStatus PrepareImpl(TfLiteContext* context, TfLiteNode* node) {\n }\n \n TF_LITE_ENSURE_EQ(context, NumDimensions(filter), 2);\n+ TF_LITE_ENSURE(context, filter->dims->data[1] != 0);\n const int batch_size = in... | cc | CWE-369 | [
"tensorflow/lite/kernels/fully_connected.cc"
] | tensorflow/lite/kernels/fully_connected.cc | 1 |
TfLiteStatus ResizeOutputTensor(TfLiteContext* context, int output_batch_size = input_size->data[0]; for (int dim = 0; dim < spatial_dims_num; ++dim) { // Number of batch must be multiple of (block_shape[dim]). TF_LITE_ENSURE_EQ(context, output_batch_size % block_shape[dim], 0); output_batch_size = out... | TfLiteStatus ResizeOutputTensor(TfLiteContext* context, int output_batch_size = input_size->data[0]; for (int dim = 0; dim < spatial_dims_num; ++dim) { // Number of batch must be multiple of (block_shape[dim]). TF_LITE_ENSURE(context, block_shape[dim] != 0); TF_LITE_ENSURE_EQ(context, output_batch_size... | GHSA-cfx7-2xpc-8w4h | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/2c74674348a4708ced58ad6eb1b23354df8ee044'} | osv | Division by zero in TFLite's implementation of `BatchToSpaceNd` ### Impact
The implementation of the `BatchToSpaceNd` TFLite operator is [vulnerable to a division by zero error](https://github.com/tensorflow/tensorflow/blob/b5ed552fe55895aee8bd8b191f744a069957d18d/tensorflow/lite/kernels/batch_to_space_nd.cc#L81-L82):
... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/2c74674348a4708ced58ad6eb1b23354df8ee044 | 2c74674348a4708ced58ad6eb1b23354df8ee044 | SINGLE | ['2c74674348a4708ced58ad6eb1b23354df8ee044'] | {'b5ed552fe55895aee8bd8b191f744a069957d18d'} | 2c74674348a4708ced58ad6eb1b23354df8ee044 | 1 | 04/28/2021, 20:57:37 | Prevent division by 0
PiperOrigin-RevId: 370979352
Change-Id: Ic79191c316d986fc6072ecaebfec9d5f2b924d00 | Mihai Maruseac | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -78,6 +78,7 @@ TfLiteStatus ResizeOutputTensor(TfLiteContext* context,\n int output_batch_size = input_size->data[0];\n for (int dim = 0; dim < spatial_dims_num; ++dim) {\n // Number of batch must be multiple of (block_shape[dim]).... | cc | CWE-369 | [
"tensorflow/lite/kernels/batch_to_space_nd.cc"
] | tensorflow/lite/kernels/batch_to_space_nd.cc | 1 |
pimcore.settings.website = Class.create({ border:false, layout:"fit", closable:true, items:[this.getRowEditor()] }); var tabPanel = Ext.getCmp("pimcore_panel_tabs"); pimcore.settings.website = Class.create({ dataIn... | pimcore.settings.website = Class.create({ border:false, layout:"fit", closable:true, items:[this.getRowEditor()], }); var tabPanel = Ext.getCmp("pimcore_panel_tabs"); pimcore.settings.website = Class.create({ dataI... | GHSA-cg3h-rc9q-g8v9 | {'CWE-79'} | 5.4 | {'https://github.com/pimcore/pimcore/commit/6ccb5c12fc1be065ebce9c89c4677ee939b88597'} | osv | Cross-site Scripting in pimcore pimcore version 10.3.0 and prior is vulnerable to cross-site scripting. | 2022-02-09 | 1 | https://github.com/pimcore/pimcore | https://github.com/pimcore/pimcore/commit/6ccb5c12fc1be065ebce9c89c4677ee939b88597 | 6ccb5c12fc1be065ebce9c89c4677ee939b88597 | SINGLE | ['6ccb5c12fc1be065ebce9c89c4677ee939b88597'] | {'7b6b2229ed3f19da1632afcbf9b8fec6d768faad'} | 6ccb5c12fc1be065ebce9c89c4677ee939b88597 | 1 | 02/07/2022, 12:03:58 | [Admin] Website Settings - Escape grid values properly | dpahuja | null | {'additions': 19, 'deletions': 7, 'total': 26} | [
{
"additions": 19,
"changes": 26,
"deletions": 7,
"patch": "@@ -36,7 +36,7 @@ pimcore.settings.website = Class.create({\n border:false,\n layout:\"fit\",\n closable:true,\n- items:[this.getRowEditor()]\n+ items:[this.getRo... | js | CWE-79 | [
"bundles/AdminBundle/Resources/public/js/pimcore/settings/website.js"
] | bundles/AdminBundle/Resources/public/js/pimcore/settings/website.js | 1 |
class SparseReduceOp : public OpKernel { sp.Reorder<T>(reduction.reorder_dims); for (const auto &g : sp.group(reduction.group_by_dims)) { Op::template Run<T>(ctx, reduced_val, g.template values<T>()); const int64_t idx = CoordinatesToFlatIndex(g.group(), output_strides); out_flat(idx) = reduc... | class SparseReduceOp : public OpKernel { sp.Reorder<T>(reduction.reorder_dims); for (const auto &g : sp.group(reduction.group_by_dims)) { Op::template Run<T>(ctx, reduced_val, g.template values<T>()); OP_REQUIRES(ctx, output_strides.empty() || (g.group().size() =... | GHSA-cgfm-62j4-v4rf | {'CWE-125'} | 7.3 | {'https://github.com/tensorflow/tensorflow/commit/87158f43f05f2720a374f3e6d22a7aaa3a33f750'} | osv | Heap out of bounds access in sparse reduction operations ### Impact
The implementation of sparse reduction operations in TensorFlow can trigger accesses outside of bounds of heap allocated data:
```python
import tensorflow as tf
x = tf.SparseTensor(
indices=[[773, 773, 773], [773, 773, 773]],
values=[1, 1... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/87158f43f05f2720a374f3e6d22a7aaa3a33f750 | 87158f43f05f2720a374f3e6d22a7aaa3a33f750 | SINGLE | ['87158f43f05f2720a374f3e6d22a7aaa3a33f750'] | {'9c7f40e5f1b5b74156ad4d7bc20b8d69bdedbe29'} | 87158f43f05f2720a374f3e6d22a7aaa3a33f750 | 1 | 07/31/2021, 04:11:18 | Prevent heap OOB in sparse reduction ops.
PiperOrigin-RevId: 387934524
Change-Id: I894aa30f1e454f09b471d565b4a325da49322c1a | Mihai Maruseac | null | {'additions': 13, 'deletions': 0, 'total': 13} | [
{
"additions": 13,
"changes": 13,
"deletions": 0,
"patch": "@@ -219,7 +219,20 @@ class SparseReduceOp : public OpKernel {\n sp.Reorder<T>(reduction.reorder_dims);\n for (const auto &g : sp.group(reduction.group_by_dims)) {\n Op::template Run<T>(ctx, reduced_val, g.template values<T>())... | cc | CWE-125 | [
"tensorflow/core/kernels/sparse_reduce_op.cc"
] | tensorflow/core/kernels/sparse_reduce_op.cc | 1 |
// Stream-based KISS HTTP(S) server const url = require("url"); const fs = require("fs"); // A small database of MIME associations var MIMES = { ".zip": "application/zip" } var servePath = "serve"; function doStream(request, response, filePath, stats, MIME){ let responseOptions = {}; let streamOptions =... | // Stream-based KISS HTTP(S) server const url = require("url"); const pathlib = require("path") const fs = require("fs"); // A small database of MIME associations var MIMES = { ".zip": "application/zip" } var servePath = "serve/"; function doStream(request, response, filePath, stats, MIME){ let responseOpti... | GHSA-cgjv-rghq-qhgp | {'CWE-22'} | 8.6 | {'https://github.com/AlgoRythm-Dylan/httpserv/commit/bcfe9d4316c2b59aab3a64a38905376026888735'} | osv | Path Traversal in algo-httpserv Versions of `algo-httpserv` prior to 1.1.2 are vulnerable to Path Traversal. Due to insufficient input sanitization, attackers can access server files by using relative paths.
## Recommendation
Upgrade to version 1.1.2 or later. | 2019-09-11 | 1 | https://github.com/AlgoRythm-Dylan/httpserv | https://github.com/AlgoRythm-Dylan/httpserv/commit/bcfe9d4316c2b59aab3a64a38905376026888735 | bcfe9d4316c2b59aab3a64a38905376026888735 | SINGLE | ['bcfe9d4316c2b59aab3a64a38905376026888735'] | {'7763b4f9b0b9e1873ae0cdfef582c786ee96f091'} | bcfe9d4316c2b59aab3a64a38905376026888735 | 1 | 05/17/2019, 22:10:35 | Fixed path vulnerability | AlgoRythm-Dylan | null | {'additions': 7, 'deletions': 2, 'total': 9} | [
{
"additions": 7,
"changes": 9,
"deletions": 2,
"patch": "@@ -1,6 +1,7 @@\n // Stream-based KISS HTTP(S) server\n \n const url = require(\"url\");\n+const pathlib = require(\"path\")\n const fs = require(\"fs\");\n \n // A small database of MIME associations\n@@ -32,7 +33,7 @@ var MIMES = {\n \"... | js | CWE-22 | [
"httpserv.js"
] | httpserv.js | 1 |
class InplaceOpBase : public OpKernel { Tensor y = x; // This creates an alias intentionally. // Skip processing if tensors are empty. if (x.NumElements() > 0 || v.NumElements() > 0) { OP_REQUIRES_OK(ctx, DoCompute(ctx, i, v, &y)); } ctx->set_output(0, y); | class InplaceOpBase : public OpKernel { Tensor y = x; // This creates an alias intentionally. // Skip processing if tensors are empty. if (x.NumElements() > 0 && v.NumElements() > 0) { OP_REQUIRES_OK(ctx, DoCompute(ctx, i, v, &y)); } ctx->set_output(0, y); | GHSA-cm5x-837x-jf3c | {'CWE-369'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/e86605c0a336c088b638da02135ea6f9f6753618'} | osv | Division by 0 in inplace operations ### Impact
An attacker can cause a floating point exception by calling inplace operations with crafted arguments that would result in a division by 0:
```python
import tensorflow as tf
tf.raw_ops.InplaceSub(x=[],i=[-99,-1,-1],v=[1,1,1])
```
The [implementation](https://github.com/... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/e86605c0a336c088b638da02135ea6f9f6753618 | e86605c0a336c088b638da02135ea6f9f6753618 | SINGLE | ['e86605c0a336c088b638da02135ea6f9f6753618'] | {'29e3d6b706a33780b1cb4863200ec7525ff035ce'} | e86605c0a336c088b638da02135ea6f9f6753618 | 1 | 08/02/2021, 21:21:27 | Fix FPE in inpace update ops.
PiperOrigin-RevId: 388303197
Change-Id: Ib48309b6213ffe53eba81004b00e889d653e4b83 | Mihai Maruseac | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -225,7 +225,7 @@ class InplaceOpBase : public OpKernel {\n \n Tensor y = x; // This creates an alias intentionally.\n // Skip processing if tensors are empty.\n- if (x.NumElements() > 0 || v.NumElements() > 0) {\n+ if (x.Num... | cc | CWE-369 | [
"tensorflow/core/kernels/inplace_ops.cc"
] | tensorflow/core/kernels/inplace_ops.cc | 1 |
def before_upstream_connection( raise ProxyAuthenticationFailed() parts = request.headers[b'proxy-authorization'][1].split() if len(parts) != 2 \ and parts[0].lower() != b'basic' \ and parts[1] != self.flags.auth_code: rais... | def before_upstream_connection( raise ProxyAuthenticationFailed() parts = request.headers[b'proxy-authorization'][1].split() if len(parts) != 2 \ or parts[0].lower() != b'basic' \ or parts[1] != self.flags.auth_code: raise ... | GHSA-cmc7-mfmr-xqrx | {'CWE-480', 'CWE-287'} | 7.5 | {'https://github.com/abhinavsingh/proxy.py/pull/482/commits/9b00093288237f5073c403f2c4f62acfdfa8ed46'} | osv | Logic error in authentication in proxy.py before_upstream_connection in AuthPlugin in http/proxy/auth.py in proxy.py before 2.3.1 accepts incorrect Proxy-Authorization header data because of a boolean confusion (and versus or). | 2021-04-07 | 1 | https://github.com/abhinavsingh/proxy.py | https://github.com/abhinavsingh/proxy.py/pull/482/commits/9b00093288237f5073c403f2c4f62acfdfa8ed46 | 9b00093288237f5073c403f2c4f62acfdfa8ed46 | SINGLE | ['9b00093288237f5073c403f2c4f62acfdfa8ed46'] | {'0f78e74705e295bbfccfba342bf9fd34a9aa9103'} | 9b00093288237f5073c403f2c4f62acfdfa8ed46 | 1 | 01/10/2021, 16:30:14 | Fix basic auth condition | Abhinav Singh | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -35,8 +35,8 @@ def before_upstream_connection(\n raise ProxyAuthenticationFailed()\n parts = request.headers[b'proxy-authorization'][1].split()\n if len(parts) != 2 \\\n- and parts... | py | CWE-287 | [
"proxy/http/proxy/auth.py"
] | proxy/http/proxy/auth.py | 1 |
func NewTensor(value interface{}) (*Tensor, error) { raw := tensorData(t.c) runtime.SetFinalizer(t, func(t *Tensor) { if dataType == String { t.clearTStrings(raw, nflattened) } t.finalize() func NewTensor(value interface{}) (*Tensor, error) { if isAllArray(val.Type()) { // We have arrays all the way d... | func NewTensor(value interface{}) (*Tensor, error) { raw := tensorData(t.c) defer runtime.SetFinalizer(t, func(t *Tensor) { if dataType == String { t.clearTStrings(raw, int64(nbytes/C.sizeof_TF_TString)) } t.finalize() func NewTensor(value interface{}) (*Tensor, error) { if isAllArray(val.Type()) { //... | GHSA-cmgw-8vpc-rc59 | {'CWE-20'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/8721ba96e5760c229217b594f6d2ba332beedf22'} | osv | Segfault on strings tensors with mistmatched dimensions, due to Go code ### Impact
Under certain conditions, Go code can trigger a segfault in string deallocation.
For string tensors, `C.TF_TString_Dealloc` is called during garbage collection within a finalizer function. However, tensor structure isn't checked until... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/8721ba96e5760c229217b594f6d2ba332beedf22 | 8721ba96e5760c229217b594f6d2ba332beedf22 | SINGLE | ['8721ba96e5760c229217b594f6d2ba332beedf22'] | {'5a14b2e21e2026b0838f892fed43c4c0e4b3c299', '49499c17794b39a2a7d5be2b477ed7d5704d0629'} | 8721ba96e5760c229217b594f6d2ba332beedf22 | 1 | 07/13/2021, 22:13:47 | Merge pull request #50508 from wamuir:fix-tstring-dealloc
PiperOrigin-RevId: 384557722
Change-Id: I72858edf72952fd4e7e0a1d9776c9408a7081d42 | TensorFlower Gardener | null | {'additions': 17, 'deletions': 13, 'total': 30} | [
{
"additions": 17,
"changes": 30,
"deletions": 13,
"patch": "@@ -98,9 +98,9 @@ func NewTensor(value interface{}) (*Tensor, error) {\n \n \traw := tensorData(t.c)\n \n-\truntime.SetFinalizer(t, func(t *Tensor) {\n+\tdefer runtime.SetFinalizer(t, func(t *Tensor) {\n \t\tif dataType == String {\n-\t\t\... | go | CWE-20 | [
"tensorflow/go/tensor.go"
] | tensorflow/go/tensor.go | 1 |
function isURLSearchParams(val) { * @returns {String} The String freed of excess whitespace */ function trim(str) { return str.replace(/^\s*/, '').replace(/\s*$/, ''); } /** | function isURLSearchParams(val) { * @returns {String} The String freed of excess whitespace */ function trim(str) { return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, ''); } /** | GHSA-cph5-m8f7-6c5x | {'CWE-697', 'CWE-400'} | 7.5 | {'https://github.com/axios/axios/commit/5b457116e31db0e88fede6c428e969e87f290929'} | osv | Incorrect Comparison in axios axios is vulnerable to Inefficient Regular Expression Complexity | 2021-09-01 | 1 | https://github.com/axios/axios | https://github.com/axios/axios/commit/5b457116e31db0e88fede6c428e969e87f290929 | 5b457116e31db0e88fede6c428e969e87f290929 | SINGLE | ['5b457116e31db0e88fede6c428e969e87f290929'] | {'5bc9ea24dda14e74def0b8ae9cdb3fa1a0c77773'} | 5b457116e31db0e88fede6c428e969e87f290929 | 1 | 08/30/2021, 12:33:43 | Security fix for ReDoS (#3980) | ready-research | {'com_1': {'author': 'kanatBektursyn', 'datetime': '09/02/2021, 07:27:22', 'body': 'What is the usage of self made trim function?'}, 'com_2': {'author': 'muditjuneja', 'datetime': '09/03/2021, 13:40:44', 'body': 'Something related to this : https://app.snyk.io/vuln/SNYK-JS-AXIOS-1579269?'}, 'com_3': {'author': 'vargaur... | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -185,7 +185,7 @@ function isURLSearchParams(val) {\n * @returns {String} The String freed of excess whitespace\n */\n function trim(str) {\n- return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n+ return str.trim ? str.trim() : str.r... | js | CWE-400 | [
"lib/utils.js"
] | lib/utils.js | 1 |
void writeMessageIfNotNull(String message, String partToRedirectTo, if (message != null) { writeln(SCRIPT_BEGIN); // writeDirectly pour ne pas gérer de traductions si le message contient '#' writeDirectly("alert(\"" + javascriptEncode(message) + "\");"); writeln(""); // redirect vers une url évitant q... | void writeMessageIfNotNull(String message, String partToRedirectTo, if (message != null) { writeln(SCRIPT_BEGIN); // writeDirectly pour ne pas gérer de traductions si le message contient '#' writeDirectly("alert(\"" + htmlEncodeButNotSpace(javascriptEncode(message)) + "\");"); writeln(""); // redirect... | GHSA-cqhr-jqvc-qw9p | {'CWE-79'} | 10 | {'https://github.com/javamelody/javamelody/commit/e0497c1980acebd257d3da78dfde29ae9bdffdf6'} | osv | Java Melody vulnerable to cross-site scripting JavaMelody is a monitoring tool for JavaEE applications. Versions prior to 1.61.0 are vulnerable to a cross-site scripting (XSS) attack. This issue was patched in version 1.61.0, and users are recommended to upgrade to the latest version. There are no known workarounds. | 2022-07-20 | 1 | https://github.com/javamelody/javamelody | https://github.com/javamelody/javamelody/commit/e0497c1980acebd257d3da78dfde29ae9bdffdf6 | e0497c1980acebd257d3da78dfde29ae9bdffdf6 | SINGLE | ['e0497c1980acebd257d3da78dfde29ae9bdffdf6'] | {'7f9460e61bc2d942af3fee19041deda6c8f85816'} | e0497c1980acebd257d3da78dfde29ae9bdffdf6 | 1 | 08/24/2016, 15:15:22 | fix XSS | evernat | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -365,7 +365,7 @@ void writeMessageIfNotNull(String message, String partToRedirectTo,\n \t\tif (message != null) {\r\n \t\t\twriteln(SCRIPT_BEGIN);\r\n \t\t\t// writeDirectly pour ne pas gérer de traductions si le message contient '#'\r\n-\... | java | CWE-79 | [
"javamelody-core/src/main/java/net/bull/javamelody/HtmlCoreReport.java"
] | javamelody-core/src/main/java/net/bull/javamelody/HtmlCoreReport.java | 1 |
TfLiteStatus ResizeOutput(TfLiteContext* context, const TfLiteTensor* input, axis_value += NumDimensions(input); } // Copy the input dimensions to output except the axis dimension. TfLiteIntArray* output_dims = TfLiteIntArrayCreate(NumDimensions(input) - 1); int j = 0; | TfLiteStatus ResizeOutput(TfLiteContext* context, const TfLiteTensor* input, axis_value += NumDimensions(input); } TF_LITE_ENSURE(context, axis_value >= 0); TF_LITE_ENSURE(context, axis_value < NumDimensions(input)); // Copy the input dimensions to output except the axis dimension. TfLiteIntArray* outp... | GHSA-crch-j389-5f84 | {'CWE-787'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/c59c37e7b2d563967da813fa50fe20b21f4da683'} | osv | Heap OOB write in TFLite ### Impact
A specially crafted TFLite model could trigger an OOB write on heap in the TFLite implementation of [`ArgMin`/`ArgMax`](https://github.com/tensorflow/tensorflow/blob/102b211d892f3abc14f845a72047809b39cc65ab/tensorflow/lite/kernels/arg_min_max.cc#L52-L59):
```cc
TfLiteIntArray* outpu... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/c59c37e7b2d563967da813fa50fe20b21f4da683 | c59c37e7b2d563967da813fa50fe20b21f4da683 | SINGLE | ['c59c37e7b2d563967da813fa50fe20b21f4da683'] | {'102b211d892f3abc14f845a72047809b39cc65ab'} | c59c37e7b2d563967da813fa50fe20b21f4da683 | 1 | 04/29/2021, 00:50:10 | Prevent array write out-of-bounds.
If user passes an invalid axis, then we copy one too many dimensions to the output in the loop below these checks. Even if we didn't do that, there will be further issues with an invalid axis, so we check for that right now.
PiperOrigin-RevId: 371023299
Change-Id: I9eca37ffc2b29e8e4... | Mihai Maruseac | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -48,6 +48,9 @@ TfLiteStatus ResizeOutput(TfLiteContext* context, const TfLiteTensor* input,\n axis_value += NumDimensions(input);\n }\n \n+ TF_LITE_ENSURE(context, axis_value >= 0);\n+ TF_LITE_ENSURE(context, axis_value < NumDimens... | cc | CWE-787 | [
"tensorflow/lite/kernels/arg_min_max.cc"
] | tensorflow/lite/kernels/arg_min_max.cc | 1 |
protected function _validateSecretKey() } if (!($secretKey = $this->getRequest()->getParam(Mage_Adminhtml_Model_Url::SECRET_KEY_PARAM_NAME, null)) || $secretKey != Mage::getSingleton('adminhtml/url')->getSecretKey()) { return false; } return true; | protected function _validateSecretKey() } if (!($secretKey = $this->getRequest()->getParam(Mage_Adminhtml_Model_Url::SECRET_KEY_PARAM_NAME, null)) || !hash_equals(Mage::getSingleton('adminhtml/url')->getSecretKey(), $secretKey)) { return false; } return true; | GHSA-crf2-xm6x-46p6 | {'CWE-352', 'CWE-203'} | 8 | {'https://github.com/OpenMage/magento-lts/commit/7c526bc6a6a51b57a1bab4c60f104dc36cde347a'} | osv | Observable Timing Discrepancy in OpenMage LTS ### Impact
This vulnerability allows to circumvent the **formkey protection** in the Admin Interface and increases the attack surface for **Cross Site Request Forgery** attacks
### Patches
The latest OpenMage Versions up from 19.4.6 and 20.0.2 have this Issue solved
##... | 2020-08-19 | 1 | https://github.com/OpenMage/magento-lts | https://github.com/OpenMage/magento-lts/commit/7c526bc6a6a51b57a1bab4c60f104dc36cde347a | 7c526bc6a6a51b57a1bab4c60f104dc36cde347a | SINGLE | ['7c526bc6a6a51b57a1bab4c60f104dc36cde347a'] | {'4c02c105bfe38c703ec73fce0b1a031440fdc4ba'} | 7c526bc6a6a51b57a1bab4c60f104dc36cde347a | 1 | 08/18/2020, 17:19:54 | Merge pull request from GHSA-crf2-xm6x-46p6 | Daniel Fahlke | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -389,7 +389,7 @@ protected function _validateSecretKey()\n }\n \n if (!($secretKey = $this->getRequest()->getParam(Mage_Adminhtml_Model_Url::SECRET_KEY_PARAM_NAME, null))\n- || $secretKey != Mage::getSingleton('a... | php | CWE-352 | [
"app/code/core/Mage/Adminhtml/Controller/Action.php"
] | app/code/core/Mage/Adminhtml/Controller/Action.php | 1 |
Status QuantizeV2Shape(InferenceContext* c) { if (!s.ok() && s.code() != error::NOT_FOUND) { return s; } const int minmax_rank = (axis == -1) ? 0 : 1; TF_RETURN_IF_ERROR(shape_inference::UnchangedShape(c)); ShapeHandle minmax; | Status QuantizeV2Shape(InferenceContext* c) { if (!s.ok() && s.code() != error::NOT_FOUND) { return s; } if (axis < -1) { return errors::InvalidArgument("axis should be at least -1, got ", axis); } const int minmax_rank = (axis == -1) ? 0 : 1; TF_RETURN_IF_ERROR(shape_inference::UnchangedShape(c));... | GHSA-cvgx-3v3q-m36c | {'CWE-125'} | 7.1 | {'https://github.com/tensorflow/tensorflow/commit/a0d64445116c43cf46a5666bd4eee28e7a82f244'} | osv | Heap OOB in shape inference for `QuantizeV2` ### Impact
The [shape inference code for `QuantizeV2`](https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/framework/common_shape_fns.cc#L2509-L2530) can trigger a read outside of bounds of heap allocated array:
```python
i... | 2021-11-10 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/a0d64445116c43cf46a5666bd4eee28e7a82f244 | a0d64445116c43cf46a5666bd4eee28e7a82f244 | SINGLE | ['a0d64445116c43cf46a5666bd4eee28e7a82f244'] | {'4a7c71d60c94ae3bc8149429988eeeb1d5466f00'} | a0d64445116c43cf46a5666bd4eee28e7a82f244 | 1 | 10/01/2021, 22:52:56 | Prevent OOB access in QuantizeV2 shape inference
PiperOrigin-RevId: 400309614
Change-Id: I31412c71b05b4f21b677f7fa715a61499cbee39d | Yu-Cheng Ling | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -2559,6 +2559,9 @@ Status QuantizeV2Shape(InferenceContext* c) {\n if (!s.ok() && s.code() != error::NOT_FOUND) {\n return s;\n }\n+ if (axis < -1) {\n+ return errors::InvalidArgument(\"axis should be at least -1, got \", axis)... | cc | CWE-125 | [
"tensorflow/core/framework/common_shape_fns.cc"
] | tensorflow/core/framework/common_shape_fns.cc | 1 |
module.exports = function(braces, options) { .set('multiplier', function() { var isInside = this.isInside('brace'); var pos = this.position(); var m = this.match(/^\{(,+(?:(\{,+\})*),*|,*(?:(\{,+\})*),+)\}/); if (!m) return; this.multiplier = true; | module.exports = function(braces, options) { .set('multiplier', function() { var isInside = this.isInside('brace'); var pos = this.position(); var m = this.match(/^\{((?:,|\{,+\})+)\}/); if (!m) return; this.multiplier = true; | GHSA-cwfw-4gq5-mrqx | {'CWE-400'} | 0 | {'https://github.com/micromatch/braces/commit/abdafb0cae1e0c00f184abbadc692f4eaa98f451'} | osv | Regular Expression Denial of Service (ReDoS) in braces A vulnerability was found in Braces versions prior to 2.3.1. Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks. | 2022-01-06 | 1 | https://github.com/micromatch/braces | https://github.com/micromatch/braces/commit/abdafb0cae1e0c00f184abbadc692f4eaa98f451 | abdafb0cae1e0c00f184abbadc692f4eaa98f451 | SINGLE | ['abdafb0cae1e0c00f184abbadc692f4eaa98f451'] | {'37934142c1aeea48b6fb03edbdcf90e45b5cb4a1'} | abdafb0cae1e0c00f184abbadc692f4eaa98f451 | 1 | 02/16/2018, 21:09:36 | optimize regex | jonschlinkert | {'com_1': {'author': 'sathish-spidie', 'datetime': '04/18/2019, 03:42:11', 'body': "can you explain, how to achieve this? I'm a low-level developer and didn't understand why this code stands for and what to do with it! sorry if I waste your time by making you read this comment, in case you find this comment useless.\r\... | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -127,7 +127,7 @@ module.exports = function(braces, options) {\n .set('multiplier', function() {\n var isInside = this.isInside('brace');\n var pos = this.position();\n- var m = this.match(/^\\{(,+(?:(\\{,+\\})*),*|,*(?... | js | CWE-400 | [
"lib/parsers.js"
] | lib/parsers.js | 1 |
def _constant_value(ragged_factory, inner_factory, pylist, dtype, ragged_rank, if max_depth > scalar_depth: raise ValueError("Invalid pylist=%r: empty list nesting is greater " "than scalar value nesting" % pylist) # If both inner_shape and ragged_rank were specified, then check tha... | def _constant_value(ragged_factory, inner_factory, pylist, dtype, ragged_rank, if max_depth > scalar_depth: raise ValueError("Invalid pylist=%r: empty list nesting is greater " "than scalar value nesting" % pylist) if ragged_rank is not None and max_depth < ragged_rank: raise... | GHSA-cwpm-f78v-7m5c | {'CWE-400', 'CWE-20'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/bd4d5583ff9c8df26d47a23e508208844297310e'} | osv | Denial of service in `tf.ragged.constant` due to lack of validation ### Impact
The implementation of [`tf.ragged.constant`](https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/python/ops/ragged/ragged_factory_ops.py#L146-L239) does not fully validate the input arguments. Th... | 2022-05-24 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/bd4d5583ff9c8df26d47a23e508208844297310e | bd4d5583ff9c8df26d47a23e508208844297310e | SINGLE | ['bd4d5583ff9c8df26d47a23e508208844297310e'] | {'e74ef072ecd54ca54f3940ce9b98af796ded2a1a'} | bd4d5583ff9c8df26d47a23e508208844297310e | 1 | 04/15/2022, 16:11:43 | Prevent denial of service in `tf.ragged.constant`
Fixes #55199
PiperOrigin-RevId: 442029525 | Mihai Maruseac | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -188,6 +188,9 @@ def _constant_value(ragged_factory, inner_factory, pylist, dtype, ragged_rank,\n if max_depth > scalar_depth:\n raise ValueError(\"Invalid pylist=%r: empty list nesting is greater \"\n \"th... | py | CWE-20 | [
"tensorflow/python/ops/ragged/ragged_factory_ops.py"
] | tensorflow/python/ops/ragged/ragged_factory_ops.py | 1 |
def _constant_value(ragged_factory, inner_factory, pylist, dtype, ragged_rank, if max_depth > scalar_depth: raise ValueError("Invalid pylist=%r: empty list nesting is greater " "than scalar value nesting" % pylist) # If both inner_shape and ragged_rank were specified, then check tha... | def _constant_value(ragged_factory, inner_factory, pylist, dtype, ragged_rank, if max_depth > scalar_depth: raise ValueError("Invalid pylist=%r: empty list nesting is greater " "than scalar value nesting" % pylist) if ragged_rank is not None and max_depth < ragged_rank: raise... | GHSA-cwpm-f78v-7m5c | {'CWE-400', 'CWE-20'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/bd4d5583ff9c8df26d47a23e508208844297310e'} | osv | Denial of service in `tf.ragged.constant` due to lack of validation ### Impact
The implementation of [`tf.ragged.constant`](https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/python/ops/ragged/ragged_factory_ops.py#L146-L239) does not fully validate the input arguments. Th... | 2022-05-24 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/bd4d5583ff9c8df26d47a23e508208844297310e | bd4d5583ff9c8df26d47a23e508208844297310e | SINGLE | ['bd4d5583ff9c8df26d47a23e508208844297310e'] | {'e74ef072ecd54ca54f3940ce9b98af796ded2a1a'} | bd4d5583ff9c8df26d47a23e508208844297310e | 1 | 04/15/2022, 16:11:43 | Prevent denial of service in `tf.ragged.constant`
Fixes #55199
PiperOrigin-RevId: 442029525 | Mihai Maruseac | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -188,6 +188,9 @@ def _constant_value(ragged_factory, inner_factory, pylist, dtype, ragged_rank,\n if max_depth > scalar_depth:\n raise ValueError(\"Invalid pylist=%r: empty list nesting is greater \"\n \"th... | py | CWE-400 | [
"tensorflow/python/ops/ragged/ragged_factory_ops.py"
] | tensorflow/python/ops/ragged/ragged_factory_ops.py | 1 |
use PrestaShopBundle\Form\Admin\Type\TranslatorAwareType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; class CustomUrlType extends TranslatorAwareType { public function buildForm(FormBuilderInterface $builder, array $options) ->add('url', TextTy... | use PrestaShopBundle\Form\Admin\Type\TranslatorAwareType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Validator\Constraints as Assert; class CustomUrlType extends TranslatorAwareType { public function buildForm(FormBuilderInterface $b... | GHSA-cx2r-mf6x-55rx | {'CWE-79'} | 4.1 | {'https://github.com/PrestaShop/ps_linklist/commit/83e6e0bdda2287f4d6e64127cb90c41d26b5ad82'} | osv | Stored XSS with custom URLs in PrestaShop module ps_linklist ### Impact
Stored XSS when using custom URLs.
### Patches
The problem is fixed in 3.1.0
### References
[Cross-site Scripting (XSS) - Stored (CWE-79)](https://cwe.mitre.org/data/definitions/79.html) | 2021-10-12 | 1 | https://github.com/PrestaShop/ps_linklist | https://github.com/PrestaShop/ps_linklist/commit/83e6e0bdda2287f4d6e64127cb90c41d26b5ad82 | 83e6e0bdda2287f4d6e64127cb90c41d26b5ad82 | SINGLE | ['83e6e0bdda2287f4d6e64127cb90c41d26b5ad82'] | {'b90005c2cfed949ab564228b277a728e0a62a876', '632e61961553a5cdd4c12ad7218e914455dbaa6b'} | 83e6e0bdda2287f4d6e64127cb90c41d26b5ad82 | 1 | 04/15/2020, 14:16:34 | Merge pull request from GHSA-cx2r-mf6x-55rx
The custom url field must be a valid url | GoT | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -29,6 +29,7 @@\n use PrestaShopBundle\\Form\\Admin\\Type\\TranslatorAwareType;\n use Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\n use Symfony\\Component\\Form\\FormBuilderInterface;\n+use Symfony\\Component\\Validator\\Cons... | php | CWE-79 | [
"src/Form/Type/CustomUrlType.php"
] | src/Form/Type/CustomUrlType.php | 1 |
// Copyright 2016 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. func mailIssueCommentToParticipants(e Engine, issue *Issue, doer *User, content names = append(names, participants[i].Name) } SendIssueCommentMail(issue... | // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2018 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. func mailIssueCommentToParticipants(e Engine, issue *Issue, doer *User, content names = append(na... | GHSA-f5fj-7265-jxhj | {'CWE-200'} | 5.3 | {'https://github.com/go-gitea/gitea/commit/194a11eb110cd98fc2ba52861abf7770db6885a3'} | osv | Information Exposure Gitea version prior to version 1.5.1 contains a CWE-200 vulnerability that can result in Exposure of users private email addresses. This attack appear to be exploitable via Watch a repository to receive email notifications. Emails received contain the other recipients even if they have the email se... | 2022-02-15 | 1 | https://github.com/go-gitea/gitea | https://github.com/go-gitea/gitea/commit/194a11eb110cd98fc2ba52861abf7770db6885a3 | 194a11eb110cd98fc2ba52861abf7770db6885a3 | SINGLE | ['194a11eb110cd98fc2ba52861abf7770db6885a3'] | {'912953e82a851492c7fd1f2e9c10d3a1955b625c'} | 194a11eb110cd98fc2ba52861abf7770db6885a3 | 1 | 08/24/2018, 04:41:26 | Don't disclose emails of all users when sending out emails (#4664) | techknowlogick | null | {'additions': 10, 'deletions': 2, 'total': 12} | [
{
"additions": 10,
"changes": 12,
"deletions": 2,
"patch": "@@ -1,4 +1,5 @@\n // Copyright 2016 The Gogs Authors. All rights reserved.\n+// Copyright 2018 The Gitea Authors. All rights reserved.\n // Use of this source code is governed by a MIT-style\n // license that can be found in the LICENSE fil... | go | CWE-200 | [
"models/issue_mail.go"
] | models/issue_mail.go | 1 |
where unsafe impl<R> Send for Decoder<R> where R: Read, { } | where unsafe impl<R> Send for Decoder<R> where R: Read + Send, { } | GHSA-f6g6-54hm-fhxv | {'CWE-362', 'CWE-119'} | 8.1 | {'https://github.com/mvertescher/libsbc-rs/commit/a34d6e10f6f5654ed01a35288cf683d014ebc9c4'} | osv | Data races in libsbc Affected versions of this crate implements `Send` for `Decoder<R>` for any `R: Read`. This allows `Decoder<R>` to contain `R: !Send` and carry (move) it to another thread.
This can result in undefined behavior such as memory corruption from data race on `R`, or dropping `R = MutexGuard<_>` from a ... | 2021-08-25 | 1 | https://github.com/mvertescher/libsbc-rs | https://github.com/mvertescher/libsbc-rs/commit/a34d6e10f6f5654ed01a35288cf683d014ebc9c4 | a34d6e10f6f5654ed01a35288cf683d014ebc9c4 | SINGLE | ['a34d6e10f6f5654ed01a35288cf683d014ebc9c4'] | {'7278b23901f93d956d9739fdfc4ced147cc3f242'} | a34d6e10f6f5654ed01a35288cf683d014ebc9c4 | 1 | 01/23/2021, 02:06:34 | Add R: Send bound to Send impl of Decoder<R>
fixes issue #4 | JOE1994 | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -33,7 +33,7 @@ where\n \n unsafe impl<R> Send for Decoder<R>\n where\n- R: Read,\n+ R: Read + Send,\n {\n }",
"path": "src/lib.rs",
"raw_url": "https://github.com/mvertescher/libsbc-rs/raw/a34d6e10f6f5654ed01a35288cf6... | rs | CWE-362 | [
"src/lib.rs"
] | src/lib.rs | 1 |
where unsafe impl<R> Send for Decoder<R> where R: Read, { } | where unsafe impl<R> Send for Decoder<R> where R: Read + Send, { } | GHSA-f6g6-54hm-fhxv | {'CWE-362', 'CWE-119'} | 8.1 | {'https://github.com/mvertescher/libsbc-rs/commit/a34d6e10f6f5654ed01a35288cf683d014ebc9c4'} | osv | Data races in libsbc Affected versions of this crate implements `Send` for `Decoder<R>` for any `R: Read`. This allows `Decoder<R>` to contain `R: !Send` and carry (move) it to another thread.
This can result in undefined behavior such as memory corruption from data race on `R`, or dropping `R = MutexGuard<_>` from a ... | 2021-08-25 | 1 | https://github.com/mvertescher/libsbc-rs | https://github.com/mvertescher/libsbc-rs/commit/a34d6e10f6f5654ed01a35288cf683d014ebc9c4 | a34d6e10f6f5654ed01a35288cf683d014ebc9c4 | SINGLE | ['a34d6e10f6f5654ed01a35288cf683d014ebc9c4'] | {'7278b23901f93d956d9739fdfc4ced147cc3f242'} | a34d6e10f6f5654ed01a35288cf683d014ebc9c4 | 1 | 01/23/2021, 02:06:34 | Add R: Send bound to Send impl of Decoder<R>
fixes issue #4 | JOE1994 | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -33,7 +33,7 @@ where\n \n unsafe impl<R> Send for Decoder<R>\n where\n- R: Read,\n+ R: Read + Send,\n {\n }",
"path": "src/lib.rs",
"raw_url": "https://github.com/mvertescher/libsbc-rs/raw/a34d6e10f6f5654ed01a35288cf6... | rs | CWE-119 | [
"src/lib.rs"
] | src/lib.rs | 1 |
func (fp *FileProvider) SessionRead(sid string) (Store, error) { filepder.lock.Lock() defer filepder.lock.Unlock() err := os.MkdirAll(path.Join(fp.savePath, string(sid[0]), string(sid[1])), 0777) if err != nil { SLogger.Println(err.Error()) } func (fp *FileProvider) SessionRegenerate(oldsid, sid string) (Store... | func (fp *FileProvider) SessionRead(sid string) (Store, error) { filepder.lock.Lock() defer filepder.lock.Unlock() err := os.MkdirAll(path.Join(fp.savePath, string(sid[0]), string(sid[1])), 0755) if err != nil { SLogger.Println(err.Error()) } func (fp *FileProvider) SessionRegenerate(oldsid, sid string) (Store... | GHSA-f6px-w8rh-7r89 | {'CWE-362', 'CWE-732'} | 4.7 | {'https://github.com/beego/beego/pull/3975/commits/f99cbe0fa40936f2f8dd28e70620c559b6e5e2fd'} | osv | Data race in Beego The File Session Manager in Beego 1.10.0 allows local users to read session files because there is a race condition involving file creation within a directory with weak permissions. | 2021-08-02 | 1 | https://github.com/beego/beego | https://github.com/beego/beego/pull/3975/commits/f99cbe0fa40936f2f8dd28e70620c559b6e5e2fd | f99cbe0fa40936f2f8dd28e70620c559b6e5e2fd | SINGLE | ['f99cbe0fa40936f2f8dd28e70620c559b6e5e2fd'] | {'8f3d1c5f42fce57e83e1c3f7d180477595db7cca'} | f99cbe0fa40936f2f8dd28e70620c559b6e5e2fd | 1 | 04/22/2020, 15:42:54 | Change permission mask | Nico Waisman | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -138,7 +138,7 @@ func (fp *FileProvider) SessionRead(sid string) (Store, error) {\n \tfilepder.lock.Lock()\n \tdefer filepder.lock.Unlock()\n \n-\terr := os.MkdirAll(path.Join(fp.savePath, string(sid[0]), string(sid[1])), 0777)\n+\terr := ... | go | CWE-362 | [
"session/sess_file.go"
] | session/sess_file.go | 1 |
} this.sync(); } RuleEngine.prototype.toJSON = function() { var rules = this.rules; if (rules instanceof Array) { rules = rules.map(function(rule) { rule.condition = rule.condition.toString(); rule.consequence = rule.consequence.toStri... | } this.sync(); } module.exports = RuleEngine; }(module.exports)); | GHSA-f78f-353m-cf4j | {'CWE-94'} | 9.8 | {'https://github.com/mithunsatheesh/node-rules/commit/100862223904bb6478fcc33b701c7dee11f7b832'} | osv | Code Injection in node-rules node-rules including 3.0.0 and prior to 5.0.0 allows injection of arbitrary commands. The argument rules of function "fromJSON()" can be controlled by users without any sanitization. | 2021-12-10 | 1 | https://github.com/mithunsatheesh/node-rules | https://github.com/mithunsatheesh/node-rules/commit/100862223904bb6478fcc33b701c7dee11f7b832 | 100862223904bb6478fcc33b701c7dee11f7b832 | SINGLE | ['100862223904bb6478fcc33b701c7dee11f7b832'] | {'1b07c48336ce30aa6d3b6b3be1850cd292860dbb'} | 100862223904bb6478fcc33b701c7dee11f7b832 | 1 | 03/16/2020, 13:43:37 | Remove fromJSON and toJSON from exposed APIs
Remove fromJSON and toJSON from exposed APIs in V5.0.0 | Mithun Satheesh | null | {'additions': 0, 'deletions': 31, 'total': 31} | [
{
"additions": 0,
"changes": 31,
"deletions": 31,
"patch": "@@ -128,36 +128,5 @@\n }\n this.sync();\n }\n- RuleEngine.prototype.toJSON = function() {\n- var rules = this.rules;\n- if (rules instanceof Array) {\n- rules = rules.map(function(rule) {\n- ... | js | CWE-94 | [
"lib/node-rules.js"
] | lib/node-rules.js | 1 |
class FractionalAvgPoolOp : public OpKernel { std::vector<int> output_size(tensor_in_and_out_dims); for (int i = 0; i < tensor_in_and_out_dims; ++i) { input_size[i] = tensor_in.dim_size(i); } // Output size. for (int i = 0; i < tensor_in_and_out_dims; ++i) { | class FractionalAvgPoolOp : public OpKernel { std::vector<int> output_size(tensor_in_and_out_dims); for (int i = 0; i < tensor_in_and_out_dims; ++i) { input_size[i] = tensor_in.dim_size(i); OP_REQUIRES( context, pooling_ratio_[i] <= input_size[i], errors::InvalidArgument( ... | GHSA-f78g-q7r4-9wcv | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/548b5eaf23685d86f722233d8fbc21d0a4aecb96'} | osv | Division by 0 in `FractionalAvgPool` ### Impact
An attacker can cause a runtime division by zero error and denial of service in `tf.raw_ops.FractionalAvgPool`:
```python
import tensorflow as tf
value = tf.constant([60], shape=[1, 1, 1, 1], dtype=tf.int32)
pooling_ratio = [1.0, 1.0000014345305555, 1.0, 1.0]
pseudo_ran... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/548b5eaf23685d86f722233d8fbc21d0a4aecb96 | 548b5eaf23685d86f722233d8fbc21d0a4aecb96 | SINGLE | ['548b5eaf23685d86f722233d8fbc21d0a4aecb96'] | {'acc8ee69f5f46f92a3f1f11230f49c6ac266f10c'} | 548b5eaf23685d86f722233d8fbc21d0a4aecb96 | 1 | 04/29/2021, 15:38:16 | Fix divide by zero error in `fractional_pool_common.cc`.
PiperOrigin-RevId: 371126221
Change-Id: Iea4b2f363aaeb116ab460e3bc592c687484af344 | Laura Pak | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -80,6 +80,10 @@ class FractionalAvgPoolOp : public OpKernel {\n std::vector<int> output_size(tensor_in_and_out_dims);\n for (int i = 0; i < tensor_in_and_out_dims; ++i) {\n input_size[i] = tensor_in.dim_size(i);\n+ OP_RE... | cc | CWE-369 | [
"tensorflow/core/kernels/fractional_avg_pool_op.cc"
] | tensorflow/core/kernels/fractional_avg_pool_op.cc | 1 |
THE SOFTWARE. <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.1-jenkins-1</version> </dependency> <!-- offline profiler API to put in the classpath if we need it --> | THE SOFTWARE. <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.1-jenkins-2</version> </dependency> <!-- offline profiler API to put in the classpath if we need it --> | GHSA-f7f6-xrwc-9c57 | {'CWE-20'} | 7.5 | {'https://github.com/jenkinsci/jenkins/commit/ea981a029cb985b71f3a0dc0f9ce3b3e3e6c001b'} | osv | Improper Input Validation in Jenkins Jenkins 2.73.1 and earlier, 2.83 and earlier bundled a version of the commons-fileupload library with the denial-of-service vulnerability known as CVE-2016-3092. The fix for that vulnerability has been backported to the version of the library bundled with Jenkins. | 2022-05-14 | 1 | https://github.com/jenkinsci/jenkins | https://github.com/jenkinsci/jenkins/commit/ea981a029cb985b71f3a0dc0f9ce3b3e3e6c001b | ea981a029cb985b71f3a0dc0f9ce3b3e3e6c001b | SINGLE | ['ea981a029cb985b71f3a0dc0f9ce3b3e3e6c001b'] | {'fe77d1c3dbf91ddf2a9f8e5ed882611455ab00d0'} | ea981a029cb985b71f3a0dc0f9ce3b3e3e6c001b | 1 | 09/29/2017, 13:41:00 | [SECURITY-490] Patch Commons File Upload 1.3.x. | Jesse Glick | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -588,7 +588,7 @@ THE SOFTWARE.\n <dependency>\n <groupId>commons-fileupload</groupId>\n <artifactId>commons-fileupload</artifactId>\n- <version>1.3.1-jenkins-1</version>\n+ <version>1.3.1-jenkins-2</version> \n ... | xml | CWE-20 | [
"core/pom.xml"
] | core/pom.xml | 1 |
public static function generateLayoutTreeFromArray($array, $throwException = fal { if (is_array($array) && count($array) > 0) { if ($name = $array['name'] ?? false) { $sanitizedName = htmlentities($name); if ($sanitizedName !== $name) { throw ... | public static function generateLayoutTreeFromArray($array, $throwException = fal { if (is_array($array) && count($array) > 0) { if ($name = $array['name'] ?? false) { if (preg_match('/<.+?>/', $name)) { throw new \Exception('not a valid name:' . htmlentities(... | GHSA-f7q6-xxph-mfm8 | {'CWE-79'} | 5.4 | {'https://github.com/pimcore/pimcore/commit/3ae96b9d41c117aafa45873ad10077d4b873a3cb'} | osv | Cross-site Scripting in Pimcore Pimcore prior to version 10.2.10 contains a cross-site scripting vulnerability. | 2022-01-27 | 1 | https://github.com/pimcore/pimcore | https://github.com/pimcore/pimcore/commit/3ae96b9d41c117aafa45873ad10077d4b873a3cb | 3ae96b9d41c117aafa45873ad10077d4b873a3cb | SINGLE | ['3ae96b9d41c117aafa45873ad10077d4b873a3cb'] | {'fbb2badbb05ec80e4f6f15b52fb2f58cbbf379c4'} | 3ae96b9d41c117aafa45873ad10077d4b873a3cb | 1 | 01/25/2022, 11:20:25 | disallow html entity names on import - follow up to #11217 | Divesh | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -315,11 +315,11 @@ public static function generateLayoutTreeFromArray($array, $throwException = fal\n {\n if (is_array($array) && count($array) > 0) {\n if ($name = $array['name'] ?? false) {\n- $sani... | php | CWE-79 | [
"models/DataObject/ClassDefinition/Service.php"
] | models/DataObject/ClassDefinition/Service.php | 1 |
limitations under the License. #include "tensorflow/core/framework/function_handle_cache.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/resource_mgr.h" #include "tensorflow/core/kernels/ops_util.h" #include "tensorflow/core/lib/core/threadpool.h" #include "tensorflow/core/lib/i... | limitations under the License. #include "tensorflow/core/framework/function_handle_cache.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/resource_mgr.h" #include "tensorflow/core/framework/types.h" #include "tensorflow/core/kernels/ops_util.h" #include "tensorflow/core/lib/core/... | GHSA-f8h4-7rgh-q2gm | {'CWE-787', 'CWE-120'} | 7.8 | {'https://github.com/tensorflow/tensorflow/commit/e0b6e58c328059829c3eb968136f17aa72b6c876'} | osv | Segfault and heap buffer overflow in `{Experimental,}DatasetToTFRecord` ### Impact
The implementation for `tf.raw_ops.ExperimentalDatasetToTFRecord` and `tf.raw_ops.DatasetToTFRecord` can trigger heap buffer overflow and segmentation fault:
```python
import tensorflow as tf
dataset = tf.data.Dataset.range(3)
dataset ... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/e0b6e58c328059829c3eb968136f17aa72b6c876 | e0b6e58c328059829c3eb968136f17aa72b6c876 | SINGLE | ['e0b6e58c328059829c3eb968136f17aa72b6c876'] | {'b5b9ae94a68215d4498ea2b3d1072dc4b2bf5600'} | e0b6e58c328059829c3eb968136f17aa72b6c876 | 1 | 07/29/2021, 21:58:43 | Fix segfault/heap buffer overflow in `{Experimental,}DatasetToTFRecord` where dataset is numeric.
Code assumes only strings inputs and then interprets numbers as valid `tstring`s. Then, when trying to compute the CRC of the record this results in heap buffer overflow.
PiperOrigin-RevId: 387675909
Change-Id: I7396b9b8... | Mihai Maruseac | null | {'additions': 14, 'deletions': 1, 'total': 15} | [
{
"additions": 14,
"changes": 15,
"deletions": 1,
"patch": "@@ -18,6 +18,7 @@ limitations under the License.\n #include \"tensorflow/core/framework/function_handle_cache.h\"\n #include \"tensorflow/core/framework/op_kernel.h\"\n #include \"tensorflow/core/framework/resource_mgr.h\"\n+#include \"tens... | cc | CWE-120 | [
"tensorflow/core/kernels/data/experimental/to_tf_record_op.cc"
] | tensorflow/core/kernels/data/experimental/to_tf_record_op.cc | 1 |
limitations under the License. #include "tensorflow/core/framework/function_handle_cache.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/resource_mgr.h" #include "tensorflow/core/kernels/ops_util.h" #include "tensorflow/core/lib/core/threadpool.h" #include "tensorflow/core/lib/i... | limitations under the License. #include "tensorflow/core/framework/function_handle_cache.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/resource_mgr.h" #include "tensorflow/core/framework/types.h" #include "tensorflow/core/kernels/ops_util.h" #include "tensorflow/core/lib/core/... | GHSA-f8h4-7rgh-q2gm | {'CWE-787', 'CWE-120'} | 7.8 | {'https://github.com/tensorflow/tensorflow/commit/e0b6e58c328059829c3eb968136f17aa72b6c876'} | osv | Segfault and heap buffer overflow in `{Experimental,}DatasetToTFRecord` ### Impact
The implementation for `tf.raw_ops.ExperimentalDatasetToTFRecord` and `tf.raw_ops.DatasetToTFRecord` can trigger heap buffer overflow and segmentation fault:
```python
import tensorflow as tf
dataset = tf.data.Dataset.range(3)
dataset ... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/e0b6e58c328059829c3eb968136f17aa72b6c876 | e0b6e58c328059829c3eb968136f17aa72b6c876 | SINGLE | ['e0b6e58c328059829c3eb968136f17aa72b6c876'] | {'b5b9ae94a68215d4498ea2b3d1072dc4b2bf5600'} | e0b6e58c328059829c3eb968136f17aa72b6c876 | 1 | 07/29/2021, 21:58:43 | Fix segfault/heap buffer overflow in `{Experimental,}DatasetToTFRecord` where dataset is numeric.
Code assumes only strings inputs and then interprets numbers as valid `tstring`s. Then, when trying to compute the CRC of the record this results in heap buffer overflow.
PiperOrigin-RevId: 387675909
Change-Id: I7396b9b8... | Mihai Maruseac | null | {'additions': 14, 'deletions': 1, 'total': 15} | [
{
"additions": 14,
"changes": 15,
"deletions": 1,
"patch": "@@ -18,6 +18,7 @@ limitations under the License.\n #include \"tensorflow/core/framework/function_handle_cache.h\"\n #include \"tensorflow/core/framework/op_kernel.h\"\n #include \"tensorflow/core/framework/resource_mgr.h\"\n+#include \"tens... | cc | CWE-787 | [
"tensorflow/core/kernels/data/experimental/to_tf_record_op.cc"
] | tensorflow/core/kernels/data/experimental/to_tf_record_op.cc | 1 |
def word_tokenize(self, s): return self._word_tokenizer_re().findall(s) _period_context_fmt = r""" \S* # some word material %(SentEndChars)s # a potential sentence ending (?=(?P<after_tok> %(NonWord)s # either other punc... | def word_tokenize(self, s): return self._word_tokenizer_re().findall(s) _period_context_fmt = r""" %(SentEndChars)s # a potential sentence ending (?=(?P<after_tok> %(NonWord)s # either other punctuation def debug_decisions(self, text): See forma... | GHSA-f8m6-h2c7-8h9x | {'CWE-400'} | 7.5 | {'https://github.com/nltk/nltk/commit/1405aad979c6b8080dbbc8e0858f89b2e3690341'} | osv | Inefficient Regular Expression Complexity in nltk (word_tokenize, sent_tokenize) ### Impact
The vulnerability is present in [`PunktSentenceTokenizer`](https://www.nltk.org/api/nltk.tokenize.punkt.html#nltk.tokenize.punkt.PunktSentenceTokenizer), [`sent_tokenize`](https://www.nltk.org/api/nltk.tokenize.html#nltk.tokeniz... | 2022-01-06 | 1 | https://github.com/nltk/nltk | https://github.com/nltk/nltk/commit/1405aad979c6b8080dbbc8e0858f89b2e3690341 | 1405aad979c6b8080dbbc8e0858f89b2e3690341 | SINGLE | ['1405aad979c6b8080dbbc8e0858f89b2e3690341'] | {'0b7b076247ec41f9b6b8a94400d48ea299e4b507'} | 1405aad979c6b8080dbbc8e0858f89b2e3690341 | 1 | 11/26/2021, 11:58:19 | Resolved serious ReDoS in PunktSentenceTokenizer (#2869)
* Resolved serious ReDOS in PunktSentenceTokenizer
* Improve performance by relying on string split instead of re.search
* Solved issue if sentence contains just one token | Tom Aarsen | null | {'additions': 61, 'deletions': 5, 'total': 66} | [
{
"additions": 61,
"changes": 66,
"deletions": 5,
"patch": "@@ -266,7 +266,6 @@ def word_tokenize(self, s):\n return self._word_tokenizer_re().findall(s)\n \n _period_context_fmt = r\"\"\"\n- \\S* # some word material\n %(SentEndChars)s ... | py | CWE-400 | [
"nltk/tokenize/punkt.py"
] | nltk/tokenize/punkt.py | 1 |
module.exports = function parse_str (str, array) { // eslint-disable-line camelc key = _fixStr(tmp[0]) value = (tmp.length < 2) ? '' : _fixStr(tmp[1]) while (key.charAt(0) === ' ') { key = key.slice(1) } | module.exports = function parse_str (str, array) { // eslint-disable-line camelc key = _fixStr(tmp[0]) value = (tmp.length < 2) ? '' : _fixStr(tmp[1]) if (key.includes('__proto__') || key.includes('constructor') || key.includes('prototype')) { break; } while (key.charAt(0) === ' ') { ... | GHSA-f98m-q3hr-p5wq | {'CWE-915', 'CWE-20'} | 9.8 | {'https://github.com/locutusjs/locutus/commit/0eb16d8541838e80f3c2340a9ef93ded7c97290f'} | osv | Prototype Pollution in locutus All versions of package locutus prior to version 2.0.12 are vulnerable to Prototype Pollution via the php.strings.parse_str function. | 2021-05-06 | 1 | https://github.com/locutusjs/locutus | https://github.com/locutusjs/locutus/commit/0eb16d8541838e80f3c2340a9ef93ded7c97290f | 0eb16d8541838e80f3c2340a9ef93ded7c97290f | SINGLE | ['0eb16d8541838e80f3c2340a9ef93ded7c97290f'] | {'3f14dc5d142f5dcbdf36b4271c21a850a4a259da'} | 0eb16d8541838e80f3c2340a9ef93ded7c97290f | 1 | 08/25/2020, 14:48:03 | fixed prototype pollution | Asjid Kalam | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -74,6 +74,10 @@ module.exports = function parse_str (str, array) { // eslint-disable-line camelc\n key = _fixStr(tmp[0])\n value = (tmp.length < 2) ? '' : _fixStr(tmp[1])\n \n+ if (key.includes('__proto__') || key.includes('cons... | js | CWE-20 | [
"src/php/strings/parse_str.js"
] | src/php/strings/parse_str.js | 1 |
class MatrixDiagPartOp : public OpKernel { upper_diag_index = diag_index.flat<int32>()(1); } } padding_value = context->input(2).flat<T>()(0); } const TensorShape& input_shape = input.shape(); | class MatrixDiagPartOp : public OpKernel { upper_diag_index = diag_index.flat<int32>()(1); } } const Tensor& padding_in = context->input(2); OP_REQUIRES(context, padding_in.NumElements() == 1, errors::InvalidArgument("Padding must be scalar.")); padding_value... | GHSA-fcwc-p4fc-c5cc | {'CWE-476'} | 7.7 | {'https://github.com/tensorflow/tensorflow/commit/482da92095c4d48f8784b1f00dda4f81c28d2988'} | osv | Null pointer dereference in `MatrixDiagPartOp` ### Impact
If a user does not provide a valid padding value to `tf.raw_ops.MatrixDiagPartOp`, then the code triggers a null pointer dereference (if input is empty) or produces invalid behavior, ignoring all values after the first:
```python
import tensorflow as tf
tf.raw... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/482da92095c4d48f8784b1f00dda4f81c28d2988 | 482da92095c4d48f8784b1f00dda4f81c28d2988 | SINGLE | ['482da92095c4d48f8784b1f00dda4f81c28d2988'] | {'3b4351cc2d8ebf31d28dd78fb2730069d6716ad4'} | 482da92095c4d48f8784b1f00dda4f81c28d2988 | 1 | 08/02/2021, 22:07:31 | Ensure non-empty padding_value input to tf.raw_ops.MatrixDiagPartV2, if a padding_value is input
PiperOrigin-RevId: 388314614
Change-Id: If0b51ad58d5d8543a6be6ce8f42ae4755c80d55f | Laura Pak | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -89,7 +89,10 @@ class MatrixDiagPartOp : public OpKernel {\n upper_diag_index = diag_index.flat<int32>()(1);\n }\n }\n- padding_value = context->input(2).flat<T>()(0);\n+ const Tensor& padding_in = context... | cc | CWE-476 | [
"tensorflow/core/kernels/linalg/matrix_diag_op.cc"
] | tensorflow/core/kernels/linalg/matrix_diag_op.cc | 1 |
import java.net.URISyntaxException; import java.nio.charset.Charset; import java.nio.file.Files; import java.text.MessageFormat; import java.util.ArrayList; import java.util.Arrays; public void addNote(String note, String namespace ) throws GitException, Interru createNote(note,namespace,"add"); } pri... | import java.net.URISyntaxException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.attribute.FileAttribute; import java.nio.file.attribute.PosixFilePermission; import java.nio.file.attribute.PosixFilePermissions; import java.text... | GHSA-fcxw-hhxq-48wx | {'CWE-200'} | 3.3 | {'https://github.com/jenkinsci/git-client-plugin/commit/75ea3fe05650fc6ca09046a72493e2b3f066fb98'} | osv | Insecure temporary file usage in Jenkins Git Client Plugin Jenkins Git Client Plugin 2.4.2 and earlier creates temporary file with insecure permissions resulting in information disclosure | 2022-05-17 | 1 | https://github.com/jenkinsci/git-client-plugin | https://github.com/jenkinsci/git-client-plugin/commit/75ea3fe05650fc6ca09046a72493e2b3f066fb98 | 75ea3fe05650fc6ca09046a72493e2b3f066fb98 | SINGLE | ['75ea3fe05650fc6ca09046a72493e2b3f066fb98'] | {'716e3ff56074c018c76cb35826269b976540e7e7'} | 75ea3fe05650fc6ca09046a72493e2b3f066fb98 | 1 | 04/13/2017, 04:38:54 | [Fix SECURITY-445] better protect temporary files
Temporary files were previously written to the system temporary directory
with default permissions. A malicious actor could have captured sensitive
information by reading files from the temporary directory. The temporary
files typically are only on the file system fo... | Mark Waite | null | {'additions': 42, 'deletions': 9, 'total': 51} | [
{
"additions": 42,
"changes": 51,
"deletions": 9,
"patch": "@@ -42,6 +42,11 @@\n import java.net.URISyntaxException;\n import java.nio.charset.Charset;\n import java.nio.file.Files;\n+import java.nio.file.Path;\n+import java.nio.file.Paths;\n+import java.nio.file.attribute.FileAttribute;\n+import ja... | java | CWE-200 | [
"src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java"
] | src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java | 1 |
func runWeb(c *cli.Context) error { } defer fr.Close() c.Header().Set("Cache-Control", "public,max-age=86400") c.Header().Set("Content-Disposition", fmt.Sprintf(`inline; filename="%s"`, attach.Name)) | func runWeb(c *cli.Context) error { } defer fr.Close() c.Header().Set("Content-Security-Policy", "default-src 'none'; style-src 'unsafe-inline'; sandbox") c.Header().Set("Cache-Control", "public,max-age=86400") c.Header().Set("Content-Disposition", fmt.Sprintf(`inline; filename="%s"`, attach.Name)... | GHSA-ff28-f46g-r9g8 | {'CWE-79'} | 5.4 | {'https://github.com/gogs/gogs/commit/bc77440b301ac8780698be91dff1ac33b7cee850'} | osv | Cross-site Scripting in Gogs ### Impact
The malicious user is able to upload a crafted SVG file as the issue attachment to archive XSS. All installations [allow uploading SVG (`text/xml`) files as issue attachments (non-default)](https://github.com/gogs/gogs/blob/e51e01683408e10b3dcd2ace65e259ca7f0fd61b/conf/app.ini#L... | 2022-05-24 | 1 | https://github.com/gogs/gogs | https://github.com/gogs/gogs/commit/bc77440b301ac8780698be91dff1ac33b7cee850 | bc77440b301ac8780698be91dff1ac33b7cee850 | SINGLE | ['bc77440b301ac8780698be91dff1ac33b7cee850'] | {'2a8f561c6413ed7683a3844a8ae6b68d30c0dd08'} | bc77440b301ac8780698be91dff1ac33b7cee850 | 1 | 05/03/2022, 09:51:28 | attachment: set CSP header in the serving endpoint (#6926) | Joe Chen | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -314,6 +314,7 @@ func runWeb(c *cli.Context) error {\n \t\t\t\t}\n \t\t\t\tdefer fr.Close()\n \n+\t\t\t\tc.Header().Set(\"Content-Security-Policy\", \"default-src 'none'; style-src 'unsafe-inline'; sandbox\")\n \t\t\t\tc.Header().Set(\"Cac... | go | CWE-79 | [
"internal/cmd/web.go"
] | internal/cmd/web.go | 1 |
def delete_pool(name): @api_experimental.route('/lineage/<string:dag_id>/<string:execution_date>', methods=['GET']) def get_lineage(dag_id: str, execution_date: str): """Get Lineage details for a DagRun""" # Convert string datetime into actual datetime | def delete_pool(name): @api_experimental.route('/lineage/<string:dag_id>/<string:execution_date>', methods=['GET']) @requires_authentication def get_lineage(dag_id: str, execution_date: str): """Get Lineage details for a DagRun""" # Convert string datetime into actual datetime | GHSA-fh37-cx83-q542 | {'CWE-306', 'CWE-269', 'CWE-287'} | 5.3 | {'https://github.com/apache/airflow/commit/21cedff205e7d62675949fda2aa4616d77232b76'} | osv | Improper Authentication in Apache Airflow The lineage endpoint of the deprecated Experimental API was not protected by authentication in Airflow 2.0.0. This allowed unauthenticated users to hit that endpoint. This is low-severity issue as the attacker needs to be aware of certain parameters to pass to that endpoint and... | 2021-06-18 | 1 | https://github.com/apache/airflow | https://github.com/apache/airflow/commit/21cedff205e7d62675949fda2aa4616d77232b76 | 21cedff205e7d62675949fda2aa4616d77232b76 | SINGLE | ['21cedff205e7d62675949fda2aa4616d77232b76'] | {'4b1a6f78d132e42f1c946f53eca89789d21bdc1d'} | 21cedff205e7d62675949fda2aa4616d77232b76 | 1 | 01/27/2021, 21:47:45 | Add authentication to lineage endpoint for experimental API (#13870)
(cherry picked from commit 24a54242d56058846c7978130b3f37ca045d5142) | Ian Carroll | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -389,6 +389,7 @@ def delete_pool(name):\n \n \n @api_experimental.route('/lineage/<string:dag_id>/<string:execution_date>', methods=['GET'])\n+@requires_authentication\n def get_lineage(dag_id: str, execution_date: str):\n \"\"\"Get Li... | py | CWE-287 | [
"airflow/www/api/experimental/endpoints.py"
] | airflow/www/api/experimental/endpoints.py | 1 |
function sanitizeShellString(str) { result = result.replace(/\$/g, ""); result = result.replace(/#/g, ""); result = result.replace(/\\/g, ""); return result } | function sanitizeShellString(str) { result = result.replace(/\$/g, ""); result = result.replace(/#/g, ""); result = result.replace(/\\/g, ""); result = result.replace(/\t/g, ""); result = result.replace(/\n/g, ""); result = result.replace(/\"/g, ""); return result } | GHSA-fj59-f6c3-3vw4 | {'CWE-78'} | 5.9 | {'https://github.com/sebhildebrandt/systeminformation/commit/bad372e654cdd549e7d786acbba0035ded54c607'} | osv | Command Injection in systeminformation ### Impact
command injection vulnerability
### Patches
Problem was fixed with a shell string sanitation fix. Please upgrade to version >= 4.26.2
### Workarounds
If you cannot upgrade, be sure to check or sanitize service parameter strings that are passed to `is.services()`, `is.... | 2020-10-27 | 1 | https://github.com/sebhildebrandt/systeminformation | https://github.com/sebhildebrandt/systeminformation/commit/bad372e654cdd549e7d786acbba0035ded54c607 | bad372e654cdd549e7d786acbba0035ded54c607 | SINGLE | ['bad372e654cdd549e7d786acbba0035ded54c607'] | {'147550532ab11cac4b609844a519a1d945f5c103'} | bad372e654cdd549e7d786acbba0035ded54c607 | 1 | 05/19/2020, 15:02:51 | improved shell sanitation | Sebastian Hildebrandt | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -503,6 +503,9 @@ function sanitizeShellString(str) {\n result = result.replace(/\\$/g, \"\");\n result = result.replace(/#/g, \"\");\n result = result.replace(/\\\\/g, \"\");\n+ result = result.replace(/\\t/g, \"\");\n+ result = re... | js | CWE-78 | [
"lib/util.js"
] | lib/util.js | 1 |
public void run() { } } }); } } | public void run() { } } }); } else { bufferedBinaryMessage.getData().free(); } } | GHSA-fj7c-vg2v-ccrm | {'CWE-400'} | 0 | {'https://github.com/undertow-io/undertow/commit/c7e84a0b7efced38506d7d1dfea5902366973877'} | osv | Undertow vulnerable to memory exhaustion due to buffer leak Buffer leak on incoming WebSocket PONG message(s) in Undertow before 2.0.40 and 2.2.10 can lead to memory exhaustion and allow a denial of service. | 2022-07-15 | 1 | https://github.com/undertow-io/undertow | https://github.com/undertow-io/undertow/commit/c7e84a0b7efced38506d7d1dfea5902366973877 | c7e84a0b7efced38506d7d1dfea5902366973877 | SINGLE | ['c7e84a0b7efced38506d7d1dfea5902366973877'] | {'87f31ddaac835e3b41db339c1841760a1bac004f'} | c7e84a0b7efced38506d7d1dfea5902366973877 | 1 | 07/30/2021, 21:26:57 | [UNDERTOW-1935] - buffer leak on incoming websocket PONG message | Andrey Marinchuk | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -152,6 +152,8 @@ public void run() {\n }\n }\n });\n+ } else {\n+ bufferedBinaryMessage.getData().free();\n }\n }",
"path": "websockets-jsr/src/main/java/io/... | java | CWE-400 | [
"websockets-jsr/src/main/java/io/undertow/websockets/jsr/FrameHandler.java"
] | websockets-jsr/src/main/java/io/undertow/websockets/jsr/FrameHandler.java | 1 |
$.widget( "mobile.pagecontainer", { return $.proxy( function( html, textStatus, xhr ) { // Pre-parse html to check for a data-url, use it as the new fileUrl, base path, etc var content, | $.widget( "mobile.pagecontainer", { return $.proxy( function( html, textStatus, xhr ) { // Check that Content-Type is "text/html" (https://github.com/jquery/jquery-mobile/issues/8640) if ( !/^text\/html\b/.test( xhr.getResponseHeader('Content-Type') ) ) { // Display error message for unsupported content ... | GHSA-fj93-7wm4-8x2g | {'CWE-79'} | 0 | {'https://github.com/jquery/jquery-mobile/commit/b0d9cc758a48f13321750d7409fb7655dcdf2b50'} | osv | Cross-Site Scripting in jquery-mobile All version of `jquery-mobile` are vulnerable to Cross-Site Scripting. The package checks for content in `location.hash` and if a URL is found it does an XmlHttpRequest (XHR) to the URL and renders the response with `innerHTML`. It fails to validate the `Content-Type` of the respon... | 2020-09-02 | 1 | https://github.com/jquery/jquery-mobile | https://github.com/jquery/jquery-mobile/commit/b0d9cc758a48f13321750d7409fb7655dcdf2b50 | b0d9cc758a48f13321750d7409fb7655dcdf2b50 | SINGLE | ['b0d9cc758a48f13321750d7409fb7655dcdf2b50'] | {'1f0cec9bcb9d75998e733d580d6f1144c963326e'} | b0d9cc758a48f13321750d7409fb7655dcdf2b50 | 1 | 06/13/2019, 17:42:26 | Check Content-Type header before parsing AJAX response as HTML (#8649)
Fix for issue #8640 (possible XSS vulnerability) | Denis Ryabov | null | {'additions': 9, 'deletions': 0, 'total': 9} | [
{
"additions": 9,
"changes": 9,
"deletions": 0,
"patch": "@@ -564,6 +564,15 @@ $.widget( \"mobile.pagecontainer\", {\n \n \t\treturn $.proxy( function( html, textStatus, xhr ) {\n \n+\t\t\t// Check that Content-Type is \"text/html\" (https://github.com/jquery/jquery-mobile/issues/8640)\n+\t\t\tif ( ... | js | CWE-79 | [
"js/widgets/pagecontainer.js"
] | js/widgets/pagecontainer.js | 1 |
bool IsBlacklistedArg(const base::CommandLine::CharType* arg) { if (prefix_length > 0) { a += prefix_length; std::string switch_name(a, strcspn(a, "=")); auto* iter = std::lower_bound(std::begin(kBlacklist), std::end(kBlacklist), switch_name); if (iter != std::end(k... | bool IsBlacklistedArg(const base::CommandLine::CharType* arg) { if (prefix_length > 0) { a += prefix_length; std::string switch_name = base::ToLowerASCII(base::StringPiece(a, strcspn(a, "="))); auto* iter = std::lower_bound(std::begin(kBlacklist), std::end(kBlacklist), ... | GHSA-fjqr-fx3f-g4rv | {'CWE-78'} | 8.8 | {'https://github.com/electron/electron/commit/ce361a12e355f9e1e99c989f1ea056c9e502dbe7'} | osv | Electron protocol handler browser vulnerable to Command Injection Github Electron version Electron 1.8.2-beta.4 and earlier contains a Command Injection vulnerability in Protocol Handler that can result in command execute. This attack appear to be exploitable via the victim opening an electron protocol handler in their... | 2018-03-26 | 1 | https://github.com/electron/electron | https://github.com/electron/electron/commit/ce361a12e355f9e1e99c989f1ea056c9e502dbe7 | ce361a12e355f9e1e99c989f1ea056c9e502dbe7 | SINGLE | ['ce361a12e355f9e1e99c989f1ea056c9e502dbe7'] | {'278c58055ed36f6f22cea05a9cd85a5ab4fb3010'} | ce361a12e355f9e1e99c989f1ea056c9e502dbe7 | 1 | 02/01/2018, 00:35:09 | Use case-insensitive switch comparisons | Samuel Attard | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -1390,7 +1390,8 @@ bool IsBlacklistedArg(const base::CommandLine::CharType* arg) {\n \n if (prefix_length > 0) {\n a += prefix_length;\n- std::string switch_name(a, strcspn(a, \"=\"));\n+ std::string switch_name =\n+ bas... | cc | CWE-78 | [
"atom/app/command_line_args.cc"
] | atom/app/command_line_args.cc | 1 |
static FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_string ( struct DecoderState *ds escStart = (JSUINT32 *)ds->dec->realloc(ds->escStart, newSize * sizeof(JSUINT32)); if (!escStart) { ds->dec->free(ds->escStart); return SetError(ds, -1, "Could not reserve memory block"); } ds... | static FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_string ( struct DecoderState *ds escStart = (JSUINT32 *)ds->dec->realloc(ds->escStart, newSize * sizeof(JSUINT32)); if (!escStart) { // Don't free ds->escStart here; it gets handled in JSON_DecodeObject. return SetError(ds, -1, "Could no... | GHSA-fm67-cv37-96ff | {'CWE-415'} | 5.9 | {'https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb48671104b15b'} | osv | Potential double free of buffer during string decoding ### Impact
_What kind of vulnerability is it? Who is impacted?_
When an error occurs while reallocating the buffer for string decoding, the buffer gets freed twice.
Due to how UltraJSON uses the internal decoder, this double free is impossible to trigger from Pyt... | 2022-07-05 | 1 | https://github.com/ultrajson/ultrajson | https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb48671104b15b | 9c20de0f77b391093967e25d01fb48671104b15b | SINGLE | ['9c20de0f77b391093967e25d01fb48671104b15b'] | {'b21da40ead640b6153783dad506e68b4024056ef', '67ec07183342589d602e0fcf7bb1ff3e19272687'} | 9c20de0f77b391093967e25d01fb48671104b15b | 1 | 07/02/2022, 05:11:59 | Merge pull request from GHSA-fm67-cv37-96ff
Fix double free on string decoding if realloc fails | Hugo van Kemenade | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -384,7 +384,7 @@ static FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_string ( struct DecoderState *ds\n escStart = (JSUINT32 *)ds->dec->realloc(ds->escStart, newSize * sizeof(JSUINT32));\n if (!escStart)\n {\n- ds->dec... | c | CWE-415 | [
"lib/ultrajsondec.c"
] | lib/ultrajsondec.c | 1 |
public function getFile(): bool $allowedFolders = ['node_modules', 'vendor', 'Dinamic', 'Core', 'Plugins', 'MyFiles/Public']; foreach ($allowedFolders as $folder) { if ('/' . $folder === substr($uri, 0, 1 + strlen($folder))) { header('Content-Type: ' . $this->getMime($filePa... | public function getFile(): bool $allowedFolders = ['node_modules', 'vendor', 'Dinamic', 'Core', 'Plugins', 'MyFiles/Public']; foreach ($allowedFolders as $folder) { if ('/' . $folder === substr($uri, 0, 1 + strlen($folder))) { $this->download($filePath); retu... | GHSA-fp76-f299-v3hj | {'CWE-79'} | 5.4 | {'https://github.com/neorazorx/facturascripts/commit/1d1edb40b40016d7fd2893b410b98569d7facca1'} | osv | Cross-site Scripting in FacturaScripts Cross-site Scripting (XSS) - Stored in GitHub repository neorazorx/facturascripts prior to 2022.06. | 2022-06-14 | 1 | https://github.com/neorazorx/facturascripts | https://github.com/neorazorx/facturascripts/commit/1d1edb40b40016d7fd2893b410b98569d7facca1 | 1d1edb40b40016d7fd2893b410b98569d7facca1 | SINGLE | ['1d1edb40b40016d7fd2893b410b98569d7facca1'] | {'73a6595ca85984d65f656c6356fabb23d1936c54'} | 1d1edb40b40016d7fd2893b410b98569d7facca1 | 1 | 04/28/2022, 09:55:32 | Force to download SVG files to prevent security problems.
------
Forzamos a descargar los archivos SVG para evitar problemas de seguridad. | Carlos Garcia Gomez | null | {'additions': 19, 'deletions': 10, 'total': 29} | [
{
"additions": 19,
"changes": 29,
"deletions": 10,
"patch": "@@ -127,8 +127,7 @@ public function getFile(): bool\n $allowedFolders = ['node_modules', 'vendor', 'Dinamic', 'Core', 'Plugins', 'MyFiles/Public'];\n foreach ($allowedFolders as $folder) {\n if ('/' . $folder ==... | php | CWE-79 | [
"Core/App/AppRouter.php"
] | Core/App/AppRouter.php | 1 |
Status BuildXlaCompilationCache(DeviceBase* device, FunctionLibraryRuntime* flr, client_options.set_intra_op_parallelism_threads( device->tensorflow_cpu_worker_threads()->num_threads); string allowed_gpus = flr->config_proto()->gpu_options().visible_device_list(); TF_ASSIGN_OR_RETURN(absl::optional<... | Status BuildXlaCompilationCache(DeviceBase* device, FunctionLibraryRuntime* flr, client_options.set_intra_op_parallelism_threads( device->tensorflow_cpu_worker_threads()->num_threads); if (flr->config_proto()) { string allowed_gpus = flr->config_proto()->gpu_options().visible_device_list(); ... | GHSA-fpcp-9h7m-ffpx | {'CWE-476'} | 5.3 | {'https://github.com/tensorflow/tensorflow/commit/e21af685e1828f7ca65038307df5cc06de4479e8'} | osv | Null pointer dereference in TensorFlow ### Impact
When [building an XLA compilation cache](https://github.com/tensorflow/tensorflow/blob/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/compiler/jit/xla_platform_info.cc#L43-L104), if default settings are used, TensorFlow triggers a null pointer dereference:
```cc ... | 2022-02-09 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/e21af685e1828f7ca65038307df5cc06de4479e8 | e21af685e1828f7ca65038307df5cc06de4479e8 | SINGLE | ['e21af685e1828f7ca65038307df5cc06de4479e8'] | {'30f8e5c460629a9f8dbb04dc562c7b579c07f11b'} | e21af685e1828f7ca65038307df5cc06de4479e8 | 1 | 01/08/2022, 00:20:27 | Fix Null-pointer dereference in BuildXlaCompilationCache
If ConfigProto is not used, then use the default settings which is to allow all devices.
PiperOrigin-RevId: 420391800
Change-Id: I88161ad7042990aef678e77b597a2fb2c8f815be | Smit Hinsu | null | {'additions': 7, 'deletions': 5, 'total': 12} | [
{
"additions": 7,
"changes": 12,
"deletions": 5,
"patch": "@@ -82,11 +82,13 @@ Status BuildXlaCompilationCache(DeviceBase* device, FunctionLibraryRuntime* flr,\n client_options.set_intra_op_parallelism_threads(\n device->tensorflow_cpu_worker_threads()->num_threads);\n \n- string allowed_gp... | cc | CWE-476 | [
"tensorflow/compiler/jit/xla_platform_info.cc"
] | tensorflow/compiler/jit/xla_platform_info.cc | 1 |
limitations under the License. #include <cstdint> #include <memory> #define EIGEN_USE_THREADS #include "absl/strings/escaping.h" class DecodeImageV2Op : public OpKernel { context, png::CommonInitDecode(input, channels_, channel_bits, &decode), errors::InvalidArgument("Invalid PNG. Failed to initializ... | limitations under the License. #include <cstdint> #include <memory> #include "tensorflow/core/lib/gtl/cleanup.h" #define EIGEN_USE_THREADS #include "absl/strings/escaping.h" class DecodeImageV2Op : public OpKernel { context, png::CommonInitDecode(input, channels_, channel_bits, &decode), errors::Inv... | GHSA-fq6p-6334-8gr4 | {'CWE-401'} | 4.3 | {'https://github.com/tensorflow/tensorflow/commit/ab51e5b813573dc9f51efa335aebcf2994125ee9'} | osv | Memory leak in decoding PNG images ### Impact
When [decoding PNG images](https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/kernels/image/decode_image_op.cc#L322-L416) TensorFlow can produce a memory leak if the image is invalid.
After calling `png::CommonInitDecode(.... | 2022-02-09 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/ab51e5b813573dc9f51efa335aebcf2994125ee9 | ab51e5b813573dc9f51efa335aebcf2994125ee9 | SINGLE | ['ab51e5b813573dc9f51efa335aebcf2994125ee9'] | {'fb5ce99505358985ace9e811fd25a57047471d6f'} | ab51e5b813573dc9f51efa335aebcf2994125ee9 | 1 | 11/12/2021, 03:24:32 | Prevent memory leak in decoding PNG images.
PiperOrigin-RevId: 409300653
Change-Id: I6182124c545989cef80cefd439b659095920763b | Mihai Maruseac | null | {'additions': 12, 'deletions': 0, 'total': 12} | [
{
"additions": 12,
"changes": 12,
"deletions": 0,
"patch": "@@ -18,6 +18,8 @@ limitations under the License.\n #include <cstdint>\n #include <memory>\n \n+#include \"tensorflow/core/lib/gtl/cleanup.h\"\n+\n #define EIGEN_USE_THREADS\n \n #include \"absl/strings/escaping.h\"\n@@ -326,6 +328,16 @@ cla... | cc | CWE-401 | [
"tensorflow/core/kernels/image/decode_image_op.cc"
] | tensorflow/core/kernels/image/decode_image_op.cc | 1 |
class Color { let color; const name = m[ 1 ]; const components = m[ 2 ].replace(/^\s*/, ''); switch ( name ) { case 'rgb': case 'rgba': if ( color = /^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec( components ) ) { // rgb(255,0,0) rgba(255,0,0,0.5) this.r = Ma... | class Color { let color; const name = m[ 1 ]; const components = m[ 2 ]; switch ( name ) { case 'rgb': case 'rgba': if ( color = /^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec( components ) ) { // rgb(255,0,0) rgba(255,0,0,0.5) this.r = Math.min( 255, pars... | GHSA-fq6p-x6j3-cmmq | {'CWE-400'} | 0 | {'https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e'} | osv | Denial of service in three This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors. PoC: var three = require('three') function build_blank (n) { var ret = "rgb(" for (var i = 0; i < n; i++) { ret += " " } return ret + ""; } var Color = three.Color var time = Date.now(); new Color(... | 2021-03-01 | 1 | https://github.com/mrdoob/three.js | https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e | 4a582355216b620176a291ff319d740e619d583e | SINGLE | ['4a582355216b620176a291ff319d740e619d583e'] | {'0f5de4f5da1014f81c00d309f93b1a1e709341e4'} | 4a582355216b620176a291ff319d740e619d583e | 1 | 01/25/2021, 11:45:42 | Fix ReDoS | Yeting Li | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -169,14 +169,14 @@ class Color {\n \n \t\t\tlet color;\n \t\t\tconst name = m[ 1 ];\n-\t\t\tconst components = m[ 2 ].replace(/^\\s*/, '');\n+\t\t\tconst components = m[ 2 ];\n \n \t\t\tswitch ( name ) {\n \n \t\t\t\tcase 'rgb':\n \t\t\t\t... | js | CWE-400 | [
"src/math/Color.js"
] | src/math/Color.js | 1 |
pub struct Singleton<T: 'static> { // The Singleton need to implement Send & Sync to ensure cross core compile check mechanics // this is safe as the inner RWLock ensures cross core safety unsafe impl<T> Sync for Singleton<T> {} unsafe impl<T> Send for Singleton<T> {} impl<T: 'static> Singleton<T> { /// Create a... | pub struct Singleton<T: 'static> { // The Singleton need to implement Send & Sync to ensure cross core compile check mechanics // this is safe as the inner RWLock ensures cross core safety // but we need to be conditional on the inner type to prevent interior mutable types beeing used // inside a singleton unsafe imp... | GHSA-fqq2-xp7m-xvm8 | {'CWE-362', 'CWE-119'} | 8.1 | {'https://github.com/RusPiRo/ruspiro-singleton/commit/b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e'} | osv | Data race in ruspiro-singleton `Singleton<T>` is meant to be a static object that can be initialized lazily. In
order to satisfy the requirement that `static` items must implement `Sync`,
`Singleton` implemented both `Sync` and `Send` unconditionally.
This allows for a bug where non-`Sync` types such as `Cell` can be ... | 2021-08-25 | 1 | https://github.com/RusPiRo/ruspiro-singleton | https://github.com/RusPiRo/ruspiro-singleton/commit/b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e | b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e | SINGLE | ['b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e'] | {'0565f8ef459bd336eda8a6a63d1d50cdb581c2b3'} | b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e | 1 | 11/16/2020, 20:32:29 | fix soundness | 2ndTaleStudio | null | {'additions': 4, 'deletions': 2, 'total': 6} | [
{
"additions": 4,
"changes": 6,
"deletions": 2,
"patch": "@@ -81,8 +81,10 @@ pub struct Singleton<T: 'static> {\n \n // The Singleton need to implement Send & Sync to ensure cross core compile check mechanics\n // this is safe as the inner RWLock ensures cross core safety\n-unsafe impl<T> Sync for S... | rs | CWE-362 | [
"src/lib.rs"
] | src/lib.rs | 1 |
pub struct Singleton<T: 'static> { // The Singleton need to implement Send & Sync to ensure cross core compile check mechanics // this is safe as the inner RWLock ensures cross core safety unsafe impl<T> Sync for Singleton<T> {} unsafe impl<T> Send for Singleton<T> {} impl<T: 'static> Singleton<T> { /// Create a... | pub struct Singleton<T: 'static> { // The Singleton need to implement Send & Sync to ensure cross core compile check mechanics // this is safe as the inner RWLock ensures cross core safety // but we need to be conditional on the inner type to prevent interior mutable types beeing used // inside a singleton unsafe imp... | GHSA-fqq2-xp7m-xvm8 | {'CWE-362', 'CWE-119'} | 8.1 | {'https://github.com/RusPiRo/ruspiro-singleton/commit/b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e'} | osv | Data race in ruspiro-singleton `Singleton<T>` is meant to be a static object that can be initialized lazily. In
order to satisfy the requirement that `static` items must implement `Sync`,
`Singleton` implemented both `Sync` and `Send` unconditionally.
This allows for a bug where non-`Sync` types such as `Cell` can be ... | 2021-08-25 | 1 | https://github.com/RusPiRo/ruspiro-singleton | https://github.com/RusPiRo/ruspiro-singleton/commit/b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e | b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e | SINGLE | ['b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e'] | {'0565f8ef459bd336eda8a6a63d1d50cdb581c2b3'} | b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e | 1 | 11/16/2020, 20:32:29 | fix soundness | 2ndTaleStudio | null | {'additions': 4, 'deletions': 2, 'total': 6} | [
{
"additions": 4,
"changes": 6,
"deletions": 2,
"patch": "@@ -81,8 +81,10 @@ pub struct Singleton<T: 'static> {\n \n // The Singleton need to implement Send & Sync to ensure cross core compile check mechanics\n // this is safe as the inner RWLock ensures cross core safety\n-unsafe impl<T> Sync for S... | rs | CWE-119 | [
"src/lib.rs"
] | src/lib.rs | 1 |
class GetSessionTensorOp : public OpKernel { void Compute(OpKernelContext* ctx) override { const Tensor& handle = ctx->input(0); const string& name = handle.scalar<tstring>()(); Tensor val; auto session_state = ctx->session_state(); | class GetSessionTensorOp : public OpKernel { void Compute(OpKernelContext* ctx) override { const Tensor& handle = ctx->input(0); OP_REQUIRES(ctx, TensorShapeUtils::IsScalar(handle.shape()), errors::InvalidArgument("handle must be scalar")); const string& name = handle.scalar<tstring>()()... | GHSA-fv25-wrff-wf86 | {'CWE-20'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/48305e8ffe5246d67570b64096a96f8e315a7281'} | osv | Missing validation causes denial of service via `GetSessionTensor` ### Impact
The implementation of [`tf.raw_ops.GetSessionTensor`](https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/core/kernels/session_ops.cc#L94-L112) does not fully validate the input arguments. This re... | 2022-05-24 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/48305e8ffe5246d67570b64096a96f8e315a7281 | 48305e8ffe5246d67570b64096a96f8e315a7281 | SINGLE | ['48305e8ffe5246d67570b64096a96f8e315a7281'] | {'13d38a07ce9143e044aa737cfd7bb759d0e9b400'} | 48305e8ffe5246d67570b64096a96f8e315a7281 | 1 | 04/28/2022, 19:25:03 | Fix tf.raw_ops.GetSessionTensor vulnerability with invalid handle.
Check that input is actually a scalar before treating it as such.
PiperOrigin-RevId: 445218701 | Alan Liu | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -98,6 +98,8 @@ class GetSessionTensorOp : public OpKernel {\n \n void Compute(OpKernelContext* ctx) override {\n const Tensor& handle = ctx->input(0);\n+ OP_REQUIRES(ctx, TensorShapeUtils::IsScalar(handle.shape()),\n+ ... | cc | CWE-20 | [
"tensorflow/core/kernels/session_ops.cc"
] | tensorflow/core/kernels/session_ops.cc | 1 |
class ReverseOp : public OpKernel { void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const Tensor& dims = context->input(1); if (TensorShapeUtils::IsScalar(input.shape())) { | class ReverseOp : public OpKernel { void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); // If input is provided, check to make sure the first dimension is valid. if (input.dims() > 0) { OP_REQUIRES( context, input.dim_size(0) != 0, errors:... | GHSA-fxqh-cfjm-fp93 | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/4071d8e2f6c45c1955a811fee757ca2adbe462c1'} | osv | Division by 0 in `Reverse` ### Impact
An attacker can cause a denial of service via a FPE runtime error in `tf.raw_ops.Reverse`:
```python
import tensorflow as tf
tensor_input = tf.constant([], shape=[0, 1, 1], dtype=tf.int32)
dims = tf.constant([False, True, False], shape=[3], dtype=tf.bool)
tf.raw_ops.Reverse(tens... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/4071d8e2f6c45c1955a811fee757ca2adbe462c1 | 4071d8e2f6c45c1955a811fee757ca2adbe462c1 | SINGLE | ['4071d8e2f6c45c1955a811fee757ca2adbe462c1'] | {'36229ea9e9451dac14a8b1f4711c435a1d84a594'} | 4071d8e2f6c45c1955a811fee757ca2adbe462c1 | 1 | 04/29/2021, 19:24:18 | Fix FPE issue with `tf.raw_ops.Reverse`.
PiperOrigin-RevId: 371176973
Change-Id: Ic6d483bfc95313ec2299c2d1c956cfe96c96626c | Amit Patankar | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -155,6 +155,12 @@ class ReverseOp : public OpKernel {\n \n void Compute(OpKernelContext* context) override {\n const Tensor& input = context->input(0);\n+ // If input is provided, check to make sure the first dimension is valid.\n... | cc | CWE-369 | [
"tensorflow/core/kernels/reverse_op.cc"
] | tensorflow/core/kernels/reverse_op.cc | 1 |
class QuantizeV2Op : public OpKernel { int num_slices = 1; if (axis_ > -1) { num_slices = input.dim_size(axis_); } const TensorShape& minmax_shape = ctx->input(1).shape(); | class QuantizeV2Op : public OpKernel { int num_slices = 1; if (axis_ > -1) { OP_REQUIRES( ctx, input.dims() > axis_, errors::InvalidArgument( "Axis is on a zero-based index, so its value must always be less " "than number of input's dims, but given axis va... | GHSA-g25h-jr74-qp5j | {'CWE-20'} | 7.8 | {'https://github.com/tensorflow/tensorflow/commit/6da6620efad397c85493b8f8667b821403516708'} | osv | Incomplete validation in `QuantizeV2` ### Impact ... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/6da6620efad397c85493b8f8667b821403516708 | 6da6620efad397c85493b8f8667b821403516708 | SINGLE | ['6da6620efad397c85493b8f8667b821403516708'] | {'eb921122119a6b6e470ee98b89e65d721663179d'} | 6da6620efad397c85493b8f8667b821403516708 | 1 | 07/28/2021, 00:19:57 | Secure tf.raw_ops.QuantizeV2
Validate size and shape of min_range and max_range
Ensure axis is within input dims limits
PiperOrigin-RevId: 387232799
Change-Id: I36975281f7b5758e9e31a8dcc73fe610ef456318 | Laura Pak | null | {'additions': 43, 'deletions': 0, 'total': 43} | [
{
"additions": 43,
"changes": 43,
"deletions": 0,
"patch": "@@ -113,7 +113,50 @@ class QuantizeV2Op : public OpKernel {\n \n int num_slices = 1;\n if (axis_ > -1) {\n+ OP_REQUIRES(\n+ ctx, input.dims() > axis_,\n+ errors::InvalidArgument(\n+ \"Axis is on a... | cc | CWE-20 | [
"tensorflow/core/kernels/quantize_op.cc"
] | tensorflow/core/kernels/quantize_op.cc | 1 |
static function () { ['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers', 'prefix' => 'subscriptions', 'as' => 'subscriptions.'], static function () { Route::get('', ['uses' => 'Bill\IndexController@index', 'as' => 'index']); Route::get('rescan/{bill}', ['uses' => 'B... | static function () { ['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers', 'prefix' => 'subscriptions', 'as' => 'subscriptions.'], static function () { Route::get('', ['uses' => 'Bill\IndexController@index', 'as' => 'index']); Route::post('rescan/{bill}', ['uses' => '... | GHSA-g6vq-wc8w-4g69 | {'CWE-352'} | 4.3 | {'https://github.com/firefly-iii/firefly-iii/commit/518b4ba5a7a56760902758ae0a2c6a392c2f4d37'} | osv | firefly-iii is vulnerable to Cross-Site Request Forgery (CSRF) firefly-iii is vulnerable to Cross-Site Request Forgery (CSRF). | 2021-12-06 | 1 | https://github.com/firefly-iii/firefly-iii | https://github.com/firefly-iii/firefly-iii/commit/518b4ba5a7a56760902758ae0a2c6a392c2f4d37 | 518b4ba5a7a56760902758ae0a2c6a392c2f4d37 | SINGLE | ['518b4ba5a7a56760902758ae0a2c6a392c2f4d37'] | {'0f9c1b9427b946b5eb580112edfcb3ed6a812970'} | 518b4ba5a7a56760902758ae0a2c6a392c2f4d37 | 1 | 11/24/2021, 18:22:07 | Fix CSRF issues | James Cole | null | {'additions': 6, 'deletions': 5, 'total': 11} | [
{
"additions": 6,
"changes": 11,
"deletions": 5,
"patch": "@@ -213,7 +213,7 @@ static function () {\n ['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\\Http\\Controllers', 'prefix' => 'subscriptions', 'as' => 'subscriptions.'],\n static function () {\n Route::get('', ['u... | php | CWE-352 | [
"routes/web.php"
] | routes/web.php | 1 |
function parsePath(path) { var str = path.replace(/([^\\])\[/g, '$1.['); var parts = str.match(/(\\\.|[^.]+?)+/g); return parts.map(function mapMatches(value) { var regexp = /^\[(\d+)\]$/; var mArr = regexp.exec(value); var parsed = null; | function parsePath(path) { var str = path.replace(/([^\\])\[/g, '$1.['); var parts = str.match(/(\\\.|[^.]+?)+/g); return parts.map(function mapMatches(value) { if (value === "constructor" || value === "__proto__" || value === "prototype") { return {} } var regexp = /^\[(\d+)\]$/; var mArr ... | GHSA-g6ww-v8xp-vmwg | {'CWE-1321', 'CWE-20'} | 7.2 | {'https://github.com/chaijs/pathval/pull/58/commits/21a9046cfa0c2697cb41990f3b4316db410e6c8a'} | osv | Prototype pollution in pathval A prototype pollution vulnerability affects all versions of package pathval under 1.1.1. | 2022-02-10 | 1 | https://github.com/chaijs/pathval | https://github.com/chaijs/pathval/pull/58/commits/21a9046cfa0c2697cb41990f3b4316db410e6c8a | 21a9046cfa0c2697cb41990f3b4316db410e6c8a | SINGLE | ['21a9046cfa0c2697cb41990f3b4316db410e6c8a'] | {'a1230184a33a18f4eb3a92817e9b7492e8082903'} | 21a9046cfa0c2697cb41990f3b4316db410e6c8a | 1 | 08/25/2020, 12:37:44 | fix: 🐛 fix prototype pollution | Adam Gold | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -76,6 +76,9 @@ function parsePath(path) {\n var str = path.replace(/([^\\\\])\\[/g, '$1.[');\n var parts = str.match(/(\\\\\\.|[^.]+?)+/g);\n return parts.map(function mapMatches(value) {\n+ if (value === \"constructor\" || value ... | js | CWE-20 | [
"index.js"
] | index.js | 1 |
public static function safeCanonicalUrl(): string } catch (InvalidConfigException $e) { Craft::error($e->getMessage(), __METHOD__); } $url = DynamicMetaHelper::sanitizeUrl($url); return UrlHelper::absoluteUrlWithProtocol($url); } /** | public static function safeCanonicalUrl(): string } catch (InvalidConfigException $e) { Craft::error($e->getMessage(), __METHOD__); } return DynamicMetaHelper::sanitizeUrl(UrlHelper::absoluteUrlWithProtocol($url)); } /** | GHSA-g7xr-v82w-qggq | {'CWE-94'} | 9.8 | {'https://github.com/nystudio107/craft-seomatic/commit/3fee7d50147cdf3f999cfc1e04cbc3fb3d9f2f7d'} | osv | Code Injection in SEOmatic In the SEOmatic plugin up to 3.4.11 for Craft CMS 3, it is possible for unauthenticated attackers to perform a Server-Side Template Injection, allowing for remote code execution. | 2022-06-13 | 1 | https://github.com/nystudio107/craft-seomatic | https://github.com/nystudio107/craft-seomatic/commit/3fee7d50147cdf3f999cfc1e04cbc3fb3d9f2f7d | 3fee7d50147cdf3f999cfc1e04cbc3fb3d9f2f7d | SINGLE | ['3fee7d50147cdf3f999cfc1e04cbc3fb3d9f2f7d'] | {'4e46b792ce973ac0c652fb330055f41aca1981c8'} | 3fee7d50147cdf3f999cfc1e04cbc3fb3d9f2f7d | 1 | 09/24/2021, 18:08:04 | Sanitize the canonical URL after the absolute URL has been returned, to mitigate poisoned `X-Forwarded-Host` headers | Andrew Welch | null | {'additions': 1, 'deletions': 2, 'total': 3} | [
{
"additions": 1,
"changes": 3,
"deletions": 2,
"patch": "@@ -148,9 +148,8 @@ public static function safeCanonicalUrl(): string\n } catch (InvalidConfigException $e) {\n Craft::error($e->getMessage(), __METHOD__);\n }\n- $url = DynamicMetaHelper::sanitizeUrl($url);... | php | CWE-94 | [
"src/services/Helper.php"
] | src/services/Helper.php | 1 |
void RestoreTensor(OpKernelContext* context, context, size == 1, errors::InvalidArgument( "Input 0 (file_pattern) must be a string scalar; got a tensor of ", size, "elements")); } const string& file_pattern = file_pattern_t.flat<tstring>()(0); const Tensor& tensor_name_t ... | void RestoreTensor(OpKernelContext* context, context, size == 1, errors::InvalidArgument( "Input 0 (file_pattern) must be a string scalar; got a tensor of ", size, " elements")); } const string& file_pattern = file_pattern_t.flat<tstring>()(0); const Tensor& tensor_name_t... | GHSA-gh6x-4whr-2qv4 | {'CWE-476', 'CWE-125'} | 8.4 | {'https://github.com/tensorflow/tensorflow/commit/9e82dce6e6bd1f36a57e08fa85af213e2b2f2622'} | osv | Null pointer dereference and heap OOB read in operations restoring tensors ### Impact
When restoring tensors via raw APIs, if the tensor name is not provided, TensorFlow can be tricked into dereferencing a null pointer:
```python
import tensorflow as tf
tf.raw_ops.Restore(
file_pattern=['/tmp'],
tensor_name=[],
... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/9e82dce6e6bd1f36a57e08fa85af213e2b2f2622 | 9e82dce6e6bd1f36a57e08fa85af213e2b2f2622 | SINGLE | ['9e82dce6e6bd1f36a57e08fa85af213e2b2f2622'] | {'e86605c0a336c088b638da02135ea6f9f6753618'} | 9e82dce6e6bd1f36a57e08fa85af213e2b2f2622 | 1 | 08/02/2021, 21:21:41 | Fix NPE in restoring code.
PiperOrigin-RevId: 388303253
Change-Id: Ia8c68568cb854bca538909a182b31a618d68ce55 | Mihai Maruseac | null | {'additions': 8, 'deletions': 1, 'total': 9} | [
{
"additions": 8,
"changes": 9,
"deletions": 1,
"patch": "@@ -151,11 +151,18 @@ void RestoreTensor(OpKernelContext* context,\n context, size == 1,\n errors::InvalidArgument(\n \"Input 0 (file_pattern) must be a string scalar; got a tensor of \",\n- size, \"elem... | cc | CWE-125 | [
"tensorflow/core/kernels/save_restore_tensor.cc"
] | tensorflow/core/kernels/save_restore_tensor.cc | 1 |
void RestoreTensor(OpKernelContext* context, context, size == 1, errors::InvalidArgument( "Input 0 (file_pattern) must be a string scalar; got a tensor of ", size, "elements")); } const string& file_pattern = file_pattern_t.flat<tstring>()(0); const Tensor& tensor_name_t ... | void RestoreTensor(OpKernelContext* context, context, size == 1, errors::InvalidArgument( "Input 0 (file_pattern) must be a string scalar; got a tensor of ", size, " elements")); } const string& file_pattern = file_pattern_t.flat<tstring>()(0); const Tensor& tensor_name_t... | GHSA-gh6x-4whr-2qv4 | {'CWE-476', 'CWE-125'} | 8.4 | {'https://github.com/tensorflow/tensorflow/commit/9e82dce6e6bd1f36a57e08fa85af213e2b2f2622'} | osv | Null pointer dereference and heap OOB read in operations restoring tensors ### Impact
When restoring tensors via raw APIs, if the tensor name is not provided, TensorFlow can be tricked into dereferencing a null pointer:
```python
import tensorflow as tf
tf.raw_ops.Restore(
file_pattern=['/tmp'],
tensor_name=[],
... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/9e82dce6e6bd1f36a57e08fa85af213e2b2f2622 | 9e82dce6e6bd1f36a57e08fa85af213e2b2f2622 | SINGLE | ['9e82dce6e6bd1f36a57e08fa85af213e2b2f2622'] | {'e86605c0a336c088b638da02135ea6f9f6753618'} | 9e82dce6e6bd1f36a57e08fa85af213e2b2f2622 | 1 | 08/02/2021, 21:21:41 | Fix NPE in restoring code.
PiperOrigin-RevId: 388303253
Change-Id: Ia8c68568cb854bca538909a182b31a618d68ce55 | Mihai Maruseac | null | {'additions': 8, 'deletions': 1, 'total': 9} | [
{
"additions": 8,
"changes": 9,
"deletions": 1,
"patch": "@@ -151,11 +151,18 @@ void RestoreTensor(OpKernelContext* context,\n context, size == 1,\n errors::InvalidArgument(\n \"Input 0 (file_pattern) must be a string scalar; got a tensor of \",\n- size, \"elem... | cc | CWE-476 | [
"tensorflow/core/kernels/save_restore_tensor.cc"
] | tensorflow/core/kernels/save_restore_tensor.cc | 1 |
use App\Http\Resources\User\UserResource; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use MicroweberPackages\App\Http\Middleware\SameSiteRefererMiddleware; class UserLogoutController extends Controller public function index(Request $request) public function submit(Request $request) { ... | use App\Http\Resources\User\UserResource; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\Auth; use MicroweberPackages\App\Http\Middleware\SameSiteRefererMiddleware; class UserLogoutController extends Controller public function index(Request $request) public functio... | GHSA-ghww-cv4v-hmxx | {'CWE-352'} | 4.3 | {'https://github.com/microweber/microweber/commit/756096da1260f29ff6f4532234d93d8e41dd5aa8'} | osv | Cross-Site Request Forgery microweber microweber prior to version 1.2.11 is vulnerable to Cross-Site Request Forgery (CSRF). | 2022-02-18 | 1 | https://github.com/microweber/microweber | https://github.com/microweber/microweber/commit/756096da1260f29ff6f4532234d93d8e41dd5aa8 | 756096da1260f29ff6f4532234d93d8e41dd5aa8 | SINGLE | ['756096da1260f29ff6f4532234d93d8e41dd5aa8'] | {'037744b21342f771f6a3de65ed0be936d47c3737'} | 756096da1260f29ff6f4532234d93d8e41dd5aa8 | 1 | 02/16/2022, 16:19:52 | Update UserLogoutController.php | Bozhidar Slaveykov | null | {'additions': 6, 'deletions': 1, 'total': 7} | [
{
"additions": 6,
"changes": 7,
"deletions": 1,
"patch": "@@ -5,6 +5,7 @@\n use App\\Http\\Resources\\User\\UserResource;\n use Illuminate\\Http\\Request;\n use Illuminate\\Routing\\Controller;\n+use Illuminate\\Support\\Facades\\Auth;\n use MicroweberPackages\\App\\Http\\Middleware\\SameSiteReferer... | php | CWE-352 | [
"src/MicroweberPackages/User/Http/Controllers/UserLogoutController.php"
] | src/MicroweberPackages/User/Http/Controllers/UserLogoutController.php | 1 |
function autoload_class($class) { require_once dirname(__FILE__) . '/../config.php'; require_once dirname(__FILE__) . '/../src/Storage.php'; $GLOBALS['server'] = !empty($_GET['server']) ? $_GET['server'] : ''; $GLOBALS['action'] = !empty($_GET['action']) ? $_GET['action'] : ''; $GLOBALS['state'] = !empty($_GET['state... | function autoload_class($class) { require_once dirname(__FILE__) . '/../config.php'; require_once dirname(__FILE__) . '/../src/Storage.php'; $GLOBALS['server'] = !empty($_GET['server']) ? htmlspecialchars($_GET['server']) : ''; $GLOBALS['action'] = !empty($_GET['action']) ? $_GET['action'] : ''; $GLOBALS['state'] = !... | GHSA-gj85-pvp5-mvf9 | {'CWE-79'} | 6.1 | {'https://github.com/ptrofimov/beanstalk_console/commit/e351c8260ec1d3718d9e475ee57c7e12c47f19da'} | osv | Cross-site Scripting in Beanstalk console Beanstalk console prior to version 1.7.12 is vulnerable to cross-site scripting. | 2022-02-06 | 1 | https://github.com/ptrofimov/beanstalk_console | https://github.com/ptrofimov/beanstalk_console/commit/e351c8260ec1d3718d9e475ee57c7e12c47f19da | e351c8260ec1d3718d9e475ee57c7e12c47f19da | SINGLE | ['e351c8260ec1d3718d9e475ee57c7e12c47f19da'] | {'95d5808836034835fc33500c6a82276277fabdf9'} | e351c8260ec1d3718d9e475ee57c7e12c47f19da | 1 | 02/01/2022, 15:43:02 | Sanitize input | Nav-Prak | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -19,7 +19,7 @@ function autoload_class($class) {\n require_once dirname(__FILE__) . '/../config.php';\r\n require_once dirname(__FILE__) . '/../src/Storage.php';\r\n \r\n-$GLOBALS['server'] = !empty($_GET['server']) ? $_GET['server'] : '';... | php | CWE-79 | [
"lib/include.php"
] | lib/include.php | 1 |
import { valid, compare } from 'semver'; import { exec } from 'child_process'; const lsRemoteTags = (repo: string): Promise<string> => new Promise( (resolve, reject) => { exec(`git ls-remote --tags ${repo}`, (_, stdout, stderr) => { if (stderr) reject(new Error(stderr)); resolve(stdout.toString().trim()); ... | import { valid, compare } from 'semver'; import { spawn } from 'child_process'; const lsRemoteTags = (repoPath: string): Promise<string> => new Promise((resolve, reject) => { let stderr = ''; let stdout = ''; const child = spawn('git', ['ls-remote', '--tags', repoPath]); child.stdout.on('data', (data) => { st... | GHSA-gm9x-q798-hmr4 | {'CWE-78'} | 7.2 | {'https://github.com/sh0ji/git-tags-remote/commit/a20488960cbd2c98455386108253094897ebfc1c'} | osv | Command Injection in git-tags-remote All versions of `git-tags-remote ` are vulnerable to Command Injection. The package fails to sanitize the repository input and passes it directly to an `exec` call on the `get` function . This may allow attackers to execute arbitrary code in the system if the `repo` value passed to ... | 2020-07-29 | 1 | https://github.com/sh0ji/git-tags-remote | https://github.com/sh0ji/git-tags-remote/commit/a20488960cbd2c98455386108253094897ebfc1c | a20488960cbd2c98455386108253094897ebfc1c | SINGLE | ['a20488960cbd2c98455386108253094897ebfc1c'] | {'c43558b77312a13f69ca25ed965cf4792c239458'} | a20488960cbd2c98455386108253094897ebfc1c | 1 | 06/21/2021, 20:02:24 | fix: use spawn for more secure input
resolves #58 | Evan Yamanishi | null | {'additions': 23, 'deletions': 10, 'total': 33} | [
{
"additions": 23,
"changes": 33,
"deletions": 10,
"patch": "@@ -1,17 +1,30 @@\n import { valid, compare } from 'semver';\n-import { exec } from 'child_process';\n+import { spawn } from 'child_process';\n \n-const lsRemoteTags = (repo: string): Promise<string> => new Promise(\n-\t(resolve, reject) =... | ts | CWE-78 | [
"src/index.ts"
] | src/index.ts | 1 |
if (isset($_GET['autosize'])) { $autoSize = $_GET['autosize']; } $autoSize = xss_clean($autoSize); $type = ''; if (isset($_GET['type'])) { $type = $_GET['type']; } $type = xss_clean($type); $mod_id = $mod_orig_id = false; $is_linked_mod = false; if ($mod_id !=... | if (isset($_GET['autosize'])) { $autoSize = $_GET['autosize']; } $autoSize = intval($autoSize); $type = ''; if (isset($_GET['type'])) { $type = $_GET['type']; } $type = xss_clean($type); $other = [ ';', '\'', '//'... | GHSA-gmh3-x5w7-jg5m | {'CWE-79'} | 6.3 | {'https://github.com/microweber/microweber/commit/79c6914bab8c9da07ac950fda17648d08c68b130'} | osv | Microweber before v1.2.20 vulnerable to cross-site scripting Prior to Microweber v1.2.20, due to improper neutralization of input, an attacker can steal tokens to perform cross-site request forgery (CSRF), fetch contents from same-site and redirect a user. | 2022-07-10 | 1 | https://github.com/microweber/microweber | https://github.com/microweber/microweber/commit/79c6914bab8c9da07ac950fda17648d08c68b130 | 79c6914bab8c9da07ac950fda17648d08c68b130 | SINGLE | ['79c6914bab8c9da07ac950fda17648d08c68b130'] | {'d35e691e72d358430abc8e99f5ba9eb374423b9f'} | 79c6914bab8c9da07ac950fda17648d08c68b130 | 1 | 07/08/2022, 17:31:13 | update | Peter Ivanov | null | {'additions': 14, 'deletions': 2, 'total': 16} | [
{
"additions": 14,
"changes": 16,
"deletions": 2,
"patch": "@@ -87,14 +87,24 @@\n if (isset($_GET['autosize'])) {\n $autoSize = $_GET['autosize'];\n }\n- $autoSize = xss_clean($autoSize);\n+ $autoSize = intval($autoSize);\n \n $type = '';\n if (isset($_GET['type'])) {\n... | php | CWE-79 | [
"userfiles/modules/microweber/toolbar/editor_tools/module_settings/index.php"
] | userfiles/modules/microweber/toolbar/editor_tools/module_settings/index.php | 1 |
pub struct ReadTicket<T> { data: Arc<UnsafeCell<T>>, } unsafe impl<T> Send for ReadTicket<T> {} #[cfg(not(feature = "futures"))] impl<T> ReadTicket<T> { pub struct WriteTicket<T> { data: Arc<UnsafeCell<T>>, } unsafe impl<T> Send for WriteTicket<T> {} #[cfg(not(feature = "futures"))] impl<T> WriteTicket<T> ... | pub struct ReadTicket<T> { data: Arc<UnsafeCell<T>>, } unsafe impl<T: Send> Send for ReadTicket<T> {} #[cfg(not(feature = "futures"))] impl<T> ReadTicket<T> { pub struct WriteTicket<T> { data: Arc<UnsafeCell<T>>, } unsafe impl<T: Send> Send for WriteTicket<T> {} #[cfg(not(feature = "futures"))] impl<T> Wri... | GHSA-gq4h-f254-7cw9 | {'CWE-362'} | 8.1 | {'https://github.com/kvark/ticketed_lock/pull/8/commits/a986a9335d591fa5c826157d1674d47aa525357f'} | osv | Data races in ticketed_lock Affected versions of this crate unconditionally implemented `Send` for `ReadTicket<T>` & `WriteTicket<T>`.
This allows to send non-Send `T` to other threads.
This can allows creating data races by cloning types with internal mutability and sending them to other threads (as `T` of `ReadTicke... | 2021-08-25 | 1 | https://github.com/kvark/ticketed_lock | https://github.com/kvark/ticketed_lock/pull/8/commits/a986a9335d591fa5c826157d1674d47aa525357f | a986a9335d591fa5c826157d1674d47aa525357f | SINGLE | ['a986a9335d591fa5c826157d1674d47aa525357f'] | {'6d85af9eb5d8bb7cf142de8e832ce3af7e47e306'} | a986a9335d591fa5c826157d1674d47aa525357f | 1 | 01/24/2021, 04:07:17 | 'T: Send' to prevent misuse | JOE1994 | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -50,7 +50,7 @@ pub struct ReadTicket<T> {\n data: Arc<UnsafeCell<T>>,\n }\n \n-unsafe impl<T> Send for ReadTicket<T> {}\n+unsafe impl<T: Send> Send for ReadTicket<T> {}\n \n #[cfg(not(feature = \"futures\"))]\n impl<T> ReadTicket<T> {\... | rs | CWE-362 | [
"src/lib.rs"
] | src/lib.rs | 1 |
public class MyfacesConfig * Adds a random key to the generated view state session token. */ @JSFWebConfigParam(since="2.1.9, 2.0.15", expectedValues="secureRandom, random", defaultValue="random", group="state") public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN ... | public class MyfacesConfig * Adds a random key to the generated view state session token. */ @JSFWebConfigParam(since="2.1.9, 2.0.15", expectedValues="secureRandom, random", defaultValue="secureRandom", group="state") public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN ... | GHSA-gq67-pp9w-43gp | {'CWE-330', 'CWE-352'} | 0 | {'https://github.com/apache/myfaces/commit/cc6e1cc7b9aa17e52452f7f2657b3af9c421b2b2'} | osv | Cryptographically weak CSRF tokens in Apache MyFaces In the default configuration, Apache MyFaces Core versions 2.2.0 to 2.2.13, 2.3.0 to 2.3.7, 2.3-next-M1 to 2.3-next-M4, and 3.0.0-RC1 use cryptographically weak implicit and explicit cross-site request forgery (CSRF) tokens. Due to that limitation, it is possible (al... | 2021-06-16 | 1 | https://github.com/apache/myfaces | https://github.com/apache/myfaces/commit/cc6e1cc7b9aa17e52452f7f2657b3af9c421b2b2 | cc6e1cc7b9aa17e52452f7f2657b3af9c421b2b2 | SINGLE | ['cc6e1cc7b9aa17e52452f7f2657b3af9c421b2b2'] | {'2683d7ec7008eb2a728423ad6e574fa83137b65c', '413d25bfc0ba3a49a06484e17d603a25ce4af436'} | cc6e1cc7b9aa17e52452f7f2657b3af9c421b2b2 | 1 | 01/13/2021, 19:51:15 | Merge pull request #132 from wtlucy/secureRandom_master
MYFACES-4373: prefer SecureRandom for token generation | Thomas Andraschko | null | {'additions': 7, 'deletions': 7, 'total': 14} | [
{
"additions": 7,
"changes": 14,
"deletions": 7,
"patch": "@@ -459,12 +459,12 @@\n * Adds a random key to the generated view state session token.\n */\n @JSFWebConfigParam(since=\"2.1.9, 2.0.15\", expectedValues=\"secureRandom, random\", \n- defaultValue=\"random\", group=\"... | java | CWE-352 | [
"impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java"
] | impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java | 1 |
public function isDangerFilename($filename){ || $isDangerStr($filename , ".svg") || $isDangerStr($filename , ".htm") || $isDangerStr($filename , "%") ) { return true; } | public function isDangerFilename($filename){ || $isDangerStr($filename , ".svg") || $isDangerStr($filename , ".htm") || $isDangerStr($filename , "%") || $isDangerStr($filename , ".xml") ) { return true; } | GHSA-gq77-3r6x-383w | {'CWE-79'} | 5.4 | {'https://github.com/star7th/showdoc/commit/818d7fe731f452acccacf731ce47ec27ad68049c'} | osv | Cross-site Scripting in ShowDoc ShowDoc version 2.10.3 and prior is vulnerable to stored cross-site scripting. A patch is available and anticipated to be part of version 2.10.4. | 2022-03-13 | 1 | https://github.com/star7th/showdoc | https://github.com/star7th/showdoc/commit/818d7fe731f452acccacf731ce47ec27ad68049c | 818d7fe731f452acccacf731ce47ec27ad68049c | SINGLE | ['818d7fe731f452acccacf731ce47ec27ad68049c'] | {'85af5ab5a375ce16f991e2acb15466be4b3ba44b'} | 818d7fe731f452acccacf731ce47ec27ad68049c | 1 | 03/08/2022, 03:48:44 | file upload bug | star7th | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -301,6 +301,7 @@ public function isDangerFilename($filename){\n \t\t\t|| $isDangerStr($filename , \".svg\")\n \t\t\t|| $isDangerStr($filename , \".htm\")\n \t\t\t|| $isDangerStr($filename , \"%\")\n+\t\t\t|| $isDangerStr($filename , \".xml... | php | CWE-79 | [
"server/Application/Api/Model/AttachmentModel.class.php"
] | server/Application/Api/Model/AttachmentModel.class.php | 1 |
aubio_tempo_t * new_aubio_tempo (const char_t * tempo_mode, uint_t buf_size, uint_t hop_size, uint_t samplerate) { aubio_tempo_t * o = AUBIO_NEW(aubio_tempo_t); char_t specdesc_func[20]; o->samplerate = samplerate; // check parameters are valid if ((sint_t)hop_size < 1) { aubio_tempo_t * new_aubio_tempo ... | aubio_tempo_t * new_aubio_tempo (const char_t * tempo_mode, uint_t buf_size, uint_t hop_size, uint_t samplerate) { aubio_tempo_t * o = AUBIO_NEW(aubio_tempo_t); char_t specdesc_func[PATH_MAX]; o->samplerate = samplerate; // check parameters are valid if ((sint_t)hop_size < 1) { aubio_tempo_t * new_aubio_... | GHSA-grmf-4fq6-2r79 | {'CWE-119'} | 9.8 | {'https://github.com/aubio/aubio/commit/b1559f4c9ce2b304d8d27ffdc7128b6795ca82e5'} | osv | Improper Restriction of Operations within the Bounds of a Memory Buffer in aubio aubio v0.4.0 to v0.4.8 has a Buffer Overflow in new_aubio_tempo. | 2019-07-26 | 1 | https://github.com/aubio/aubio | https://github.com/aubio/aubio/commit/b1559f4c9ce2b304d8d27ffdc7128b6795ca82e5 | b1559f4c9ce2b304d8d27ffdc7128b6795ca82e5 | SINGLE | ['b1559f4c9ce2b304d8d27ffdc7128b6795ca82e5'] | {'c4a8bc138e49de8b43fcd2221ef84dfa5073208f'} | b1559f4c9ce2b304d8d27ffdc7128b6795ca82e5 | 1 | 11/24/2018, 16:17:29 | [tempo] fix buffer overflow in method parser | Paul Brossier | null | {'additions': 4, 'deletions': 3, 'total': 7} | [
{
"additions": 4,
"changes": 7,
"deletions": 3,
"patch": "@@ -168,7 +168,7 @@ aubio_tempo_t * new_aubio_tempo (const char_t * tempo_mode,\n uint_t buf_size, uint_t hop_size, uint_t samplerate)\n {\n aubio_tempo_t * o = AUBIO_NEW(aubio_tempo_t);\n- char_t specdesc_func[20];\n+ char_t specdesc... | c | CWE-119 | [
"src/tempo/tempo.c"
] | src/tempo/tempo.c | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.