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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
class HtmlUtils { return tagStack[tagStack.length - 1]; }; // The BASE tag allows changing the base URL from which files are loaded, and // that can break several plugins, such as Katex (which needs to load CSS // files using a relative URL). For that reason it is disabled. // More info: https://github.c... | class HtmlUtils { return tagStack[tagStack.length - 1]; }; // The BASE tag allows changing the base URL from which files are // loaded, and that can break several plugins, such as Katex (which // needs to load CSS files using a relative URL). For that reason // it is disabled. More info: // https://git... | GHSA-q26w-wjj2-22vv | {'CWE-79'} | 6.1 | {'https://github.com/laurent22/joplin/commit/fd90a490c0e5cacd17bfe0ffc422be1d2a9b1c13'} | osv | Cross-site scripting in Joplin Joplin allows XSS via a LINK element in a note. | 2021-05-10 | 1 | https://github.com/laurent22/joplin | https://github.com/laurent22/joplin/commit/fd90a490c0e5cacd17bfe0ffc422be1d2a9b1c13 | fd90a490c0e5cacd17bfe0ffc422be1d2a9b1c13 | SINGLE | ['fd90a490c0e5cacd17bfe0ffc422be1d2a9b1c13'] | {'4a184721e4e4aa00a39d508cdc1a3ae660d3610e'} | fd90a490c0e5cacd17bfe0ffc422be1d2a9b1c13 | 1 | 10/29/2020, 16:19:56 | All: Security: Remove "link" and "meta" tags from notes to prevent XSS | Laurent Cozic | null | {'additions': 10, 'deletions': 5, 'total': 15} | [
{
"additions": 10,
"changes": 15,
"deletions": 5,
"patch": "@@ -87,11 +87,16 @@ class HtmlUtils {\n \t\t\treturn tagStack[tagStack.length - 1];\n \t\t};\n \n-\t\t// The BASE tag allows changing the base URL from which files are loaded, and\n-\t\t// that can break several plugins, such as Katex (whic... | js | CWE-79 | [
"ReactNativeClient/lib/joplin-renderer/htmlUtils.js"
] | ReactNativeClient/lib/joplin-renderer/htmlUtils.js | 1 |
namespace Zendesk\API\Utilities; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Psr7\Request; class OAuth */ public static function getAccessToken(Client $client, $subdomain, array $params, $domain = 'zendesk.com') { $authUrl = "https://$subdomain.$domain/oauth... | namespace Zendesk\API\Utilities; use InvalidArgumentException; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Psr7\Request; class OAuth */ public static function getAccessToken(Client $client, $subdomain, array $params, $domain = 'zendesk.com') { static::validat... | GHSA-q348-f93x-9gx4 | {'CWE-918', 'CWE-20'} | 0 | {'https://github.com/zendesk/zendesk_api_client_php/commit/b451b743d9d6d81a9abf7cb86e70ec9c5332123e'} | osv | Lack of Input Validation in zendesk_api_client_php for Zendesk Subdomain ### Impact
Lack of input validation of the Zendesk subdomain could expose users of the library to Server Side Request Forgery (SSRF).
### Resolution
Validate the provided Zendesk subdomain to be a valid subdomain in:
* getAuthUrl
* getAccessToken | 2021-04-29 | 1 | https://github.com/zendesk/zendesk_api_client_php | https://github.com/zendesk/zendesk_api_client_php/commit/b451b743d9d6d81a9abf7cb86e70ec9c5332123e | b451b743d9d6d81a9abf7cb86e70ec9c5332123e | SINGLE | ['b451b743d9d6d81a9abf7cb86e70ec9c5332123e'] | {'60e058963db5cf3a0f36d041f4c84c22d71819a9', '13f0c1f299796cc271a2b84c7eda98b3ab0c97a9'} | b451b743d9d6d81a9abf7cb86e70ec9c5332123e | 1 | 04/28/2021, 21:55:42 | Merge pull request #466 from zendesk/validate-zendesk-subdomain | Yasith Fernando | null | {'additions': 16, 'deletions': 0, 'total': 16} | [
{
"additions": 16,
"changes": 16,
"deletions": 0,
"patch": "@@ -2,6 +2,7 @@\n \n namespace Zendesk\\API\\Utilities;\n \n+use InvalidArgumentException;\n use GuzzleHttp\\Client;\n use GuzzleHttp\\Exception\\RequestException;\n use GuzzleHttp\\Psr7\\Request;\n@@ -22,6 +23,7 @@ class OAuth\n */\n ... | php | CWE-20 | [
"src/Zendesk/API/Utilities/OAuth.php"
] | src/Zendesk/API/Utilities/OAuth.php | 1 |
function get_allowed_files_extensions_for_upload($fileTypes = 'images', $returnA break; case 'file': case 'files': $are_allowed .= ',doc,docx,pdf,json,rtf,txt,zip,gzip,rar,cad,xml,psd,xlsx,csv,7z'; break; case 'documents': ... | function get_allowed_files_extensions_for_upload($fileTypes = 'images', $returnA break; case 'file': case 'files': $are_allowed .= ',doc,docx,pdf,json,rtf,txt,zip,gzip,rar,cad,psd,xlsx,csv,7z'; break; case 'documents': cas... | GHSA-q3x2-jvp3-wj78 | {'CWE-79'} | 5.4 | {'https://github.com/microweber/microweber/commit/975fc1d6d3fba598ee550849ceb81af23ce72e08'} | osv | Unrestricted XML files leading to cross-site scripting in Microweber Microweber prior to 1.2.12 allows unrestricted upload of XML files, which malicious actors can exploit to cause a stored cross-site scripting attack. | 2022-03-16 | 1 | https://github.com/microweber/microweber | https://github.com/microweber/microweber/commit/975fc1d6d3fba598ee550849ceb81af23ce72e08 | 975fc1d6d3fba598ee550849ceb81af23ce72e08 | SINGLE | ['975fc1d6d3fba598ee550849ceb81af23ce72e08'] | {'27622f02c39d4cce67c43e5da38a6ab504202e13'} | 975fc1d6d3fba598ee550849ceb81af23ce72e08 | 1 | 03/14/2022, 15:29:28 | Update Files.php | Bozhidar Slaveykov | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -1154,11 +1154,11 @@ function get_allowed_files_extensions_for_upload($fileTypes = 'images', $returnA\n break;\n case 'file':\n case 'files':\n- $are_allowed .= ',doc,docx,pdf,json,rtf... | php | CWE-79 | [
"src/MicroweberPackages/Utils/System/Files.php"
] | src/MicroweberPackages/Utils/System/Files.php | 1 |
void PngImg::ReadInfo_(PngReadStruct& rs) { /// void PngImg::InitStorage_() { rowPtrs_.resize(info_.height, nullptr); data_ = new png_byte[info_.height * info_.rowbytes]; for(size_t i = 0; i < info_.height; ++i) { rowPtrs_[i] = data_ + i * info_.rowbytes; } } | void PngImg::ReadInfo_(PngReadStruct& rs) { /// void PngImg::InitStorage_() { rowPtrs_.resize(info_.height, nullptr); // Extend height and rowbytes from uint32_t to size_t to avoid multiplication overflow when size_t is larger size_t h = info_.height; size_t rb = info_.rowbytes; // We need to make ... | GHSA-q5wr-fvpq-p67g | {'CWE-787', 'CWE-190'} | 8.8 | {'https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d'} | osv | Integer Overflow in png-img An integer overflow in the PngImg::InitStorage_() function of png-img before 3.1.0 leads to an under-allocation of heap memory and subsequently an exploitable heap-based buffer overflow when loading a crafted PNG file. | 2021-12-10 | 1 | https://github.com/gemini-testing/png-img | https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d | 14ac462a32ca4b3b78f56502ac976d5b0222ce3d | SINGLE | ['14ac462a32ca4b3b78f56502ac976d5b0222ce3d'] | {'9fedfccb9ab2d1ccee4d7d544f3e03d505317352'} | 14ac462a32ca4b3b78f56502ac976d5b0222ce3d | 1 | 08/06/2020, 00:45:40 | Handle image size overflow | Mikhail Cheshkov | null | {'additions': 12, 'deletions': 2, 'total': 14} | [
{
"additions": 12,
"changes": 14,
"deletions": 2,
"patch": "@@ -60,10 +60,20 @@ void PngImg::ReadInfo_(PngReadStruct& rs) {\n ///\n void PngImg::InitStorage_() {\n rowPtrs_.resize(info_.height, nullptr);\n- data_ = new png_byte[info_.height * info_.rowbytes];\n+ // Extend height and rowbyt... | cc | CWE-787 | [
"src/PngImg.cc"
] | src/PngImg.cc | 1 |
void PngImg::ReadInfo_(PngReadStruct& rs) { /// void PngImg::InitStorage_() { rowPtrs_.resize(info_.height, nullptr); data_ = new png_byte[info_.height * info_.rowbytes]; for(size_t i = 0; i < info_.height; ++i) { rowPtrs_[i] = data_ + i * info_.rowbytes; } } | void PngImg::ReadInfo_(PngReadStruct& rs) { /// void PngImg::InitStorage_() { rowPtrs_.resize(info_.height, nullptr); // Extend height and rowbytes from uint32_t to size_t to avoid multiplication overflow when size_t is larger size_t h = info_.height; size_t rb = info_.rowbytes; // We need to make ... | GHSA-q5wr-fvpq-p67g | {'CWE-787', 'CWE-190'} | 8.8 | {'https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d'} | osv | Integer Overflow in png-img An integer overflow in the PngImg::InitStorage_() function of png-img before 3.1.0 leads to an under-allocation of heap memory and subsequently an exploitable heap-based buffer overflow when loading a crafted PNG file. | 2021-12-10 | 1 | https://github.com/gemini-testing/png-img | https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d | 14ac462a32ca4b3b78f56502ac976d5b0222ce3d | SINGLE | ['14ac462a32ca4b3b78f56502ac976d5b0222ce3d'] | {'9fedfccb9ab2d1ccee4d7d544f3e03d505317352'} | 14ac462a32ca4b3b78f56502ac976d5b0222ce3d | 1 | 08/06/2020, 00:45:40 | Handle image size overflow | Mikhail Cheshkov | null | {'additions': 12, 'deletions': 2, 'total': 14} | [
{
"additions": 12,
"changes": 14,
"deletions": 2,
"patch": "@@ -60,10 +60,20 @@ void PngImg::ReadInfo_(PngReadStruct& rs) {\n ///\n void PngImg::InitStorage_() {\n rowPtrs_.resize(info_.height, nullptr);\n- data_ = new png_byte[info_.height * info_.rowbytes];\n+ // Extend height and rowbyt... | cc | CWE-190 | [
"src/PngImg.cc"
] | src/PngImg.cc | 1 |
pimcore.element.properties = Class.create({ addSetFromUserDefined: function (customKey, customType) { try { if (in_array(customKey.getValue(), this.disallowedKeys)) { Ext.MessageBox.alert(t("error"), t("name_is_not_allowed")); } this.add(customKey.getVal... | pimcore.element.properties = Class.create({ addSetFromUserDefined: function (customKey, customType) { try { let key = htmlspecialchars(customKey.getValue()); if (in_array(key, this.disallowedKeys)) { Ext.MessageBox.alert(t("error"), t("name_is_not_allowed")); ... | GHSA-q67f-3jq4-mww2 | {'CWE-79'} | 5.4 | {'https://github.com/pimcore/pimcore/commit/e786fd44aac46febdbf916ed6c328fbe645d80bf'} | osv | Cross-site Scripting in Pimcore Pimcore version 10.3.2 and prior is vulnerable to stored cross-site scripting. A patch is available and anticipated to be part of version 10.3.3. | 2022-03-05 | 1 | https://github.com/pimcore/pimcore | https://github.com/pimcore/pimcore/commit/e786fd44aac46febdbf916ed6c328fbe645d80bf | e786fd44aac46febdbf916ed6c328fbe645d80bf | SINGLE | ['e786fd44aac46febdbf916ed6c328fbe645d80bf'] | {'ce5c01f4c9f477444aeceb640b60f3b6199e7c22'} | e786fd44aac46febdbf916ed6c328fbe645d80bf | 1 | 03/02/2022, 20:15:07 | escaping 'key' custom property field in elements | JiaJia Ji | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -568,10 +568,11 @@ pimcore.element.properties = Class.create({\n \n addSetFromUserDefined: function (customKey, customType) {\n try {\n- if (in_array(customKey.getValue(), this.disallowedKeys)) {\n+ let ke... | js | CWE-79 | [
"bundles/AdminBundle/Resources/public/js/pimcore/element/properties.js"
] | bundles/AdminBundle/Resources/public/js/pimcore/element/properties.js | 1 |
function get_allowed_files_extensions_for_upload($fileTypes = 'images', $returnA break; case 'file': case 'files': $are_allowed .= ',css,json,zip,gzip,csv,7z'; break; case 'documents': case 'doc': $are_allow... | function get_allowed_files_extensions_for_upload($fileTypes = 'images', $returnA break; case 'file': case 'files': $are_allowed .= ',css,json,zip,gzip,psd,csv,7z'; break; case 'documents': case 'doc': $are_a... | GHSA-q6mp-562x-ggvv | {'CWE-79'} | 5.4 | {'https://github.com/microweber/microweber/commit/70b46e231e7b2c113666745a0ab6de9a8b7ef08e'} | osv | Cross-site Scripting in microweber Cross-site Scripting (XSS) - Stored in GitHub repository microweber/microweber prior to 1.2.19. | 2022-07-05 | 1 | https://github.com/microweber/microweber | https://github.com/microweber/microweber/commit/70b46e231e7b2c113666745a0ab6de9a8b7ef08e | 70b46e231e7b2c113666745a0ab6de9a8b7ef08e | SINGLE | ['70b46e231e7b2c113666745a0ab6de9a8b7ef08e'] | {'b7663f9af0f4ab777275ffe7a3b77958f98c81fb'} | 70b46e231e7b2c113666745a0ab6de9a8b7ef08e | 1 | 07/04/2022, 08:02:08 | update | Peter Ivanov | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -1154,11 +1154,11 @@ function get_allowed_files_extensions_for_upload($fileTypes = 'images', $returnA\n break;\n case 'file':\n case 'files':\n- $are_allowed .= ',css,json,zip,gzip,csv... | php | CWE-79 | [
"src/MicroweberPackages/Utils/System/Files.php"
] | src/MicroweberPackages/Utils/System/Files.php | 1 |
public function isAllowedFilename($filename){ $allow_array = array( '.jpg','.jpeg','.png','.bmp','.gif','.ico','.webp', '.mp3','.wav','.m4a','.ogg','.webma','.mp4','.flv', '.mov','.webmv','.m3u8a','.flac','.mkv', '.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso','.bz2','.epub', '.pdf','.ofd','.sw... | public function isAllowedFilename($filename){ $allow_array = array( '.jpg','.jpeg','.png','.bmp','.gif','.ico','.webp', '.mp3','.wav','.m4a','.ogg','.webma','.mp4','.flv', '.mov','.webmv','.flac','.mkv', '.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso','.bz2','.epub', '.pdf','.ofd','.swf','.epub... | GHSA-q73m-3q7r-fpf7 | {'CWE-79'} | 5.4 | {'https://github.com/star7th/showdoc/commit/d1c9ed0d77ea5d56f09be0c492361dca8af745bb'} | osv | Cross-site Scripting in ShowDoc ShowDoc prior to 2.10.4 is vulnerable to stored cross-site scripting via file upload. | 2022-03-16 | 1 | https://github.com/star7th/showdoc | https://github.com/star7th/showdoc/commit/d1c9ed0d77ea5d56f09be0c492361dca8af745bb | d1c9ed0d77ea5d56f09be0c492361dca8af745bb | SINGLE | ['d1c9ed0d77ea5d56f09be0c492361dca8af745bb'] | {'56e450c3adf75c707500d7231a78c9fc894c7f13', 'aa41c83e0cc5079fb39e04d9f630571ffb8bbf22'} | d1c9ed0d77ea5d56f09be0c492361dca8af745bb | 1 | 03/14/2022, 12:29:34 | Merge pull request #1632 from ajaysenr/master
Update AttachmentModel.class.php | star7th | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -325,7 +325,7 @@ public function isAllowedFilename($filename){\n \t\t$allow_array = array(\n \t\t\t'.jpg','.jpeg','.png','.bmp','.gif','.ico','.webp',\n \t\t\t'.mp3','.wav','.m4a','.ogg','.webma','.mp4','.flv',\n-\t\t\t'.mov','.webmv','.m3... | php | CWE-79 | [
"server/Application/Api/Model/AttachmentModel.class.php"
] | server/Application/Api/Model/AttachmentModel.class.php | 1 |
App.BreadcrumbItem = Em.Object.extend({ createLabel() { let label = this.get('label'); let labelBindingPath = this.get('labelBindingPath'); let formattedLabel = labelBindingPath ? App.get(_getLabelPathWithoutApp(labelBindingPath)) : label; this.set('formattedLabel', this.labelPostFormat(formattedLab... | App.BreadcrumbItem = Em.Object.extend({ createLabel() { let label = this.get('label'); let labelBindingPath = this.get('labelBindingPath'); let formattedLabel; if (labelBindingPath) { formattedLabel = Ember.Handlebars.Utils.escapeExpression(App.get(_getLabelPathWithoutApp(labelBindingPath))); ... | GHSA-q7q9-w24q-cpgh | {'CWE-79'} | 6.1 | {'https://github.com/apache/ambari/pull/3040/commits/a9cfdb9dcce63a3494c07c81ebb2cf8da218a210'} | osv | Cross-site Scripting (XSS) in Apache Ambari Views A cross-site scripting issue was found in Apache Ambari Views. This was addressed in Apache Ambari 2.7.4. | 2022-01-06 | 1 | https://github.com/apache/ambari | https://github.com/apache/ambari/pull/3040/commits/a9cfdb9dcce63a3494c07c81ebb2cf8da218a210 | a9cfdb9dcce63a3494c07c81ebb2cf8da218a210 | SINGLE | ['a9cfdb9dcce63a3494c07c81ebb2cf8da218a210'] | {'9e9ddf752f36aa9340d6dfdc23ecccfcd646fc53'} | a9cfdb9dcce63a3494c07c81ebb2cf8da218a210 | 1 | 07/01/2019, 11:43:05 | AMBARI-25329. Ambari breadcrumbs xss vulnerability | Alex Antonenko | null | {'additions': 12, 'deletions': 2, 'total': 14} | [
{
"additions": 12,
"changes": 14,
"deletions": 2,
"patch": "@@ -149,8 +149,16 @@ App.BreadcrumbItem = Em.Object.extend({\n createLabel() {\n let label = this.get('label');\n let labelBindingPath = this.get('labelBindingPath');\n+ let formattedLabel;\n+\n+ if (labelBindingPath) {\n+ ... | js | CWE-79 | [
"ambari-web/app/views/common/breadcrumbs_view.js"
] | ambari-web/app/views/common/breadcrumbs_view.js | 1 |
public static function delete(int $id): void public static function deleteData(array $ids): void { $database = BackendModel::getContainer()->get('database'); $database->delete('forms_data', 'id IN(' . implode(',', $ids) . ')'); $database->delete('forms_data_fields', 'data_id IN(' . imp... | public static function delete(int $id): void public static function deleteData(array $ids): void { $database = BackendModel::getContainer()->get('database'); $ids = array_map('intval', $ids); $database->delete('forms_data', 'id IN(' . implode(',', $ids) . ')'); $database->delet... | GHSA-q863-cchm-c6c6 | {'CWE-89'} | 7.5 | {'https://github.com/forkcms/forkcms/commit/7a12046a67ae5d8cf04face3ee75e55f03a1a608'} | osv | SQL Injection in Fork CMS Fork CMS contains a SQL injection vulnerability in versions prior to version 5.11.1. When deleting submissions which belong to a formular (made with module `FormBuilder`), the parameter `id[]` is vulnerable to SQL injection. | 2022-03-25 | 1 | https://github.com/forkcms/forkcms | https://github.com/forkcms/forkcms/commit/7a12046a67ae5d8cf04face3ee75e55f03a1a608 | 7a12046a67ae5d8cf04face3ee75e55f03a1a608 | SINGLE | ['7a12046a67ae5d8cf04face3ee75e55f03a1a608'] | {'1b38e33a98992793e998a937b717355212346993'} | 7a12046a67ae5d8cf04face3ee75e55f03a1a608 | 1 | 03/23/2022, 12:16:53 | Prevent sql injection through the ids of the action | Jelmer Prins | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -152,6 +152,7 @@ public static function delete(int $id): void\n public static function deleteData(array $ids): void\n {\n $database = BackendModel::getContainer()->get('database');\n+ $ids = array_map('intval', $ids)... | php | CWE-89 | [
"src/Backend/Modules/FormBuilder/Engine/Model.php"
] | src/Backend/Modules/FormBuilder/Engine/Model.php | 1 |
protected function typeMap($value, $type) protected function columnQuote($string) { if (strpos($string, '.') !== false) { return '"' . $this->prefix . str_replace('.', '"."', $string) . '"'; | protected function typeMap($value, $type) protected function columnQuote($string) { if (!preg_match('/^[a-zA-Z0-9]+(\.?[a-zA-Z0-9]+)?$/i', $string)) { throw new InvalidArgumentException("Incorrect column name \"$string\""); } if (strpos($string, '.') !== false) { return '"' . $this->prefix . str_re... | GHSA-q9p4-qfc8-fvpp | {'CWE-89'} | 9.8 | {'https://github.com/catfan/Medoo/commit/659864b393961bf224bba1efc03b7dcbed7de533'} | osv | SQL Injection in medoo columnQuote in medoo before 1.7.5 allows remote attackers to perform a SQL Injection due to improper escaping. | 2021-10-12 | 1 | https://github.com/catfan/Medoo | https://github.com/catfan/Medoo/commit/659864b393961bf224bba1efc03b7dcbed7de533 | 659864b393961bf224bba1efc03b7dcbed7de533 | SINGLE | ['659864b393961bf224bba1efc03b7dcbed7de533'] | {'b3f05edf256d63ec3cfd31d6a078c564daf9863d'} | 659864b393961bf224bba1efc03b7dcbed7de533 | 1 | 10/11/2019, 15:50:40 | [fix] Fix columnQuote for security issue reported by Snyk | Angel Lai | {'com_1': {'author': 'jfcherng', 'datetime': '10/12/2019, 11:57:36', 'body': "It's perfect valid to use `_` in a column name and I believe it's used quite often. This change would make `v1.7.4` literally unusable for most of people.\r\n\r\nNot sure about other SQL standard. For MySQL, it's valid to use some of UTF-8 ch... | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -500,6 +500,11 @@ protected function typeMap($value, $type)\n \n \tprotected function columnQuote($string)\n \t{\n+\t\tif (!preg_match('/^[a-zA-Z0-9]+(\\.?[a-zA-Z0-9]+)?$/i', $string))\n+\t\t{\n+\t\t\tthrow new InvalidArgumentException(\"I... | php | CWE-89 | [
"src/Medoo.php"
] | src/Medoo.php | 1 |
use MicroweberPackages\Comment\Models\Comment; use MicroweberPackages\Comment\Events\NewComment; use MicroweberPackages\Comment\Notifications\NewCommentNotification; use MicroweberPackages\User\Models\User; use MicroweberPackages\Utils\Mail\MailSender; class AdminCommentController extends AdminController { publi... | use MicroweberPackages\Comment\Models\Comment; use MicroweberPackages\Comment\Events\NewComment; use MicroweberPackages\Comment\Notifications\NewCommentNotification; use MicroweberPackages\Helper\HTMLClean; use MicroweberPackages\User\Models\User; use MicroweberPackages\Utils\Mail\MailSender; class AdminCommentContro... | GHSA-q9qc-pp5x-mc8c | {'CWE-94', 'CWE-1336'} | 8.8 | {'https://github.com/microweber/microweber/commit/e0224462b3dd6b1f7c6ec1197413afc6019bc3b5'} | osv | Improper Neutralization of Special Elements Used in a Template Engine in microweber Improper Neutralization of Special Elements Used in a Template Engine in GitHub repository microweber/microweber prior to 1.3. | 2022-03-10 | 1 | https://github.com/microweber/microweber | https://github.com/microweber/microweber/commit/e0224462b3dd6b1f7c6ec1197413afc6019bc3b5 | e0224462b3dd6b1f7c6ec1197413afc6019bc3b5 | SINGLE | ['e0224462b3dd6b1f7c6ec1197413afc6019bc3b5'] | {'b2baab6e582b2efe63788d367a2bb61a2fa26470'} | e0224462b3dd6b1f7c6ec1197413afc6019bc3b5 | 1 | 03/09/2022, 11:17:21 | Update AdminCommentController.php | Bozhidar Slaveykov | null | {'additions': 3, 'deletions': 10, 'total': 13} | [
{
"additions": 3,
"changes": 13,
"deletions": 10,
"patch": "@@ -18,18 +18,16 @@\n use MicroweberPackages\\Comment\\Models\\Comment;\n use MicroweberPackages\\Comment\\Events\\NewComment;\n use MicroweberPackages\\Comment\\Notifications\\NewCommentNotification;\n+use MicroweberPackages\\Helper\\HTMLC... | php | CWE-94 | [
"src/MicroweberPackages/Comment/Http/Controllers/Admin/AdminCommentController.php"
] | src/MicroweberPackages/Comment/Http/Controllers/Admin/AdminCommentController.php | 1 |
public static function processModuleXml(\SimpleXMLElement $xml): array $information['name'] = (string) $module->name; $information['version'] = (string) $module->version; $information['requirements'] = (array) $module->requirements; $information['description'] = (string) $module->descri... | public static function processModuleXml(\SimpleXMLElement $xml): array $information['name'] = (string) $module->name; $information['version'] = (string) $module->version; $information['requirements'] = (array) $module->requirements; $information['description'] = strip_tags((string) $mod... | GHSA-qf2g-q4mc-w7rr | {'CWE-79'} | 5.4 | {'https://github.com/forkcms/forkcms/commit/981730f1a3d59b423ca903b1f4bf79b848a1766e'} | osv | Cross-site Scripting in Fork CMS Fork CMS prior to 5.11.1 is vulnerable to stored cross-site scripting. When uploading a new module, the description of the module can contain JavaScript code. The JavaScript code may be executed after uploading the new module and looking at the `Details` page. | 2022-03-25 | 1 | https://github.com/forkcms/forkcms | https://github.com/forkcms/forkcms/commit/981730f1a3d59b423ca903b1f4bf79b848a1766e | 981730f1a3d59b423ca903b1f4bf79b848a1766e | SINGLE | ['981730f1a3d59b423ca903b1f4bf79b848a1766e'] | {'1b38e33a98992793e998a937b717355212346993'} | 981730f1a3d59b423ca903b1f4bf79b848a1766e | 1 | 03/23/2022, 13:20:39 | Fix xss though the description in the info.xml file of a theme or module | Jelmer Prins | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -839,7 +839,7 @@ public static function processModuleXml(\\SimpleXMLElement $xml): array\n $information['name'] = (string) $module->name;\n $information['version'] = (string) $module->version;\n $information['requir... | php | CWE-79 | [
"src/Backend/Modules/Extensions/Engine/Model.php"
] | src/Backend/Modules/Extensions/Engine/Model.php | 1 |
REGISTER_OP("Dequantize") 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; | REGISTER_OP("Dequantize") 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_R... | GHSA-qfpc-5pjr-mh26 | {'CWE-20'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/da857cfa0fde8f79ad0afdbc94e88b5d4bbec764'} | osv | Missing validation in shape inference for `Dequantize` ### Impact
The shape inference code for `tf.raw_ops.Dequantize` has a vulnerability that could trigger a denial of service via a segfault if an attacker provides invalid arguments:
```python
import tensorflow as tf
tf.compat.v1.disable_v2_behavior()
tf.raw_ops.De... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/da857cfa0fde8f79ad0afdbc94e88b5d4bbec764 | da857cfa0fde8f79ad0afdbc94e88b5d4bbec764 | SINGLE | ['da857cfa0fde8f79ad0afdbc94e88b5d4bbec764'] | {'8a793b5d7f59e37ac7f3cd0954a750a2fe76bad4'} | da857cfa0fde8f79ad0afdbc94e88b5d4bbec764 | 1 | 07/30/2021, 01:24:18 | Fix a shape inference issue leading to nullptr deref.
PiperOrigin-RevId: 387712259
Change-Id: I7e670772b259c068a501a187cd89f18773bb95a1 | Mihai Maruseac | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -2990,6 +2990,10 @@ REGISTER_OP(\"Dequantize\")\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 \",\n+... | cc | CWE-20 | [
"tensorflow/core/ops/array_ops.cc"
] | tensorflow/core/ops/array_ops.cc | 1 |
module.exports = function(path, opts, cb) { opts = {}; } var cmd = module.exports.cmd(path, opts); opts.timeout = opts.timeout || 5000; exec(cmd, opts, function(e, stdout, stderr) { if (e) { return cb(e); } if (stderr) { return cb(new Error(stderr)); } return cb(null, module.exports.parse(pa... | module.exports = function(path, opts, cb) { opts = {}; } if(/;|&|`|\$|\(|\)|\|\||\||!|>|<|\?|\${/g.test(JSON.stringify(path))) { console.log('Input Validation failed, Suspicious Characters found'); } else { var cmd = module.exports.cmd(path, opts); opts.timeout = opts.timeout || 5000; exec(c... | GHSA-qfxv-qqvg-24pg | {'CWE-78'} | 9.8 | {'https://github.com/Turistforeningen/node-im-metadata/commit/ea15dddbe0f65694bfde36b78dd488e90f246639'} | osv | OS Command Injection in im-metadata im-metadata through 3.0.1 allows remote attackers to execute arbitrary commands via the "exec" argument. It is possible to inject arbitrary commands as part of the metadata options which is given to the "exec" function. | 2021-04-13 | 1 | https://github.com/Turistforeningen/node-im-metadata | https://github.com/Turistforeningen/node-im-metadata/commit/ea15dddbe0f65694bfde36b78dd488e90f246639 | ea15dddbe0f65694bfde36b78dd488e90f246639 | SINGLE | ['ea15dddbe0f65694bfde36b78dd488e90f246639'] | {'049ce24dbb4302811b9247444347da6561605a8a'} | ea15dddbe0f65694bfde36b78dd488e90f246639 | 1 | 02/03/2020, 21:26:09 | fix: check path argument before processing (#10)
hotfix to re mediate command injection | Sam Sanoop | null | {'additions': 9, 'deletions': 6, 'total': 15} | [
{
"additions": 9,
"changes": 15,
"deletions": 6,
"patch": "@@ -9,15 +9,18 @@ module.exports = function(path, opts, cb) {\n opts = {};\n }\n \n- var cmd = module.exports.cmd(path, opts);\n- opts.timeout = opts.timeout || 5000;\n-\n- exec(cmd, opts, function(e, stdout, stderr) {\n- if (e) ... | js | CWE-78 | [
"index.js"
] | index.js | 1 |
class DenseCount : public OpKernel { int num_batch_elements = 1; for (int i = 0; i < num_batch_dimensions; ++i) { num_batch_elements *= data.shape().dim_size(i); } int num_value_elements = data.shape().num_elements() / num_batch_elements; | class DenseCount : public OpKernel { int num_batch_elements = 1; for (int i = 0; i < num_batch_dimensions; ++i) { OP_REQUIRES(context, data.shape().dim_size(i) != 0, errors::InvalidArgument( "Invalid input: Shapes dimension cannot be 0.")); num_batch_element... | GHSA-qg48-85hg-mqc5 | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/da5ff2daf618591f64b2b62d9d9803951b945e9f'} | osv | Division by 0 in `DenseCountSparseOutput` ### Impact
An attacker can cause a denial of service via a FPE runtime error in `tf.raw_ops.DenseCountSparseOutput`:
```python
import tensorflow as tf
values = tf.constant([], shape=[0, 0], dtype=tf.int64)
weights = tf.constant([])
tf.raw_ops.DenseCountSparseOutput(
values... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/da5ff2daf618591f64b2b62d9d9803951b945e9f | da5ff2daf618591f64b2b62d9d9803951b945e9f | SINGLE | ['da5ff2daf618591f64b2b62d9d9803951b945e9f'] | {'efff014f3b2d8ef6141da30c806faf141297eca1'} | da5ff2daf618591f64b2b62d9d9803951b945e9f | 1 | 04/28/2021, 18:24:45 | Fix FPE issue with `tf.raw_ops.DenseCountSparseOutput`.
PiperOrigin-RevId: 370946862
Change-Id: I3752584ad04aaecb327ff6793a9640ac56acfe7a | Amit Patankar | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -122,6 +122,9 @@ class DenseCount : public OpKernel {\n \n int num_batch_elements = 1;\n for (int i = 0; i < num_batch_dimensions; ++i) {\n+ OP_REQUIRES(context, data.shape().dim_size(i) != 0,\n+ errors::Inval... | cc | CWE-369 | [
"tensorflow/core/kernels/count_ops.cc"
] | tensorflow/core/kernels/count_ops.cc | 1 |
import mimetypes import os import os.path import re import socketserver import threading def condition(): if path == "/js/livereload.js": file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "livereload.js") elif path.startswith(self.mount_path): rel_file_path = ... | import mimetypes import os import os.path import posixpath import re import socketserver import threading def condition(): if path == "/js/livereload.js": file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "livereload.js") elif path.startswith(self.mount_path): ... | GHSA-qh9q-34h6-hcv9 | {'CWE-12', 'CWE-22'} | 7.5 | {'https://github.com/mkdocs/mkdocs/pull/2604/commits/cddc453c9d49298e60e7d56fb71130c151cbcbe5'} | osv | Directory traversal in mkdocs The mkdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain :sensitive information. | 2021-10-12 | 1 | https://github.com/mkdocs/mkdocs | https://github.com/mkdocs/mkdocs/pull/2604/commits/cddc453c9d49298e60e7d56fb71130c151cbcbe5 | cddc453c9d49298e60e7d56fb71130c151cbcbe5 | SINGLE | ['cddc453c9d49298e60e7d56fb71130c151cbcbe5'] | {'c426455878556baa34cc829c579337236d335581'} | cddc453c9d49298e60e7d56fb71130c151cbcbe5 | 1 | 10/10/2021, 08:52:05 | Prevent directory traversal in the dev server | Oleh Prypin | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -4,6 +4,7 @@\n import mimetypes\n import os\n import os.path\n+import posixpath\n import re\n import socketserver\n import threading\n@@ -183,9 +184,11 @@ def condition():\n if path == \"/js/livereload.js\":\n file_path... | py | CWE-22 | [
"mkdocs/livereload/__init__.py"
] | mkdocs/livereload/__init__.py | 1 |
def parse_native_url(url): result = re.match( r'^https?://maker\.ifttt\.com/use/' r'(?P<webhook_id>[A-Z0-9_-]+)' r'/?(?P<events>([A-Z0-9_-]+/?)+)?' r'/?(?P<params>\?.+)?$', url, re.I) if result: | def parse_native_url(url): result = re.match( r'^https?://maker\.ifttt\.com/use/' r'(?P<webhook_id>[A-Z0-9_-]+)' r'((?P<events>(/[A-Z0-9_-]+)+))?' r'/?(?P<params>\?.+)?$', url, re.I) if result: | GHSA-qhmp-h54x-38qr | {'CWE-400'} | 7.5 | {'https://github.com/caronc/apprise/commit/e20fce630d55e4ca9b0a1e325a5fea6997489831'} | osv | CWE-730 Regex injection with IFTTT Plugin ### Impact
Anyone _publicly_ hosting the Apprise library and granting them access to the IFTTT notification service.
### Patches
Update to Apprise v0.9.5.1
```bash
# Install Apprise v0.9.5.1 from PyPI
pip install apprise==0.9.5.1
```
The patch to the pro... | 2021-09-20 | 1 | https://github.com/caronc/apprise | https://github.com/caronc/apprise/commit/e20fce630d55e4ca9b0a1e325a5fea6997489831 | e20fce630d55e4ca9b0a1e325a5fea6997489831 | SINGLE | ['e20fce630d55e4ca9b0a1e325a5fea6997489831'] | {'81d1ea72bcee4441278a809a95fc0f91dc916402'} | e20fce630d55e4ca9b0a1e325a5fea6997489831 | 1 | 09/06/2021, 17:51:32 | Slight bulletproofing to IFTTT regex handling (#436) | Chris Caron | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -355,7 +355,7 @@ def parse_native_url(url):\n result = re.match(\n r'^https?://maker\\.ifttt\\.com/use/'\n r'(?P<webhook_id>[A-Z0-9_-]+)'\n- r'/?(?P<events>([A-Z0-9_-]+/?)+)?'\n+ r'((?P... | py | CWE-400 | [
"apprise/plugins/NotifyIFTTT.py"
] | apprise/plugins/NotifyIFTTT.py | 1 |
class ResourceGatherOp : public OpKernel { copy_functor(c->eigen_device<Device>(), tmp_indices.flat<Index>(), indices.flat<Index>()); AddBatchOffsets(&tmp_indices, params); op_indices = &tmp_indices; } class ResourceGatherOp : public OpKernel { // Example: batch_d... | class ResourceGatherOp : public OpKernel { copy_functor(c->eigen_device<Device>(), tmp_indices.flat<Index>(), indices.flat<Index>()); AddBatchOffsets(c, &tmp_indices, params); if (!c->status().ok()) return; op_indices = &tmp_indices; } class ResourceGatherOp... | GHSA-qjj8-32p7-h289 | {'CWE-369'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/ac117ee8a8ea57b73d34665cdf00ef3303bc0b11'} | osv | Division by 0 in `ResourceGather` ### Impact
An attacker can trigger a crash via a floating point exception in `tf.raw_ops.ResourceGather`:
```python
import tensorflow as tf
tensor = tf.constant(value=[[]],shape=(0,1),dtype=tf.uint32)
v = tf.Variable(tensor)
tf.raw_ops.ResourceGather(
resource=v.handle,
indices=[... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/ac117ee8a8ea57b73d34665cdf00ef3303bc0b11 | ac117ee8a8ea57b73d34665cdf00ef3303bc0b11 | SINGLE | ['ac117ee8a8ea57b73d34665cdf00ef3303bc0b11'] | {'3a7362750d5c372420aa8f0caf7bf5b5c3d0f52d'} | ac117ee8a8ea57b73d34665cdf00ef3303bc0b11 | 1 | 07/31/2021, 05:23:28 | Prevent division by 0 in `resource_variable_ops.cc`
PiperOrigin-RevId: 387939939
Change-Id: Ib04902d63756633999959a70613f2eaa30c2c151 | Mihai Maruseac | null | {'additions': 9, 'deletions': 2, 'total': 11} | [
{
"additions": 9,
"changes": 11,
"deletions": 2,
"patch": "@@ -710,7 +710,8 @@ class ResourceGatherOp : public OpKernel {\n copy_functor(c->eigen_device<Device>(), tmp_indices.flat<Index>(),\n indices.flat<Index>());\n \n- AddBatchOffsets(&tmp_indices, params);\n+... | cc | CWE-369 | [
"tensorflow/core/kernels/resource_variable_ops.cc"
] | tensorflow/core/kernels/resource_variable_ops.cc | 1 |
abstract class elFinderVolumeDriver 'php5:*' => 'text/x-php', 'php7:*' => 'text/x-php', 'phtml:*' => 'text/x-php', 'cgi:*' => 'text/x-httpd-cgi', 'pl:*' => 'text/x-perl', 'asp:*' => 'text/x-asap', | abstract class elFinderVolumeDriver 'php5:*' => 'text/x-php', 'php7:*' => 'text/x-php', 'phtml:*' => 'text/x-php', 'phar:*' => 'text/x-php', 'cgi:*' => 'text/x-httpd-cgi', 'pl:*' => 'text/x-perl', 'asp:*' => 'text/x-asap', | GHSA-qm58-cvvm-c5qr | {'CWE-434'} | 8.1 | {'https://github.com/Studio-42/elFinder/commit/75ea92decc16a5daf7f618f85dc621d1b534b5e1'} | osv | elFinder unsafe upload filtering leading to remote code execution ### Impact
Before elFinder 2.1.58, the upload filter did not disallow the upload of `.phar` files. As several Linux distributions are now shipping Apache configured in a way it will process these files as PHP scripts, attackers could gain arbitrary code... | 2021-06-15 | 1 | https://github.com/Studio-42/elFinder | https://github.com/Studio-42/elFinder/commit/75ea92decc16a5daf7f618f85dc621d1b534b5e1 | 75ea92decc16a5daf7f618f85dc621d1b534b5e1 | SINGLE | ['75ea92decc16a5daf7f618f85dc621d1b534b5e1'] | {'6a97635e590b5882bf95f62f8e70e7230bbc625e'} | 75ea92decc16a5daf7f618f85dc621d1b534b5e1 | 1 | 05/31/2021, 11:50:39 | [VD:abstract] add `'phar:*' => 'text/x-php'` into 'staticMineMap'
rel. #3295 | nao-pon | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -281,6 +281,7 @@ abstract class elFinderVolumeDriver\n 'php5:*' => 'text/x-php',\n 'php7:*' => 'text/x-php',\n 'phtml:*' => 'text/x-php',\n+ 'phar:*' => 'text/x-php',\n 'cgi:*' => ... | php | CWE-434 | [
"php/elFinderVolumeDriver.class.php"
] | php/elFinderVolumeDriver.class.php | 1 |
import java.util.Dictionary; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Objects; import java.util.Set; import java.util.UUID; import java.util.concurrent.TimeUnit; import java.util.stream.Col... | import java.util.Dictionary; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Objects; import java.util.Set; import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.management.ObjectInstance; protected URI ... | GHSA-qm6v-cg9v-53j3 | {'CWE-287'} | 5.4 | {'https://github.com/opencast/opencast/commit/8d5ec1614eed109b812bc27b0c6d3214e456d4e7'} | osv | Limited Authentication Bypass for Media Files Prior to Opencast 10.14 and 11.7, users could pass along URLs for files belonging to organizations other than the user's own, which Opencast would then import into the current organization, bypassing organizational barriers.
### Impact
The vulnerability allows attackers t... | 2022-05-25 | 1 | https://github.com/opencast/opencast | https://github.com/opencast/opencast/commit/8d5ec1614eed109b812bc27b0c6d3214e456d4e7 | 8d5ec1614eed109b812bc27b0c6d3214e456d4e7 | SINGLE | ['8d5ec1614eed109b812bc27b0c6d3214e456d4e7'] | {'eee0c26fe33afc0709373fcbd7c6870bee8e2bed'} | 8d5ec1614eed109b812bc27b0c6d3214e456d4e7 | 1 | 05/18/2022, 10:43:56 | Merge pull request from GHSA-qm6v-cg9v-53j3
This patch fixes the issue that users can pass URLs from other tenants
to the ingest service which will check only against the other
organization but not against the one currently active. This allows users
to easily ingest media from other tenants. | Lars Kiesow | null | {'additions': 1, 'deletions': 12, 'total': 13} | [
{
"additions": 1,
"changes": 13,
"deletions": 12,
"patch": "@@ -129,15 +129,13 @@\n import java.util.Dictionary;\n import java.util.HashMap;\n import java.util.HashSet;\n-import java.util.LinkedList;\n import java.util.List;\n import java.util.Map;\n import java.util.Map.Entry;\n import java.util.Ob... | java | CWE-287 | [
"modules/ingest-service-impl/src/main/java/org/opencastproject/ingest/impl/IngestServiceImpl.java"
] | modules/ingest-service-impl/src/main/java/org/opencastproject/ingest/impl/IngestServiceImpl.java | 1 |
import ( "fmt" "io/ioutil" "os" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/config" var ( "refs/*:refs/*", "HEAD:refs/heads/HEAD", } ) type GitArtifactReader struct { type GitArtifactReader struct { // NewGitReader returns a new git reader func NewGitReader(gitArtifact *v1alpha1.GitArtifact... | import ( "fmt" "io/ioutil" "os" "path" "strings" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/config" var ( "refs/*:refs/*", "HEAD:refs/heads/HEAD", } notAllowedInPath = []string{"..", "~", "\\"} ) type GitArtifactReader struct { type GitArtifactReader struct { // NewGitReader returns a ... | GHSA-qpgx-64h2-gc3c | {'CWE-22'} | 7.5 | {'https://github.com/argoproj/argo-events/commit/d0f66dbce78bc31923ca057b20fc722aa24ca961'} | osv | Insecure path traversal in Git Trigger Source can lead to arbitrary file read ### Impact
A path traversal issue was found in the (g *GitArtifactReader).Read() API. Read() calls into (g *GitArtifactReader).readFromRepository() that opens and reads the file that contains the trigger resource definition:
```go
func (g *G... | 2022-06-17 | 1 | https://github.com/argoproj/argo-events | https://github.com/argoproj/argo-events/commit/d0f66dbce78bc31923ca057b20fc722aa24ca961 | d0f66dbce78bc31923ca057b20fc722aa24ca961 | SINGLE | ['d0f66dbce78bc31923ca057b20fc722aa24ca961'] | {'e80ab9f9556f7f97346fb393e312f8a689ca21f8'} | d0f66dbce78bc31923ca057b20fc722aa24ca961 | 1 | 05/13/2022, 03:18:33 | fix: git artifactory arbitrary file read issue (#1965)
Signed-off-by: Derek Wang <whynowy@gmail.com> | Derek Wang | null | {'additions': 34, 'deletions': 2, 'total': 36} | [
{
"additions": 34,
"changes": 36,
"deletions": 2,
"patch": "@@ -20,6 +20,8 @@ import (\n \t\"fmt\"\n \t\"io/ioutil\"\n \t\"os\"\n+\t\"path\"\n+\t\"strings\"\n \n \t\"github.com/go-git/go-git/v5\"\n \t\"github.com/go-git/go-git/v5/config\"\n@@ -44,6 +46,8 @@ var (\n \t\t\"refs/*:refs/*\",\n \t\t\"HEA... | go | CWE-22 | [
"sensors/artifacts/git.go"
] | sensors/artifacts/git.go | 1 |
<?php return [ 'sent' => 'Your password link has been sent!', 'user' => 'No matching active user found with that email.', ]; | <?php return [ 'sent' => 'Success: If that email address exists in our system, a password recovery email has been sent.', 'user' => 'No matching active user found with that email.', ]; | GHSA-qpv2-jxc7-3638 | {'CWE-200'} | 4.3 | {'https://github.com/snipe/snipe-it/commit/05c0819776b07425b2831cd31a8a0f4e7ac30c09'} | osv | Exposure of Sensitive Information in snipe/snipe-it Snipe-IT prior to v5.3.10 is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor. | 2022-02-15 | 1 | https://github.com/snipe/snipe-it | https://github.com/snipe/snipe-it/commit/05c0819776b07425b2831cd31a8a0f4e7ac30c09 | 05c0819776b07425b2831cd31a8a0f4e7ac30c09 | SINGLE | ['05c0819776b07425b2831cd31a8a0f4e7ac30c09'] | {'16f963fa3d7c4875e9bccf6926629efe3530d00e'} | 05c0819776b07425b2831cd31a8a0f4e7ac30c09 | 1 | 02/11/2022, 23:55:42 | Updated language string
Signed-off-by: snipe <snipe@snipe.net> | snipe | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1,6 +1,6 @@\n <?php\n \n return [\n- 'sent'\t => 'Your password link has been sent!',\n+ 'sent'\t => 'Success: If that email address exists in our system, a password recovery email has been sent.',\n 'user'\t\t\t=>... | php | CWE-200 | [
"resources/lang/en/passwords.php"
] | resources/lang/en/passwords.php | 1 |
StringStream.prototype.write = function(data) { return false } if (this.fromEncoding) { if (Buffer.isBuffer(data)) data = data.toString() data = new Buffer(data, this.fromEncoding) } var string = this.decoder.write(data) | StringStream.prototype.write = function(data) { return false } if (this.fromEncoding) { if (Buffer.isBuffer(data) || typeof data === 'number') data = data.toString() data = new Buffer(data, this.fromEncoding) } var string = this.decoder.write(data) | GHSA-qpw2-xchm-655q | {'CWE-125'} | 6.5 | {'https://github.com/mhart/StringStream/commit/2f4a9d496f94b0880e01a26857aa266a5a3ef274'} | osv | Out-of-Bounds read in stringstream Versions less than 0.0.6 of the Node.js stringstream module are vulnerable to an out-of-bounds read because of allocation of uninitialized buffers when a number is passed in the input stream (when using Node.js 4.x).
# WITHDRAWN
This is a duplicate of GHSA-mf6x-7mm4-x2g7 | 2022-01-06 | 1 | https://github.com/mhart/StringStream | https://github.com/mhart/StringStream/commit/2f4a9d496f94b0880e01a26857aa266a5a3ef274 | 2f4a9d496f94b0880e01a26857aa266a5a3ef274 | SINGLE | ['2f4a9d496f94b0880e01a26857aa266a5a3ef274'] | {'1efe3bf507bf3a1161f8473908b60e881d41422b', 'afbc7442220358419e330618e47f3a65fc265b1b'} | 2f4a9d496f94b0880e01a26857aa266a5a3ef274 | 1 | 05/17/2018, 10:22:09 | Merge pull request #9 from mhart/fix-buffer-constructor-vuln
Ensure data is not a number in Buffer constructor | Michael Hart | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -28,7 +28,7 @@ StringStream.prototype.write = function(data) {\n return false\n }\n if (this.fromEncoding) {\n- if (Buffer.isBuffer(data)) data = data.toString()\n+ if (Buffer.isBuffer(data) || typeof data === 'number') data ... | js | CWE-125 | [
"stringstream.js"
] | stringstream.js | 1 |
public function isDangerFilename($filename){ || $isDangerStr($filename , ".asa") || $isDangerStr($filename , ".cshtml") || $isDangerStr($filename , ".axd") ) { return true; } | public function isDangerFilename($filename){ || $isDangerStr($filename , ".asa") || $isDangerStr($filename , ".cshtml") || $isDangerStr($filename , ".axd") || $isDangerStr($filename , "htm") ) { return true; } | GHSA-qq74-vgcf-54c3 | {'CWE-79'} | 5.4 | {'https://github.com/star7th/showdoc/commit/e5d575928b1371a7e07b09b6592822298335062a'} | osv | Cross-site Scripting in ShowDoc ShowDoc is vulnerable to stored cross-site scripting via viva cshtm file upload in in versions 2.10.3 and prior. A patch is available and anticipated to be part of version 2.10.4. | 2022-03-15 | 1 | https://github.com/star7th/showdoc | https://github.com/star7th/showdoc/commit/e5d575928b1371a7e07b09b6592822298335062a | e5d575928b1371a7e07b09b6592822298335062a | SINGLE | ['e5d575928b1371a7e07b09b6592822298335062a'] | {'ba45d19e1d77a7eea866dab30eff5da552694891'} | e5d575928b1371a7e07b09b6592822298335062a | 1 | 03/14/2022, 05:07:40 | bug | star7th | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -311,6 +311,7 @@ public function isDangerFilename($filename){\n \t\t\t|| $isDangerStr($filename , \".asa\")\n \t\t\t|| $isDangerStr($filename , \".cshtml\")\n \t\t\t|| $isDangerStr($filename , \".axd\")\n+\t\t\t|| $isDangerStr($filename , ... | php | CWE-79 | [
"server/Application/Api/Model/AttachmentModel.class.php"
] | server/Application/Api/Model/AttachmentModel.class.php | 1 |
func (api *PrivateDebugAPI) TraceChain(ctx context.Context, start, end rpc.Block if to == nil { return nil, fmt.Errorf("end block #%d not found", end) } return api.traceChain(ctx, from, to, config) } | func (api *PrivateDebugAPI) TraceChain(ctx context.Context, start, end rpc.Block if to == nil { return nil, fmt.Errorf("end block #%d not found", end) } if from.Number().Cmp(to.Number()) >= 0 { return nil, fmt.Errorf("end block (#%d) needs to come after start block (#%d)", end, start) } return api.traceChain(... | GHSA-qr2j-wrhx-4829 | {'CWE-20'} | 7.5 | {'https://github.com/ethereum/go-ethereum/commit/106d196ec4a6451efedc60ab15957f231fa85639'} | osv | Improper Input Validation In Go Ethereum (aka geth) before 1.8.14, TraceChain in eth/api_tracer.go does not verify that the end block is after the start block. | 2021-05-18 | 1 | https://github.com/ethereum/go-ethereum | https://github.com/ethereum/go-ethereum/commit/106d196ec4a6451efedc60ab15957f231fa85639 | 106d196ec4a6451efedc60ab15957f231fa85639 | SINGLE | ['106d196ec4a6451efedc60ab15957f231fa85639'] | {'6d1e292eefa70b5cb76cd03ff61fc6c4550d7c36'} | 106d196ec4a6451efedc60ab15957f231fa85639 | 1 | 08/21/2018, 07:48:53 | eth: ensure from<to when tracing chain (credits Chen Nan via bugbounty) | Martin Holst Swende | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -119,6 +119,9 @@ func (api *PrivateDebugAPI) TraceChain(ctx context.Context, start, end rpc.Block\n \tif to == nil {\n \t\treturn nil, fmt.Errorf(\"end block #%d not found\", end)\n \t}\n+\tif from.Number().Cmp(to.Number()) >= 0 {\n+\t\tre... | go | CWE-20 | [
"eth/api_tracer.go"
] | eth/api_tracer.go | 1 |
func (h *serverHandler) handleMsg(p *clientPeer, wg *sync.WaitGroup) error { var ( lastBHash common.Hash root common.Hash ) reqCnt := len(req.Reqs) if accept(req.ReqID, uint64(reqCnt), MaxProofsFetch) { func (h *serverHandler) handleMsg(p *clientPeer, wg *sync.WaitGroup) error { return } ... | func (h *serverHandler) handleMsg(p *clientPeer, wg *sync.WaitGroup) error { var ( lastBHash common.Hash root common.Hash header *types.Header ) reqCnt := len(req.Reqs) if accept(req.ReqID, uint64(reqCnt), MaxProofsFetch) { func (h *serverHandler) handleMsg(p *clientPeer, wg *sync.WaitGroup) e... | GHSA-r33q-22hv-j29q | {'CWE-400'} | 6.5 | {'https://github.com/ethereum/go-ethereum/commit/bddd103a9f0af27ef533f04e06ea429cf76b6d46'} | osv | Denial of service in github.com/ethereum/go-ethereum ### Impact
A DoS vulnerability can make a LES server crash via malicious `GetProofsV2` request from a connected LES client.
### Patches
The vulnerability was patched in https://github.com/ethereum/go-ethereum/pull/21896.
### Workarounds
This vulnerability only ... | 2021-06-29 | 1 | https://github.com/ethereum/go-ethereum | https://github.com/ethereum/go-ethereum/commit/bddd103a9f0af27ef533f04e06ea429cf76b6d46 | bddd103a9f0af27ef533f04e06ea429cf76b6d46 | SINGLE | ['bddd103a9f0af27ef533f04e06ea429cf76b6d46'] | {'6b5840961407960a06ed20cb5dd1b782080653ff'} | bddd103a9f0af27ef533f04e06ea429cf76b6d46 | 1 | 11/24/2020, 09:55:17 | les: fix GetProofsV2 bug (#21896) | Felföldi Zsolt | null | {'additions': 2, 'deletions': 4, 'total': 6} | [
{
"additions": 2,
"changes": 6,
"deletions": 4,
"patch": "@@ -610,6 +610,7 @@ func (h *serverHandler) handleMsg(p *clientPeer, wg *sync.WaitGroup) error {\n \t\tvar (\n \t\t\tlastBHash common.Hash\n \t\t\troot common.Hash\n+\t\t\theader *types.Header\n \t\t)\n \t\treqCnt := len(req.Reqs)\n \... | go | CWE-400 | [
"les/server_handler.go"
] | les/server_handler.go | 1 |
struct FusedBatchNorm<CPUDevice, T, U, /* is_training= */ false> { const CPUDevice& d = context->eigen_device<CPUDevice>(); const int depth = x.dimension(3); const int size = x.size(); const int rest_size = size / depth; Eigen::DSizes<Eigen::Index, 2> rest_by_depth(rest_size, depth); | struct FusedBatchNorm<CPUDevice, T, U, /* is_training= */ false> { const CPUDevice& d = context->eigen_device<CPUDevice>(); const int depth = x.dimension(3); OP_REQUIRES( context, depth != 0, errors::Internal("The 4th element in the input shape cannot be 0.")); const int size = x.size(... | GHSA-r35g-4525-29fq | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/1a2a87229d1d61e23a39373777c056161eb4084d'} | osv | Division by 0 in `FusedBatchNorm` ### Impact
An attacker can cause a denial of service via a FPE runtime error in `tf.raw_ops.FusedBatchNorm`:
```python
import tensorflow as tf
x = tf.constant([], shape=[1, 1, 1, 0], dtype=tf.float32)
scale = tf.constant([], shape=[0], dtype=tf.float32)
offset = tf.constant([], shape... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/1a2a87229d1d61e23a39373777c056161eb4084d | 1a2a87229d1d61e23a39373777c056161eb4084d | SINGLE | ['1a2a87229d1d61e23a39373777c056161eb4084d'] | {'828f346274841fa7505f7020e88ca36c22e557ab'} | 1a2a87229d1d61e23a39373777c056161eb4084d | 1 | 04/28/2021, 18:30:28 | Fix FPE issue with `tf.raw_ops.FusedBatchNorm`.
PiperOrigin-RevId: 370948185
Change-Id: If0c8e0320062ed6363e94ff5fe38e6a301f69ac2 | Amit Patankar | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -293,6 +293,9 @@ struct FusedBatchNorm<CPUDevice, T, U, /* is_training= */ false> {\n const CPUDevice& d = context->eigen_device<CPUDevice>();\n \n const int depth = x.dimension(3);\n+ OP_REQUIRES(\n+ context, depth != 0,... | cc | CWE-369 | [
"tensorflow/core/kernels/fused_batch_norm_op.cc"
] | tensorflow/core/kernels/fused_batch_norm_op.cc | 1 |
class BoostedTreesSparseCalculateBestFeatureSplitOp : public OpKernel { const int32_t feature_dim = stats_summary_indices(idx, 1); const int32_t bucket_id = stats_summary_indices(idx, 2); const int32_t stat_dim = stats_summary_indices(idx, 3); std::pair<FeatureMapIterator, bool> const& f_insert... | class BoostedTreesSparseCalculateBestFeatureSplitOp : public OpKernel { const int32_t feature_dim = stats_summary_indices(idx, 1); const int32_t bucket_id = stats_summary_indices(idx, 2); const int32_t stat_dim = stats_summary_indices(idx, 3); OP_REQUIRES(context, stat_dim < stats_dims, ... | GHSA-r4c4-5fpq-56wg | {'CWE-125'} | 7.3 | {'https://github.com/tensorflow/tensorflow/commit/e84c975313e8e8e38bb2ea118196369c45c51378'} | osv | Heap OOB in boosted trees ### Impact
An attacker can read from outside of bounds of heap allocated data by sending specially crafted illegal arguments to `BoostedTreesSparseCalculateBestFeatureSplit`:
```python
import tensorflow as tf
tf.raw_ops.BoostedTreesSparseCalculateBestFeatureSplit(
node_id_range=[0,10],
s... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/e84c975313e8e8e38bb2ea118196369c45c51378 | e84c975313e8e8e38bb2ea118196369c45c51378 | SINGLE | ['e84c975313e8e8e38bb2ea118196369c45c51378'] | {'2e0ee46f1a47675152d3d865797a18358881d7a6'} | e84c975313e8e8e38bb2ea118196369c45c51378 | 1 | 07/27/2021, 19:35:03 | In tf.raw_ops.BoostedTreesSparseCalculateBestFeatureSplit, limit stat_dim in stats_summary_indices to under stats_dims in stats_summary_shape
PiperOrigin-RevId: 387171191
Change-Id: I83ca8a75b22aa78c037e8b98779da6cced16bfaa | Laura Pak | null | {'additions': 7, 'deletions': 0, 'total': 7} | [
{
"additions": 7,
"changes": 7,
"deletions": 0,
"patch": "@@ -1050,6 +1050,13 @@ class BoostedTreesSparseCalculateBestFeatureSplitOp : public OpKernel {\n const int32_t feature_dim = stats_summary_indices(idx, 1);\n const int32_t bucket_id = stats_summary_indices(idx, 2);\n const i... | cc | CWE-125 | [
"tensorflow/core/kernels/boosted_trees/stats_ops.cc"
] | tensorflow/core/kernels/boosted_trees/stats_ops.cc | 1 |
Status ConvBackpropComputeDimensionsV2( // dimensions of the filter Tensor. VLOG(2) << "input vs filter_in depth " << dims->in_depth << " " << filter_shape.dim_size(num_dims - 2); if (dims->in_depth % filter_shape.dim_size(num_dims - 2)) { return errors::InvalidArgument( label, ": input dep... | Status ConvBackpropComputeDimensionsV2( // dimensions of the filter Tensor. VLOG(2) << "input vs filter_in depth " << dims->in_depth << " " << filter_shape.dim_size(num_dims - 2); if (filter_shape.dim_size(num_dims - 2) <= 0) { return errors ::InvalidArgument( label, ": filter depth must be... | GHSA-r4pj-74mg-8868 | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/fca9874a9b42a2134f907d2fb46ab774a831404a'} | osv | Division by 0 in `Conv2DBackpropFilter` ### Impact
An attacker can trigger a division by 0 in `tf.raw_ops.Conv2DBackpropFilter`:
```python
import tensorflow as tf
input_tensor = tf.constant([], shape=[0, 0, 1, 0], dtype=tf.float32)
filter_sizes = tf.constant([1, 1, 1, 1], shape=[4], dtype=tf.int32)
out_backprop = tf.... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/fca9874a9b42a2134f907d2fb46ab774a831404a | fca9874a9b42a2134f907d2fb46ab774a831404a | SINGLE | ['fca9874a9b42a2134f907d2fb46ab774a831404a'] | {'496c2630e51c1a478f095b084329acedb253db6b'} | fca9874a9b42a2134f907d2fb46ab774a831404a | 1 | 04/20/2021, 00:33:11 | Prevent another division by zero.
PiperOrigin-RevId: 369338598
Change-Id: I55471d363e401fdcf8d259670ad4eef672b731e2 | Mihai Maruseac | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -127,6 +127,10 @@ Status ConvBackpropComputeDimensionsV2(\n // dimensions of the filter Tensor.\n VLOG(2) << \"input vs filter_in depth \" << dims->in_depth << \" \"\n << filter_shape.dim_size(num_dims - 2);\n+ if (filter_sh... | cc | CWE-369 | [
"tensorflow/core/kernels/conv_grad_shape_utils.cc"
] | tensorflow/core/kernels/conv_grad_shape_utils.cc | 1 |
module Kaminari module Helpers PARAM_KEY_EXCEPT_LIST = [:authenticity_token, :commit, :utf8, :_method, :script_name].freeze # A tag stands for an HTML tag inside the paginator. # Basically, a tag has its own partial template file, so every tag can be | module Kaminari module Helpers PARAM_KEY_EXCEPT_LIST = [:authenticity_token, :commit, :utf8, :_method, :script_name, :original_script_name].freeze # A tag stands for an HTML tag inside the paginator. # Basically, a tag has its own partial template file, so every tag can be | GHSA-r5jw-62xg-j433 | {'CWE-79'} | 6.4 | {'https://github.com/kaminari/kaminari/commit/8dd52a1aed3d2fa2835d836de23fc0d8c4ff5db8'} | osv | Cross-Site Scripting in Kaminari ### Impact
In Kaminari before 1.2.1, there is a vulnerability that would allow an attacker to inject arbitrary code into pages with pagination links. This has been fixed in 1.2.1.
### Releases
The 1.2.1 gem including the patch has already been released.
All past released versions are a... | 2020-05-28 | 1 | https://github.com/kaminari/kaminari | https://github.com/kaminari/kaminari/commit/8dd52a1aed3d2fa2835d836de23fc0d8c4ff5db8 | 8dd52a1aed3d2fa2835d836de23fc0d8c4ff5db8 | SINGLE | ['8dd52a1aed3d2fa2835d836de23fc0d8c4ff5db8'] | {'04d86ed3f2537aff620941413e5fca254e87aebe'} | 8dd52a1aed3d2fa2835d836de23fc0d8c4ff5db8 | 1 | 04/21/2020, 21:02:59 | Blacklist "original_script_name" get param | Daniel Mircea | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -2,7 +2,7 @@\n \n module Kaminari\n module Helpers\n- PARAM_KEY_EXCEPT_LIST = [:authenticity_token, :commit, :utf8, :_method, :script_name].freeze\n+ PARAM_KEY_EXCEPT_LIST = [:authenticity_token, :commit, :utf8, :_method, :script_n... | rb | CWE-79 | [
"kaminari-core/lib/kaminari/helpers/tags.rb"
] | kaminari-core/lib/kaminari/helpers/tags.rb | 1 |
impl<T: Sized> Drop for AtomicBox<T> { } } unsafe impl<T: Sized> Sync for AtomicBox<T> {} unsafe impl<T: Sized> Send for AtomicBox<T> {} #[cfg(test)] mod tests { | impl<T: Sized> Drop for AtomicBox<T> { } } unsafe impl<T: Sized + Sync> Sync for AtomicBox<T> {} unsafe impl<T: Sized + Send> Send for AtomicBox<T> {} #[cfg(test)] mod tests { | GHSA-r626-fc64-3q28 | {'CWE-362', 'CWE-119'} | 8.1 | {'https://github.com/SonicFrog/abox/commit/34c2b9e51cd7b85a3366104092ca4e5e9fab227d'} | osv | Data race in abox An issue was discovered in the abox crate before 0.4.1 for Rust.
Affected versions of this crate implements `Send`/`Sync` for `AtomicBox<T>` without requiring `T: Send`/`T: Sync`. This allows to create data races to `T: !Sync` and send `T: !Send` to another thread.
Such behavior breaks the compile-... | 2021-08-25 | 1 | https://github.com/SonicFrog/abox | https://github.com/SonicFrog/abox/commit/34c2b9e51cd7b85a3366104092ca4e5e9fab227d | 34c2b9e51cd7b85a3366104092ca4e5e9fab227d | SINGLE | ['34c2b9e51cd7b85a3366104092ca4e5e9fab227d'] | {'5abe75222bc49af6b62ea37f87d7be0c56973310'} | 34c2b9e51cd7b85a3366104092ca4e5e9fab227d | 1 | 01/23/2021, 02:40:32 | send/sync fix to prevent misuse | JOE1994 | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -89,8 +89,8 @@ impl<T: Sized> Drop for AtomicBox<T> {\n }\n }\n \n-unsafe impl<T: Sized> Sync for AtomicBox<T> {}\n-unsafe impl<T: Sized> Send for AtomicBox<T> {}\n+unsafe impl<T: Sized + Sync> Sync for AtomicBox<T> {}\n+unsafe impl<T:... | rs | CWE-362 | [
"src/lib.rs"
] | src/lib.rs | 1 |
impl<T: Sized> Drop for AtomicBox<T> { } } unsafe impl<T: Sized> Sync for AtomicBox<T> {} unsafe impl<T: Sized> Send for AtomicBox<T> {} #[cfg(test)] mod tests { | impl<T: Sized> Drop for AtomicBox<T> { } } unsafe impl<T: Sized + Sync> Sync for AtomicBox<T> {} unsafe impl<T: Sized + Send> Send for AtomicBox<T> {} #[cfg(test)] mod tests { | GHSA-r626-fc64-3q28 | {'CWE-362', 'CWE-119'} | 8.1 | {'https://github.com/SonicFrog/abox/commit/34c2b9e51cd7b85a3366104092ca4e5e9fab227d'} | osv | Data race in abox An issue was discovered in the abox crate before 0.4.1 for Rust.
Affected versions of this crate implements `Send`/`Sync` for `AtomicBox<T>` without requiring `T: Send`/`T: Sync`. This allows to create data races to `T: !Sync` and send `T: !Send` to another thread.
Such behavior breaks the compile-... | 2021-08-25 | 1 | https://github.com/SonicFrog/abox | https://github.com/SonicFrog/abox/commit/34c2b9e51cd7b85a3366104092ca4e5e9fab227d | 34c2b9e51cd7b85a3366104092ca4e5e9fab227d | SINGLE | ['34c2b9e51cd7b85a3366104092ca4e5e9fab227d'] | {'5abe75222bc49af6b62ea37f87d7be0c56973310'} | 34c2b9e51cd7b85a3366104092ca4e5e9fab227d | 1 | 01/23/2021, 02:40:32 | send/sync fix to prevent misuse | JOE1994 | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -89,8 +89,8 @@ impl<T: Sized> Drop for AtomicBox<T> {\n }\n }\n \n-unsafe impl<T: Sized> Sync for AtomicBox<T> {}\n-unsafe impl<T: Sized> Send for AtomicBox<T> {}\n+unsafe impl<T: Sized + Sync> Sync for AtomicBox<T> {}\n+unsafe impl<T:... | rs | CWE-119 | [
"src/lib.rs"
] | src/lib.rs | 1 |
void SparseFillEmptyRowsOpImpl(OpKernelContext* context, default_value_t.shape().DebugString()), done); // TODO(ebrevdo): add shape checks between values, indices, // dense_shape. Also add check that dense rank > 0. using FunctorType = functor::SparseFillEmptyRows<Device, T,... | void SparseFillEmptyRowsOpImpl(OpKernelContext* context, default_value_t.shape().DebugString()), done); // TODO(ebrevdo): add shape checks between values, indices, // Also add check that dense rank > 0. OP_REQUIRES_ASYNC(context, dense_shape_t.NumElements() != 0, ... | GHSA-r6pg-pjwc-j585 | {'CWE-476'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/faa76f39014ed3b5e2c158593b1335522e573c7f'} | osv | Null pointer dereference in `SparseFillEmptyRows` ### Impact
An attacker can trigger a null pointer dereference in the implementation of `tf.raw_ops.SparseFillEmptyRows`:
```python
import tensorflow as tf
indices = tf.constant([], shape=[0, 0], dtype=tf.int64)
values = tf.constant([], shape=[0], dtype=tf.int64)
dense... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/faa76f39014ed3b5e2c158593b1335522e573c7f | faa76f39014ed3b5e2c158593b1335522e573c7f | SINGLE | ['faa76f39014ed3b5e2c158593b1335522e573c7f'] | {'fdc82089d206e281c628a93771336bf87863d5e8'} | faa76f39014ed3b5e2c158593b1335522e573c7f | 1 | 05/04/2021, 22:35:39 | Fix heap-buffer-overflow issue with `tf.raw_ops.SparseFillEmptyRows`.
PiperOrigin-RevId: 372009178
Change-Id: Ia1a9e9691ecaa072f32fb39a0887b2aabd399210 | Amit Patankar | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -228,7 +228,10 @@ void SparseFillEmptyRowsOpImpl(OpKernelContext* context,\n default_value_t.shape().DebugString()),\n done);\n // TODO(ebrevdo): add shape checks between values, indices,\n- // dense_... | cc | CWE-476 | [
"tensorflow/core/kernels/sparse_fill_empty_rows_op.cc"
] | tensorflow/core/kernels/sparse_fill_empty_rows_op.cc | 1 |
var join = require('path').join; var sprintf = require('util').format; module.exports = function(image, output, cb) { var cmd = module.exports.cmd(image, output); exec(cmd, {timeout: 30000}, function(e, stdout, stderr) { if (e) { return cb(e); } if (stderr) { return cb(new Error(stderr)); } return cb... | var join = require('path').join; var sprintf = require('util').format; module.exports = function(image, output, cb) { if(/;|&|`|\$|\(|\)|\|\||\||!|>|<|\?|\${/g.test(JSON.stringify(image))) { console.log('Input Validation failed, Suspicious Characters found'); } else { var cmd = module.exports.cmd(image, out... | GHSA-r9vm-rhmf-7hxx | {'CWE-78'} | 9.8 | {'https://github.com/Turistforeningen/node-im-resize/commit/de624dacf6a50e39fe3472af1414d44937ce1f03'} | osv | OS Command Injection in im-resize im-resize through 2.3.2 allows remote attackers to execute arbitrary commands via the "exec" argument. The cmd argument used within index.js, can be controlled by user without any sanitization. | 2021-04-13 | 1 | https://github.com/Turistforeningen/node-im-resize | https://github.com/Turistforeningen/node-im-resize/commit/de624dacf6a50e39fe3472af1414d44937ce1f03 | de624dacf6a50e39fe3472af1414d44937ce1f03 | SINGLE | ['de624dacf6a50e39fe3472af1414d44937ce1f03'] | {'499fe82028337ae55cb61c24696c1ec16f0f9c9a'} | de624dacf6a50e39fe3472af1414d44937ce1f03 | 1 | 02/03/2020, 21:25:54 | fix: check image arguments before processing (#19)
Regex hotfix to check for command injection | Sam Sanoop | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -7,13 +7,17 @@ var join = require('path').join;\n var sprintf = require('util').format;\n \n module.exports = function(image, output, cb) {\n+ if(/;|&|`|\\$|\\(|\\)|\\|\\||\\||!|>|<|\\?|\\${/g.test(JSON.stringify(image))) {\n+ console.... | js | CWE-78 | [
"index.js"
] | index.js | 1 |
internals.marshal = function (request, next) { // Weak verifier const ifModifiedSince = Date.parse(ifModifiedSinceHeader); const lastModified = Date.parse(lastModifiedHeader); if (ifModifiedSince && lastModified && internals.marshal... | internals.marshal = function (request, next) { // Weak verifier const ifModifiedSince = internals.parseDate(ifModifiedSinceHeader); const lastModified = internals.parseDate(lastModifiedHeader); if (ifModifiedSince && lastModified &&... | GHSA-rc8h-3fv6-pxv8 | {'CWE-400'} | 0 | {'https://github.com/hapijs/hapi/commit/aab2496e930dce5ee1ab28eecec94e0e45f03580'} | osv | Denial of Service in hapi Versions of `hapi` prior to 11.1.3 are affected by a denial of service vulnerability.
The vulnerability is triggered when certain input is passed into the If-Modified-Since or Last-Modified headers.
This causes an 'illegal access' exception to be raised, and instead of sending a HTTP 500 err... | 2018-06-07 | 1 | https://github.com/hapijs/hapi | https://github.com/hapijs/hapi/commit/aab2496e930dce5ee1ab28eecec94e0e45f03580 | aab2496e930dce5ee1ab28eecec94e0e45f03580 | SINGLE | ['aab2496e930dce5ee1ab28eecec94e0e45f03580'] | {'1ad65ba793377928aa5a2dfc819888c5c9793394', 'ef2a0f85d558eeb102c512fac45386b2145cb903'} | aab2496e930dce5ee1ab28eecec94e0e45f03580 | 1 | 12/23/2015, 21:54:47 | Merge pull request #2988 from hapijs/v11.1.x
Handle invalid date exceptions | Eran Hammer | null | {'additions': 11, 'deletions': 2, 'total': 13} | [
{
"additions": 11,
"changes": 13,
"deletions": 2,
"patch": "@@ -82,8 +82,8 @@ internals.marshal = function (request, next) {\n \n // Weak verifier\n \n- const ifModifiedSince = Date.parse(ifModifiedSinceHeader);\n- const lastModified = Date.parse(lastMod... | js | CWE-400 | [
"lib/transmit.js"
] | lib/transmit.js | 1 |
*/ package org.eclipse.hawkbit.app; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Error page controller that ensures that ocet stream does not return text in * case of an error. * */ @Controller // Exception squid:S3752 - errors need handling for all methods ... | */ package org.eclipse.hawkbit.app; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Error page controller that ensures that ocet stream does not return text in * case of an error. */ @Controller // Exception squid:S3752 - errors need handl... | GHSA-rcvx-rmvf-mxch | {'CWE-79'} | 6.1 | {'https://github.com/eclipse/hawkbit/commit/94b7c12cde1b38eda5414bd88d6d068008cfb9f9'} | osv | Cross-site Scripting in Eclipse Hawkbit In all version of Eclipse Hawkbit prior to 0.3.0M7, the HTTP 404 (Not Found) JSON response body returned by the REST API may contain unsafe characters within the path attribute. Sending a POST request to a non existing resource will return the full path from the given URL unescap... | 2022-02-09 | 1 | https://github.com/eclipse/hawkbit | https://github.com/eclipse/hawkbit/commit/94b7c12cde1b38eda5414bd88d6d068008cfb9f9 | 94b7c12cde1b38eda5414bd88d6d068008cfb9f9 | SINGLE | ['94b7c12cde1b38eda5414bd88d6d068008cfb9f9'] | {'8816396d18880d2020743ce2e83a08446449d0db'} | 94b7c12cde1b38eda5414bd88d6d068008cfb9f9 | 1 | 01/12/2021, 10:56:44 | Fixes #1067
JSON body response for HTTP 404 error may contain unsafe URL path characters. Thus removing path from the response
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io> | Dominic Schabel | null | {'additions': 22, 'deletions': 4, 'total': 26} | [
{
"additions": 22,
"changes": 26,
"deletions": 4,
"patch": "@@ -8,6 +8,8 @@\n */\n package org.eclipse.hawkbit.app;\n \n+import java.util.Map;\n+\n import javax.servlet.http.HttpServletRequest;\n import javax.servlet.http.HttpServletResponse;\n \n@@ -23,22 +25,23 @@\n /**\n * Error page controller... | java | CWE-79 | [
"hawkbit-runtime/hawkbit-update-server/src/main/java/org/eclipse/hawkbit/app/ErrorController.java"
] | hawkbit-runtime/hawkbit-update-server/src/main/java/org/eclipse/hawkbit/app/ErrorController.java | 1 |
TfLiteStatus ComputeDepthMultiplier(TfLiteContext* context, int16* depth_multiplier) { int num_filter_channels = SizeOfDimension(filter, 3); int num_input_channels = SizeOfDimension(input, 3); TF_LITE_ENSURE_EQ(context, num_filter_channels % num_input_channels, 0); *depth_m... | TfLiteStatus ComputeDepthMultiplier(TfLiteContext* context, int16* depth_multiplier) { int num_filter_channels = SizeOfDimension(filter, 3); int num_input_channels = SizeOfDimension(input, 3); TF_LITE_ENSURE(context, num_input_channels != 0); TF_LITE_ENSURE_EQ(context, num_f... | GHSA-rf3h-xgv5-2q39 | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/cbda3c6b2dbbd3fbdc482ff8c0170a78ec2e97d0'} | osv | Division by zero in TFLite's implementation of `DepthwiseConv` ### Impact
The implementation of the `DepthwiseConv` TFLite operator is [vulnerable to a division by zero error](https://github.com/tensorflow/tensorflow/blob/1a8e885b864c818198a5b2c0cbbeca5a1e833bc8/tensorflow/lite/kernels/depthwise_conv.cc#L287-L288):
``... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/cbda3c6b2dbbd3fbdc482ff8c0170a78ec2e97d0 | cbda3c6b2dbbd3fbdc482ff8c0170a78ec2e97d0 | SINGLE | ['cbda3c6b2dbbd3fbdc482ff8c0170a78ec2e97d0'] | {'1a8e885b864c818198a5b2c0cbbeca5a1e833bc8'} | cbda3c6b2dbbd3fbdc482ff8c0170a78ec2e97d0 | 1 | 04/28/2021, 22:53:48 | Prevent divisions by 0
PiperOrigin-RevId: 371003153
Change-Id: Idef56c95b9fcaeb97f87e18c7a674dbeb5173204 | Mihai Maruseac | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -285,8 +285,8 @@ TfLiteStatus ComputeDepthMultiplier(TfLiteContext* context,\n int16* depth_multiplier) {\n int num_filter_channels = SizeOfDimension(filter, 3);\n int num_input_channels = SizeOfDime... | cc | CWE-369 | [
"tensorflow/lite/kernels/depthwise_conv.cc"
] | tensorflow/lite/kernels/depthwise_conv.cc | 1 |
$(document).ready(function () { } function formatDataSelection (datalist) { return datalist.text; } // This handles the radio button selectors for the checkout-to-foo options | $(document).ready(function () { } function formatDataSelection (datalist) { // This a heinous workaround for a known bug in Select2. // Without this, the rich selectlists are vulnerable to XSS. // Many thanks to @uberbrady for this fix. It ain't pretty, // but it resolves the i... | GHSA-rf66-hmqf-q3fc | {'CWE-79'} | 6.1 | {'https://github.com/snipe/snipe-it/pull/6831/commits/5848d9a10c7d62c73ff6a3858edfae96a429402a'} | osv | Improper Neutralization of Input During Web Page Generation in Select2 In Select2 through 4.0.5, as used in Snipe-IT and other products, rich selectlists allow XSS. This affects use cases with Ajax remote data loading when HTML templates are used to display listbox data. | 2022-05-14 | 1 | https://github.com/snipe/snipe-it | https://github.com/snipe/snipe-it/pull/6831/commits/5848d9a10c7d62c73ff6a3858edfae96a429402a | 5848d9a10c7d62c73ff6a3858edfae96a429402a | SINGLE | ['5848d9a10c7d62c73ff6a3858edfae96a429402a'] | {'bd8548325d6b4210015bd0ddeb144c61ae8949be'} | 5848d9a10c7d62c73ff6a3858edfae96a429402a | 1 | 03/19/2019, 02:29:30 | Janky fix for Select2 bug | snipe | null | {'additions': 12, 'deletions': 1, 'total': 13} | [
{
"additions": 12,
"changes": 13,
"deletions": 1,
"patch": "@@ -260,7 +260,18 @@ $(document).ready(function () {\n }\n \n function formatDataSelection (datalist) {\n- return datalist.text;\n+ // This a heinous workaround for a known bug in Select2.\n+ // Without this, th... | js | CWE-79 | [
"resources/assets/js/snipeit.js"
] | resources/assets/js/snipeit.js | 1 |
var oncall = { }, footer: function(resp){ if (teamsCt > typeaheadLimit) { return '<div class="tt-see-all"><a href="/query/' + resp.query + '/teams" data-navigo> See all ' + teamsCt + ' results for teams »</a></div>'; } }, ... | var oncall = { }, footer: function(resp){ if (teamsCt > typeaheadLimit) { return '<div class="tt-see-all"><a href="/query/' + Handlebars.escapeExpression(encodeURIComponent(resp.query)) + '/teams" data-navigo> See all ' + teamsCt + ' results for teams »</a>... | GHSA-rfw2-x9f8-2f6m | {'CWE-79'} | 0 | {'https://github.com/linkedin/oncall/commit/843bc106a1c1b1699e9e52b6b0d01c7efe1d6225'} | osv | Cross-Site Scripting LinkedIn Oncall through 1.4.0 allows reflected XSS via /query because of mishandling of the "No results found for" message in the search bar. | 2021-04-30 | 1 | https://github.com/linkedin/oncall | https://github.com/linkedin/oncall/commit/843bc106a1c1b1699e9e52b6b0d01c7efe1d6225 | 843bc106a1c1b1699e9e52b6b0d01c7efe1d6225 | SINGLE | ['843bc106a1c1b1699e9e52b6b0d01c7efe1d6225'] | {'605d10ef5d68181b2c516dc857fdc3c8575539cd'} | 843bc106a1c1b1699e9e52b6b0d01c7efe1d6225 | 1 | 02/05/2021, 23:30:43 | prevent potential XSS from searchbar results (#342)
* prevent potential XSS from searchbar results
* use built in handlebars expression escaping
* use handlebars encodeURIComponent | Diego Cepeda | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -579,11 +579,11 @@ var oncall = {\n },\n footer: function(resp){\n if (teamsCt > typeaheadLimit) {\n- return '<div class=\"tt-see-all\"><a href=\"/query/' + resp.query + '/teams\... | js | CWE-79 | [
"src/oncall/ui/static/js/oncall.js"
] | src/oncall/ui/static/js/oncall.js | 1 |
limitations under the License. #include <vector> #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/register_types.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_util.h" #include "tensorflow/core/framework/types.h" #include "tensorflow/cor... | limitations under the License. #include <vector> #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/op_requires.h" #include "tensorflow/core/framework/register_types.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_util.h" #include "tensorfl... | GHSA-rg3m-hqc5-344v | {'CWE-125'} | 7.1 | {'https://github.com/tensorflow/tensorflow/commit/67bfd9feeecfb3c61d80f0e46d89c170fbee682b'} | osv | `SparseFillEmptyRows` heap OOB ### Impact
The [implementation](https://github.com/tensorflow/tensorflow/blob/e71b86d47f8bc1816bf54d7bddc4170e47670b97/tensorflow/core/kernels/sparse_fill_empty_rows_op.cc#L194-L241) of `SparseFillEmptyRows` can be made to trigger a heap OOB access:
```python
import tensorflow as tf
d... | 2021-11-10 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/67bfd9feeecfb3c61d80f0e46d89c170fbee682b | 67bfd9feeecfb3c61d80f0e46d89c170fbee682b | SINGLE | ['67bfd9feeecfb3c61d80f0e46d89c170fbee682b'] | {'421fba8888bb8f8724bc2e35ca2fdcde16e1bfe5'} | 67bfd9feeecfb3c61d80f0e46d89c170fbee682b | 1 | 09/30/2021, 17:44:33 | Make SparseFillEmptyRows validate that the length of `values` must be equal to the number of index tuples.
PiperOrigin-RevId: 399969549
Change-Id: I3c2f2ca1c1d2cc88bb5951c6958b38c16e9436c8 | Penporn Koanantakool | null | {'additions': 8, 'deletions': 0, 'total': 8} | [
{
"additions": 8,
"changes": 8,
"deletions": 0,
"patch": "@@ -24,11 +24,13 @@ limitations under the License.\n #include <vector>\n \n #include \"tensorflow/core/framework/op_kernel.h\"\n+#include \"tensorflow/core/framework/op_requires.h\"\n #include \"tensorflow/core/framework/register_types.h\"\n ... | cc | CWE-125 | [
"tensorflow/core/kernels/sparse_fill_empty_rows_op.cc"
] | tensorflow/core/kernels/sparse_fill_empty_rows_op.cc | 1 |
public Resource getResource(final String p) { log.tracef("Failed to get path resource %s from path resource manager with base %s, as the path did not exist", p, base); return null; } } catch (Exception e) { UndertowLogger.REQUEST_LOGGER.debugf(e, "Invalid... | public Resource getResource(final String p) { log.tracef("Failed to get path resource %s from path resource manager with base %s, as the path did not exist", p, base); return null; } } catch (IOException e) { UndertowLogger.REQUEST_LOGGER.debugf(e, "Inval... | GHSA-rhcw-wjcm-9h6g | {'CWE-400'} | 7.5 | {'https://github.com/undertow-io/undertow/pull/997/commits/98a9ab7f2d7fe7a7254eaf17d47816c452169c90'} | osv | Denial of service in Undertow A flaw was found in the Undertow AJP connector. Malicious requests and abrupt connection closes could be triggered by an attacker using query strings with non-RFC compliant characters resulting in a denial of service. The highest threat from this vulnerability is to system availability. Th... | 2022-02-09 | 1 | https://github.com/undertow-io/undertow | https://github.com/undertow-io/undertow/pull/997/commits/98a9ab7f2d7fe7a7254eaf17d47816c452169c90 | 98a9ab7f2d7fe7a7254eaf17d47816c452169c90 | SINGLE | ['98a9ab7f2d7fe7a7254eaf17d47816c452169c90'] | {'47dc5e37cb20d8eeb4d4f632fe959d436f86128a'} | 98a9ab7f2d7fe7a7254eaf17d47816c452169c90 | 1 | 11/29/2020, 13:24:40 | UNDERTOW-1813 Make PathResourceManager.getResource rethrow a SecurityException | Boris Unckel | null | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -230,9 +230,15 @@ public Resource getResource(final String p) {\n log.tracef(\"Failed to get path resource %s from path resource manager with base %s, as the path did not exist\", p, base);\n return null;\n ... | java | CWE-400 | [
"core/src/main/java/io/undertow/server/handlers/resource/PathResourceManager.java"
] | core/src/main/java/io/undertow/server/handlers/resource/PathResourceManager.java | 1 |
def interpret(): @app.route("/file/<path:path>", methods=["GET"]) @login_check def file(path): path = secure_filename(path) if app.interface.encrypt and isinstance(app.interface.examples, str) and path.startswith(app.interface.examples): with open(os.path.join(app.cwd, path), "rb") as encrypted_file: ... | def interpret(): @app.route("/file/<path:path>", methods=["GET"]) @login_check def file(path): if app.interface.encrypt and isinstance(app.interface.examples, str) and path.startswith(app.interface.examples): with open(safe_join(app.cwd, path), "rb") as encrypted_file: encrypted_data = encrypte... | GHSA-rhq2-3vr9-6mcr | {'CWE-22'} | 8.3 | {'https://github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781'} | osv | Files on the host computer can be accessed from the Gradio interface ### Impact
This is a vulnerability that affects anyone who creates and publicly shares Gradio interfaces using `gradio<2.4.8`. Because of the way that static files were being served, someone who generated a public Gradio link and shared it with others... | 2022-01-21 | 1 | https://github.com/gradio-app/gradio | https://github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781 | 41bd3645bdb616e1248b2167ca83636a2653f781 | SINGLE | ['41bd3645bdb616e1248b2167ca83636a2653f781'] | {'0b2c4901a63b2e5a7d7b3964d27b8f82d6d330e1'} | 41bd3645bdb616e1248b2167ca83636a2653f781 | 1 | 12/14/2021, 21:01:55 | secure path hotfix | Ali Abid | null | {'additions': 2, 'deletions': 3, 'total': 5} | [
{
"additions": 2,
"changes": 5,
"deletions": 3,
"patch": "@@ -377,15 +377,14 @@ def interpret():\n @app.route(\"/file/<path:path>\", methods=[\"GET\"])\n @login_check\n def file(path):\n- path = secure_filename(path)\n if app.interface.encrypt and isinstance(app.interface.examples, str) and p... | py | CWE-22 | [
"gradio/networking.py"
] | gradio/networking.py | 1 |
TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { TF_LITE_ENSURE_OK(context, GetOutputSafe(context, node, kOutputTensor, &output)); if (output->type == kTfLiteFloat32 || output->type == kTfLiteInt32) { EvalDiv<kernel_type>(context, node, params, data, input1, input2, output); ... | TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { TF_LITE_ENSURE_OK(context, GetOutputSafe(context, node, kOutputTensor, &output)); // TODO(b/193904910): This can written with C++ templates #define TF_LITE_CHECK_DIV_NON_ZERO(data_type) \ const auto* input2_d... | GHSA-rhrq-64mq-hf9h | {'CWE-369'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/1e206baedf8bef0334cca3eb92bab134ef525a28'} | osv | FPE in TFLite division operations ### Impact
The implementation of division in TFLite is [vulnerable to a division by 0 error](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/lite/kernels/div.cc)
There is no check that the divisor tensor does not contain zero elements.... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/1e206baedf8bef0334cca3eb92bab134ef525a28 | 1e206baedf8bef0334cca3eb92bab134ef525a28 | SINGLE | ['1e206baedf8bef0334cca3eb92bab134ef525a28'] | {'9579070c3fe96b4ed3b07c1b294c7a402250fb43'} | 1e206baedf8bef0334cca3eb92bab134ef525a28 | 1 | 07/16/2021, 21:23:21 | Prevent a division by 0 in division ops.
PiperOrigin-RevId: 385223169
Change-Id: Ia4228960b5d2aa44480385f74bdd70d21a3613c3 | Mihai Maruseac | null | {'additions': 16, 'deletions': 1, 'total': 17} | [
{
"additions": 16,
"changes": 17,
"deletions": 1,
"patch": "@@ -216,9 +216,23 @@ TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {\n TF_LITE_ENSURE_OK(context,\n GetOutputSafe(context, node, kOutputTensor, &output));\n \n- if (output->type == kTfLiteFloat32 || outp... | cc | CWE-369 | [
"tensorflow/lite/kernels/div.cc"
] | tensorflow/lite/kernels/div.cc | 1 |
import type { IObjectOf } from "@thi.ng/api"; import { maybeParseFloat, maybeParseInt, unescape } from "@thi.ng/strings"; import { base64Decode } from "@thi.ng/transducers-binary"; import { execSync } from "child_process"; import { readFileSync } from "fs"; import { resolve as resolvePath } from "path"; import { IS_NO... | import type { IObjectOf } from "@thi.ng/api"; import { maybeParseFloat, maybeParseInt, unescape } from "@thi.ng/strings"; import { base64Decode } from "@thi.ng/transducers-binary"; import { execFileSync } from "child_process"; import { readFileSync } from "fs"; import { resolve as resolvePath } from "path"; import { I... | GHSA-rj44-gpjc-29r7 | {'CWE-78'} | 6.4 | {'https://github.com/thi-ng/umbrella/commit/88f61656e5f5cfba960013b8133186389efaf243'} | osv | [thi.ng/egf] Potential arbitrary code execution of `#gpg`-tagged property values ### Impact
Potential for arbitrary code execution in `#gpg`-tagged property values (only if `decrypt: true` option is enabled)
### Patches
[A fix](https://github.com/thi-ng/umbrella/commit/3e14765d6bfd8006742c9e7860bc7d58ae94dfa5) has a... | 2021-04-06 | 1 | https://github.com/thi-ng/umbrella | https://github.com/thi-ng/umbrella/commit/88f61656e5f5cfba960013b8133186389efaf243 | 88f61656e5f5cfba960013b8133186389efaf243 | SINGLE | ['88f61656e5f5cfba960013b8133186389efaf243'] | {'c3f5ec12f324a4e627b26dc45d480c0e761602ea', '3e14765d6bfd8006742c9e7860bc7d58ae94dfa5'} | 88f61656e5f5cfba960013b8133186389efaf243 | 1 | 03/27/2021, 08:52:42 | Merge pull request from GHSA-rj44-gpjc-29r7
fix(egf): update GPG invocation to avoid arb code exec | Karsten Schmidt | null | {'additions': 4, 'deletions': 2, 'total': 6} | [
{
"additions": 4,
"changes": 6,
"deletions": 2,
"patch": "@@ -1,7 +1,7 @@\n import type { IObjectOf } from \"@thi.ng/api\";\n import { maybeParseFloat, maybeParseInt, unescape } from \"@thi.ng/strings\";\n import { base64Decode } from \"@thi.ng/transducers-binary\";\n-import { execSync } from \"chil... | ts | CWE-78 | [
"packages/egf/src/tags.ts"
] | packages/egf/src/tags.ts | 1 |
def handle_request(client, lines, requests) end ensure uncork_socket io body.close client.tempfile.unlink if client.tempfile res_body.close if res_body.respond_to? :close after_reply.each { |o| o.call } end | def handle_request(client, lines, requests) end ensure begin uncork_socket io body.close client.tempfile.unlink if client.tempfile ensure # Whatever happens, we MUST call `close` on the response body. # Otherwise Rack::BodyProxy callback... | GHSA-rmj8-8hhh-gv5h | {'CWE-200'} | 8 | {'https://github.com/puma/puma/commit/b70f451fe8abc0cff192c065d549778452e155bb'} | osv | Information Exposure when using Puma with Rails ### Impact
Prior to `puma` version `5.6.2`, `puma` may not always call `close` on the response body. Rails, prior to version `7.0.2.2`, depended on the response body being closed in order for its `CurrentAttributes` implementation to work correctly.
From Rails:
> Under ... | 2022-02-11 | 1 | https://github.com/puma/puma | https://github.com/puma/puma/commit/b70f451fe8abc0cff192c065d549778452e155bb | b70f451fe8abc0cff192c065d549778452e155bb | SINGLE | ['b70f451fe8abc0cff192c065d549778452e155bb'] | {'15dd1166ac0750e74720fecee7904e6069ad6d7f'} | b70f451fe8abc0cff192c065d549778452e155bb | 1 | 02/11/2022, 14:58:08 | Ensure `close` is called on the response body no matter what
Another fallout from https://github.com/puma/puma/pull/2809 is that
in some cases the `res_body.close` wasn't called because some previous code
raised.
For Rails apps it means CurrentAttributes and a few other important
states aren't reset properly.
This i... | Jean Boussier | null | {'additions': 10, 'deletions': 5, 'total': 15} | [
{
"additions": 10,
"changes": 15,
"deletions": 5,
"patch": "@@ -171,11 +171,16 @@ def handle_request(client, lines, requests)\n end\n \n ensure\n- uncork_socket io\n-\n- body.close\n- client.tempfile.unlink if client.tempfile\n- res_body.close if res_body.re... | rb | CWE-200 | [
"lib/puma/request.rb"
] | lib/puma/request.rb | 1 |
$status = 'ok'; $message = ''; $transport_id = $vars['transport_id']; $name = $vars['name']; $is_default = (int) (isset($vars['is_default']) && $vars['is_default'] == 'on'); $transport_type = $vars['transport-type']; if (empty($name)) { $status = 'error'; | $status = 'ok'; $message = ''; $transport_id = strip_tags($vars['transport_id']); $name = strip_tags($vars['name']); $is_default = (int) (isset($vars['is_default']) && $vars['is_default'] == 'on'); $transport_type = strip_tags($vars['transport-type']); if (empty($name)) { $status = 'error'; | GHSA-rp34-85x3-3764 | {'CWE-79'} | 6.1 | {'https://github.com/librenms/librenms/commit/135717a9a05c5bf8921f1389cbb469dcbf300bfd'} | osv | Cross-site Scripting in librenms Cross-site Scripting (XSS) - Generic in Packagist librenms/librenms prior to 22.1.0. | 2022-02-15 | 1 | https://github.com/librenms/librenms | https://github.com/librenms/librenms/commit/135717a9a05c5bf8921f1389cbb469dcbf300bfd | 135717a9a05c5bf8921f1389cbb469dcbf300bfd | SINGLE | ['135717a9a05c5bf8921f1389cbb469dcbf300bfd'] | {'c7b63b574f31efdeaa376d1a1cc0e7da681cba9f'} | 135717a9a05c5bf8921f1389cbb469dcbf300bfd | 1 | 02/13/2022, 10:00:56 | security - XSS Fix 01
fixing https://huntr.dev/bounties/114ba055-a2f0-4db9-aafb-95df944ba177/ (#13775) | PipoCanaja | null | {'additions': 3, 'deletions': 3, 'total': 6} | [
{
"additions": 3,
"changes": 6,
"deletions": 3,
"patch": "@@ -34,10 +34,10 @@\n $status = 'ok';\n $message = '';\n \n-$transport_id = $vars['transport_id'];\n-$name = $vars['name'];\n+$transport_id = strip_tags($vars['transport_id']);\n+$name = strip_tags($vars['name']);\n $is_default = (int) (isset... | php | CWE-79 | [
"includes/html/forms/alert-transports.inc.php"
] | includes/html/forms/alert-transports.inc.php | 1 |
public function isDangerFilename($filename){ public function isAllowedFilename($filename){ $allow_array = array( '.jpg','.jpeg','.png','.bmp','.gif','.ico','.webp', '.mp3','.wav','.m4a','.ogg','.webma','.mp4','.flv', '.mov','.webmv','.flac','.mkv', '.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso',... | public function isDangerFilename($filename){ public function isAllowedFilename($filename){ $allow_array = array( '.jpg','.jpeg','.png','.bmp','.gif','.ico','.webp', '.mp3','.wav','.mp4', '.mov','.webmv','.flac','.mkv', '.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso', '.pdf','.ofd','.swf','.epu... | GHSA-rphc-h572-2x9f | {'CWE-434', 'CWE-79'} | 9 | {'https://github.com/star7th/showdoc/commit/92bc6a83a3a60e01a0d2effb98ab47d8d7eab28f'} | osv | Cross-site Scripting in showdoc/showdoc ShowDoc is a tool greatly applicable for an IT team to share documents online. showdoc/showdoc allows .properties files to upload which lead to stored XSS in versions prior to 2.10.4. This allows attackers to execute malicious scripts in the user's browser. This issue was patched... | 2022-03-15 | 1 | https://github.com/star7th/showdoc | https://github.com/star7th/showdoc/commit/92bc6a83a3a60e01a0d2effb98ab47d8d7eab28f | 92bc6a83a3a60e01a0d2effb98ab47d8d7eab28f | SINGLE | ['92bc6a83a3a60e01a0d2effb98ab47d8d7eab28f'] | {'cd258a0de6fad53a5f41beaf2645f3f6f092f216'} | 92bc6a83a3a60e01a0d2effb98ab47d8d7eab28f | 1 | 03/14/2022, 14:36:28 | file upload bug | star7th | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -324,13 +324,13 @@ public function isDangerFilename($filename){\n \tpublic function isAllowedFilename($filename){\n \t\t$allow_array = array(\n \t\t\t'.jpg','.jpeg','.png','.bmp','.gif','.ico','.webp',\n-\t\t\t'.mp3','.wav','.m4a','.ogg','... | php | CWE-434 | [
"server/Application/Api/Model/AttachmentModel.class.php"
] | server/Application/Api/Model/AttachmentModel.class.php | 1 |
public function isDangerFilename($filename){ public function isAllowedFilename($filename){ $allow_array = array( '.jpg','.jpeg','.png','.bmp','.gif','.ico','.webp', '.mp3','.wav','.m4a','.ogg','.webma','.mp4','.flv', '.mov','.webmv','.flac','.mkv', '.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso',... | public function isDangerFilename($filename){ public function isAllowedFilename($filename){ $allow_array = array( '.jpg','.jpeg','.png','.bmp','.gif','.ico','.webp', '.mp3','.wav','.mp4', '.mov','.webmv','.flac','.mkv', '.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso', '.pdf','.ofd','.swf','.epu... | GHSA-rphc-h572-2x9f | {'CWE-434', 'CWE-79'} | 9 | {'https://github.com/star7th/showdoc/commit/92bc6a83a3a60e01a0d2effb98ab47d8d7eab28f'} | osv | Cross-site Scripting in showdoc/showdoc ShowDoc is a tool greatly applicable for an IT team to share documents online. showdoc/showdoc allows .properties files to upload which lead to stored XSS in versions prior to 2.10.4. This allows attackers to execute malicious scripts in the user's browser. This issue was patched... | 2022-03-15 | 1 | https://github.com/star7th/showdoc | https://github.com/star7th/showdoc/commit/92bc6a83a3a60e01a0d2effb98ab47d8d7eab28f | 92bc6a83a3a60e01a0d2effb98ab47d8d7eab28f | SINGLE | ['92bc6a83a3a60e01a0d2effb98ab47d8d7eab28f'] | {'cd258a0de6fad53a5f41beaf2645f3f6f092f216'} | 92bc6a83a3a60e01a0d2effb98ab47d8d7eab28f | 1 | 03/14/2022, 14:36:28 | file upload bug | star7th | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -324,13 +324,13 @@ public function isDangerFilename($filename){\n \tpublic function isAllowedFilename($filename){\n \t\t$allow_array = array(\n \t\t\t'.jpg','.jpeg','.png','.bmp','.gif','.ico','.webp',\n-\t\t\t'.mp3','.wav','.m4a','.ogg','... | php | CWE-79 | [
"server/Application/Api/Model/AttachmentModel.class.php"
] | server/Application/Api/Model/AttachmentModel.class.php | 1 |
public static function getComments(array $ids): array 'SELECT * FROM blog_comments AS i WHERE i.id IN (' . implode(', ', array_fill(0, count($ids), '?')) . ')', $ids ); } | public static function getComments(array $ids): array 'SELECT * FROM blog_comments AS i WHERE i.id IN (' . implode(', ', array_fill(0, count($ids), '?')) . ')', array_map('intval', $ids) ); } | GHSA-rr8m-29g8-8cgc | {'CWE-89'} | 8.8 | {'https://github.com/forkcms/forkcms/commit/6aca30e10b4181534f73f96d6e2ebeb45ec15069'} | osv | SQL Injection in Fork CMS Fork CMS is vulnerable to SQL injection through marking blog comments on bulk as spam in versions prior to 5.11.1. | 2022-03-26 | 1 | https://github.com/forkcms/forkcms | https://github.com/forkcms/forkcms/commit/6aca30e10b4181534f73f96d6e2ebeb45ec15069 | 6aca30e10b4181534f73f96d6e2ebeb45ec15069 | SINGLE | ['6aca30e10b4181534f73f96d6e2ebeb45ec15069'] | {'1b38e33a98992793e998a937b717355212346993'} | 6aca30e10b4181534f73f96d6e2ebeb45ec15069 | 1 | 03/23/2022, 12:21:47 | Prevent sql injection through the ids of the blog comments | Jelmer Prins | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -501,7 +501,7 @@ public static function getComments(array $ids): array\n 'SELECT *\n FROM blog_comments AS i\n WHERE i.id IN (' . implode(', ', array_fill(0, count($ids), '?')) . ')',\n- $id... | php | CWE-89 | [
"src/Backend/Modules/Blog/Engine/Model.php"
] | src/Backend/Modules/Blog/Engine/Model.php | 1 |
public function transformAssignedTo($asset) } return $asset->assigned ? [ 'id' => $asset->assigned->id, 'name' => $asset->assigned->display_name, 'type' => $asset->assignedType() ] : null; } | public function transformAssignedTo($asset) } return $asset->assigned ? [ 'id' => $asset->assigned->id, 'name' => e($asset->assigned->display_name), 'type' => $asset->assignedType() ] : null; } | GHSA-rxch-gp62-574w | {'CWE-79'} | 6.4 | {'https://github.com/snipe/snipe-it/commit/9d5d1a9f9aae2c8baee48551185da5de0cdb62c2'} | osv | snipe-it is vulnerable to Cross-site Scripting snipe-it is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). | 2021-12-16 | 1 | https://github.com/snipe/snipe-it | https://github.com/snipe/snipe-it/commit/9d5d1a9f9aae2c8baee48551185da5de0cdb62c2 | 9d5d1a9f9aae2c8baee48551185da5de0cdb62c2 | SINGLE | ['9d5d1a9f9aae2c8baee48551185da5de0cdb62c2'] | {'3a7cef15bd7578f93104011137222512d4c95f4e'} | 9d5d1a9f9aae2c8baee48551185da5de0cdb62c2 | 1 | 12/13/2021, 20:03:03 | Added escape to assigned_to API response
Signed-off-by: snipe <snipe@snipe.net> | snipe | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -170,7 +170,7 @@ public function transformAssignedTo($asset)\n }\n return $asset->assigned ? [\n 'id' => $asset->assigned->id,\n- 'name' => $asset->assigned->display_name,\n+ 'name' => e($a... | php | CWE-79 | [
"app/Http/Transformers/AssetsTransformer.php"
] | app/Http/Transformers/AssetsTransformer.php | 1 |
var makeString = require('./helper/makeString'); var htmlEntities = require('./helper/htmlEntities'); module.exports = function unescapeHTML(str) { return makeString(str).replace(/\&([^;]+);/g, function(entity, entityCode) { var match; if (entityCode in htmlEntities) { | var makeString = require('./helper/makeString'); var htmlEntities = require('./helper/htmlEntities'); module.exports = function unescapeHTML(str) { return makeString(str).replace(/\&([^;]{1,10});/g, function(entity, entityCode) { var match; if (entityCode in htmlEntities) { | GHSA-v2p6-4mp7-3r9v | {'CWE-400'} | 0 | {'https://github.com/epeli/underscore.string/commit/f486cd684c94c12db48b45d52b1472a1b9661029'} | osv | Regular Expression Denial of Service in underscore.string Versions of `underscore.string` prior to *3.3.5* are vulnerable to Regular Expression Denial of Service (ReDoS).
The function `unescapeHTML` is vulnerable to ReDoS due to an overly-broad regex. The slowdown is approximately 2s for 50,000 characters but grows ex... | 2019-06-14 | 1 | https://github.com/epeli/underscore.string | https://github.com/epeli/underscore.string/commit/f486cd684c94c12db48b45d52b1472a1b9661029 | f486cd684c94c12db48b45d52b1472a1b9661029 | SINGLE | ['f486cd684c94c12db48b45d52b1472a1b9661029'] | {'2f78f0d6e36d553484a1bf5fe5ed1998f013dea5'} | f486cd684c94c12db48b45d52b1472a1b9661029 | 1 | 10/03/2018, 21:34:42 | Try to fix regexp redos
fixes #510 | Esa-Matti Suuronen | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -2,7 +2,7 @@ var makeString = require('./helper/makeString');\n var htmlEntities = require('./helper/htmlEntities');\n \n module.exports = function unescapeHTML(str) {\n- return makeString(str).replace(/\\&([^;]+);/g, function(entity, ent... | js | CWE-400 | [
"unescapeHTML.js"
] | unescapeHTML.js | 1 |
protected function prepareWhere() // Filter those that have already been chosen if ('checkbox' === $this->fieldType && \is_array($varData) && !empty($varData)) { $this->arrWhereProcedure[] = $this->foreignTable.'.id NOT IN ('.implode(',', $varData).')'; } elseif ('radio' === $this-... | protected function prepareWhere() // Filter those that have already been chosen if ('checkbox' === $this->fieldType && \is_array($varData) && !empty($varData)) { $this->arrWhereProcedure[] = $this->foreignTable.'.id NOT IN ('.implode(',', array_map('intval', $varData)).')'; } elsei... | GHSA-v3mr-gp7j-pw5w | {'CWE-89'} | 0 | {'https://github.com/terminal42/contao-tablelookupwizard/commit/a5e723a28f110b7df8ffc4175cef9b061d3cc717'} | osv | Possible SQL injection in tablelookupwizard Contao Extension ### Impact
The currently selected widget values were not correctly sanitized before passing it to the database, leading to an SQL injection possibility.
### Patches
The issue has been patched in `tablelookupwizard` version 3.3.5 and version 4.0.0.
### For m... | 2022-02-10 | 1 | https://github.com/terminal42/contao-tablelookupwizard | https://github.com/terminal42/contao-tablelookupwizard/commit/a5e723a28f110b7df8ffc4175cef9b061d3cc717 | a5e723a28f110b7df8ffc4175cef9b061d3cc717 | SINGLE | ['a5e723a28f110b7df8ffc4175cef9b061d3cc717'] | {'ae6c82f10b0f1e87226079ebaa78ac630b05279a'} | a5e723a28f110b7df8ffc4175cef9b061d3cc717 | 1 | 02/04/2022, 07:13:15 | Fixed SQL query for current field value | Andreas Schempp | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -407,9 +407,9 @@ protected function prepareWhere()\n \n // Filter those that have already been chosen\n if ('checkbox' === $this->fieldType && \\is_array($varData) && !empty($varData)) {\n- $this->arrWhereProcedu... | php | CWE-89 | [
"TableLookupWizard.php"
] | TableLookupWizard.php | 1 |
TfLiteStatus ResizeOutputTensor(TfLiteContext* context, for (int dim = 0; dim < spatial_dims_num; ++dim) { int final_dim_size = (input_size->data[dim + 1] + paddings_data[dim * 2] + paddings_data[dim * 2 + 1]); TF_LITE_ENSURE_EQ(context, final_dim_size % block_shape[dim], 0); ou... | TfLiteStatus ResizeOutputTensor(TfLiteContext* context, for (int dim = 0; dim < spatial_dims_num; ++dim) { int final_dim_size = (input_size->data[dim + 1] + paddings_data[dim * 2] + paddings_data[dim * 2 + 1]); TF_LITE_ENSURE(context, block_shape[dim] != 0); TF_LITE_ENSURE_EQ(co... | GHSA-v52p-hfjf-wg88 | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/6d36ba65577006affb272335b7c1abd829010708'} | osv | Division by zero in TFLite's implementation of `SpaceToBatchNd` ### Impact
The implementation of the `SpaceToBatchNd` TFLite operator is [vulnerable to a division by zero error](https://github.com/tensorflow/tensorflow/blob/412c7d9bb8f8a762c5b266c9e73bfa165f29aac8/tensorflow/lite/kernels/space_to_batch_nd.cc#L82-L83):
... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/6d36ba65577006affb272335b7c1abd829010708 | 6d36ba65577006affb272335b7c1abd829010708 | SINGLE | ['6d36ba65577006affb272335b7c1abd829010708'] | {'412c7d9bb8f8a762c5b266c9e73bfa165f29aac8'} | 6d36ba65577006affb272335b7c1abd829010708 | 1 | 04/28/2021, 21:22:30 | Prevent division by 0
PiperOrigin-RevId: 370984990
Change-Id: Ib324955bbeb1cbd97c82fd5d61a00a2697c9a2de | Mihai Maruseac | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -79,6 +79,7 @@ TfLiteStatus ResizeOutputTensor(TfLiteContext* context,\n for (int dim = 0; dim < spatial_dims_num; ++dim) {\n int final_dim_size = (input_size->data[dim + 1] + paddings_data[dim * 2] +\n padd... | cc | CWE-369 | [
"tensorflow/lite/kernels/space_to_batch_nd.cc"
] | tensorflow/lite/kernels/space_to_batch_nd.cc | 1 |
struct LaunchAvgPooling3dGradOp<CPUDevice, T> { const std::array<int64, 3>& output_shape, const std::array<int64, 3>& padding, TensorFormat data_format, Tensor* output) { output->flat<T>().setZero(); std::array<int64, 3> input_size = {{tensor_in_sh... | struct LaunchAvgPooling3dGradOp<CPUDevice, T> { const std::array<int64, 3>& output_shape, const std::array<int64, 3>& padding, TensorFormat data_format, Tensor* output) { OP_REQUIRES( context, tensor_in_shape.dim_size(0) == out_backprop.dim_siz... | GHSA-v6r6-84gr-92rm | {'CWE-787', 'CWE-119'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/6fc9141f42f6a72180ecd24021c3e6b36165fe0d'} | osv | Heap buffer overflow in `AvgPool3DGrad` ### Impact
The implementation of `tf.raw_ops.AvgPool3DGrad` is vulnerable to a heap buffer overflow:
```python
import tensorflow as tf
orig_input_shape = tf.constant([10, 6, 3, 7, 7], shape=[5], dtype=tf.int32)
grad = tf.constant([0.01, 0, 0], shape=[3, 1, 1, 1, 1], dtype=tf.fl... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/6fc9141f42f6a72180ecd24021c3e6b36165fe0d | 6fc9141f42f6a72180ecd24021c3e6b36165fe0d | SINGLE | ['6fc9141f42f6a72180ecd24021c3e6b36165fe0d'] | {'d80ffba9702dc19d1fac74fc4b766b3fa1ee976b'} | 6fc9141f42f6a72180ecd24021c3e6b36165fe0d | 1 | 05/06/2021, 16:51:26 | Fix assertion failure in pooling_ops_3d
PiperOrigin-RevId: 372364504
Change-Id: Iecde4fe26b47a8fa935d6e2611b5585ed5777781 | Mihai Maruseac | null | {'additions': 13, 'deletions': 0, 'total': 13} | [
{
"additions": 13,
"changes": 13,
"deletions": 0,
"patch": "@@ -383,6 +383,19 @@ struct LaunchAvgPooling3dGradOp<CPUDevice, T> {\n const std::array<int64, 3>& output_shape,\n const std::array<int64, 3>& padding,\n TensorFormat data_forma... | cc | CWE-119 | [
"tensorflow/core/kernels/pooling_ops_3d.cc"
] | tensorflow/core/kernels/pooling_ops_3d.cc | 1 |
struct LaunchAvgPooling3dGradOp<CPUDevice, T> { const std::array<int64, 3>& output_shape, const std::array<int64, 3>& padding, TensorFormat data_format, Tensor* output) { output->flat<T>().setZero(); std::array<int64, 3> input_size = {{tensor_in_sh... | struct LaunchAvgPooling3dGradOp<CPUDevice, T> { const std::array<int64, 3>& output_shape, const std::array<int64, 3>& padding, TensorFormat data_format, Tensor* output) { OP_REQUIRES( context, tensor_in_shape.dim_size(0) == out_backprop.dim_siz... | GHSA-v6r6-84gr-92rm | {'CWE-787', 'CWE-119'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/6fc9141f42f6a72180ecd24021c3e6b36165fe0d'} | osv | Heap buffer overflow in `AvgPool3DGrad` ### Impact
The implementation of `tf.raw_ops.AvgPool3DGrad` is vulnerable to a heap buffer overflow:
```python
import tensorflow as tf
orig_input_shape = tf.constant([10, 6, 3, 7, 7], shape=[5], dtype=tf.int32)
grad = tf.constant([0.01, 0, 0], shape=[3, 1, 1, 1, 1], dtype=tf.fl... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/6fc9141f42f6a72180ecd24021c3e6b36165fe0d | 6fc9141f42f6a72180ecd24021c3e6b36165fe0d | SINGLE | ['6fc9141f42f6a72180ecd24021c3e6b36165fe0d'] | {'d80ffba9702dc19d1fac74fc4b766b3fa1ee976b'} | 6fc9141f42f6a72180ecd24021c3e6b36165fe0d | 1 | 05/06/2021, 16:51:26 | Fix assertion failure in pooling_ops_3d
PiperOrigin-RevId: 372364504
Change-Id: Iecde4fe26b47a8fa935d6e2611b5585ed5777781 | Mihai Maruseac | null | {'additions': 13, 'deletions': 0, 'total': 13} | [
{
"additions": 13,
"changes": 13,
"deletions": 0,
"patch": "@@ -383,6 +383,19 @@ struct LaunchAvgPooling3dGradOp<CPUDevice, T> {\n const std::array<int64, 3>& output_shape,\n const std::array<int64, 3>& padding,\n TensorFormat data_forma... | cc | CWE-787 | [
"tensorflow/core/kernels/pooling_ops_3d.cc"
] | tensorflow/core/kernels/pooling_ops_3d.cc | 1 |
/* * * * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com) * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * ... | /* * * * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com) * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org... | GHSA-v6wr-fch2-vm5w | {'CWE-200'} | 5.9 | {'https://github.com/orientechnologies/orientdb/commit/668ece96be210e742a4e2820a3085b215cf55104'} | osv | Moderate severity vulnerability that affects com.orientechnologies:orientdb-studio server/network/protocol/http/OHttpSessionManager.java in the Studio component in OrientDB Server Community Edition before 2.0.15 and 2.1.x before 2.1.1 improperly relies on the java.util.Random class for generation of random Session ID v... | 2018-10-18 | 1 | https://github.com/orientechnologies/orientdb | https://github.com/orientechnologies/orientdb/commit/668ece96be210e742a4e2820a3085b215cf55104 | 668ece96be210e742a4e2820a3085b215cf55104 | SINGLE | ['668ece96be210e742a4e2820a3085b215cf55104'] | {'41fd20ab022e22bce32d62372dbe279693322086'} | 668ece96be210e742a4e2820a3085b215cf55104 | 1 | 04/04/2015, 14:45:12 | Adopted SecureRandom to avoid predicable random numbers in session | lvca | null | {'additions': 136, 'deletions': 135, 'total': 271} | [
{
"additions": 136,
"changes": 271,
"deletions": 135,
"patch": "@@ -1,141 +1,142 @@\n /*\r\n- *\r\n- * * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com)\r\n- * *\r\n- * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n- * * you may n... | java | CWE-200 | [
"server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/OHttpSessionManager.java"
] | server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/OHttpSessionManager.java | 1 |
import { spawn, execSync, ChildProcess } from 'child_process'; import path from 'path'; import { CodeError, export function getAdbPath(customPath?: string): string { export function spawnLogcatProcess(adbPath: string): ChildProcess { try { execSync(`${adbPath} logcat -c`); } catch (error) { throw new Co... | import { spawn, execFileSync, ChildProcess } from 'child_process'; import path from 'path'; import { CodeError, export function getAdbPath(customPath?: string): string { export function spawnLogcatProcess(adbPath: string): ChildProcess { try { execFileSync(adbPath, ['logcat', '-c']); } catch (error) { t... | GHSA-v8v8-6859-qxm4 | {'CWE-94'} | 0 | {'https://github.com/zamotany/logkitty/commit/ef2f673e25c629544dd3de6429999318447dd6bf'} | osv | Arbitrary shell command execution in logkitty Lack of output sanitization allowed an attack to execute arbitrary shell commands via the logkitty npm package before version 0.7.1. | 2020-06-05 | 1 | https://github.com/zamotany/logkitty | https://github.com/zamotany/logkitty/commit/ef2f673e25c629544dd3de6429999318447dd6bf | ef2f673e25c629544dd3de6429999318447dd6bf | SINGLE | ['ef2f673e25c629544dd3de6429999318447dd6bf'] | {'e1e229687472d8c9266d17f2969ff7431a78db86'} | ef2f673e25c629544dd3de6429999318447dd6bf | 1 | 04/07/2020, 09:35:09 | huntr - Command Injection Fix (#18)
Co-authored-by: jammy <jammy@loves.shib.es>
Co-authored-by: Paweł Trysła <zamotany@users.noreply.github.com> | huntr-helper | null | {'additions': 9, 'deletions': 6, 'total': 15} | [
{
"additions": 9,
"changes": 15,
"deletions": 6,
"patch": "@@ -1,4 +1,4 @@\n-import { spawn, execSync, ChildProcess } from 'child_process';\n+import { spawn, execFileSync, ChildProcess } from 'child_process';\n import path from 'path';\n import {\n CodeError,\n@@ -25,7 +25,7 @@ export function get... | ts | CWE-94 | [
"src/android/adb.ts"
] | src/android/adb.ts | 1 |
func (net *Network) checkTopicRegister(data *topicRegister) (*pong, error) { if hash != pongpkt.data.(*pong).TopicHash { return nil, errors.New("topic hash mismatch") } if data.Idx < 0 || int(data.Idx) >= len(data.Topics) { return nil, errors.New("topic index out of range") } return pongpkt.data.(*pong), nil | func (net *Network) checkTopicRegister(data *topicRegister) (*pong, error) { if hash != pongpkt.data.(*pong).TopicHash { return nil, errors.New("topic hash mismatch") } if int(data.Idx) < 0 || int(data.Idx) >= len(data.Topics) { return nil, errors.New("topic index out of range") } return pongpkt.data.(*pong),... | GHSA-vc3x-gx6c-g99f | {'CWE-190'} | 7.5 | {'https://github.com/Bytom/bytom/commit/1ac3c8ac4f2b1e1df9675228290bda6b9586ba42'} | osv | Denial of Service in Bytom In the client in Bytom before 1.0.6, checkTopicRegister in p2p/discover/net.go does not prevent negative idx values, leading to a crash. | 2022-02-15 | 1 | https://github.com/Bytom/bytom | https://github.com/Bytom/bytom/commit/1ac3c8ac4f2b1e1df9675228290bda6b9586ba42 | 1ac3c8ac4f2b1e1df9675228290bda6b9586ba42 | SINGLE | ['1ac3c8ac4f2b1e1df9675228290bda6b9586ba42'] | {'69b3d4c7cf41c6628efb34ed79ad35e9e22bbf82'} | 1ac3c8ac4f2b1e1df9675228290bda6b9586ba42 | 1 | 08/31/2018, 05:48:40 | p2p/discv5: fix idx can be negative after uint convert to int(can cause crash) (#1307) | yahtoo | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1221,7 +1221,7 @@ func (net *Network) checkTopicRegister(data *topicRegister) (*pong, error) {\n \tif hash != pongpkt.data.(*pong).TopicHash {\n \t\treturn nil, errors.New(\"topic hash mismatch\")\n \t}\n-\tif data.Idx < 0 || int(data.Idx... | go | CWE-190 | [
"p2p/discover/net.go"
] | p2p/discover/net.go | 1 |
private function buildItem($configuration): array return [ 'id' => $name, 'text' => $name, 'type' => 'config', 'iconCls' => 'plugin_pimcore_datahub_icon_' . $type, 'expandable' => false, | private function buildItem($configuration): array return [ 'id' => $name, 'text' => htmlspecialchars($name), 'type' => 'config', 'iconCls' => 'plugin_pimcore_datahub_icon_' . $type, 'expandable' => false, | GHSA-vc5r-xfc4-4x22 | {'CWE-79'} | 4.8 | {'https://github.com/pimcore/data-hub/commit/15d5b57af2466eebd3bbc531ead5dafa35d0a36e'} | osv | Cross-site Scripting in Pimcore Datahub Pimcore Datahub prior to 1.2.4 is vulnerable to stored cross-site scripting. An admin user accessing Datahub triggers the attack, which may result in the user's cookie being stolen. | 2022-03-25 | 1 | https://github.com/pimcore/data-hub | https://github.com/pimcore/data-hub/commit/15d5b57af2466eebd3bbc531ead5dafa35d0a36e | 15d5b57af2466eebd3bbc531ead5dafa35d0a36e | SINGLE | ['15d5b57af2466eebd3bbc531ead5dafa35d0a36e'] | {'1561fa5cda0d1a79139efbd2113e42a63d5602e4'} | 15d5b57af2466eebd3bbc531ead5dafa35d0a36e | 1 | 03/16/2022, 13:24:41 | follow up to https://github.com/pimcore/data-hub/pull/462 | dpahuja | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -50,7 +50,7 @@ private function buildItem($configuration): array\n \n return [\n 'id' => $name,\n- 'text' => $name,\n+ 'text' => htmlspecialchars($name),\n 'type' => 'config',\n ... | php | CWE-79 | [
"src/Controller/ConfigController.php"
] | src/Controller/ConfigController.php | 1 |
public async Task SerializeToStreamAsync(IRequest req, object response, Stream o { // Serialize then escape any potential script tags to avoid XSS when displaying as HTML var json = JsonDataContractSerializer.Instance.SerializeToString(dto) ?? "null"; json = ... | public async Task SerializeToStreamAsync(IRequest req, object response, Stream o { // Serialize then escape any potential script tags to avoid XSS when displaying as HTML var json = JsonDataContractSerializer.Instance.SerializeToString(dto) ?? "null"; json = ... | GHSA-vcfc-9wcp-j623 | {'CWE-79'} | 6.1 | {'https://github.com/ServiceStack/ServiceStack/commit/a0e0d7de20f5d1712f1793f925496def4383c610'} | osv | Cross site scripting attack in ServiceStack Framework ServiceStack ServiceStack Framework 4.5.14 is affected by: Cross Site Scripting (XSS). The impact is: JavaScrpit is reflected in the server response, hence executed by the browser. The component is: the query used in the GET request is prone. The attack vector is: S... | 2022-05-24 | 1 | https://github.com/ServiceStack/ServiceStack | https://github.com/ServiceStack/ServiceStack/commit/a0e0d7de20f5d1712f1793f925496def4383c610 | a0e0d7de20f5d1712f1793f925496def4383c610 | SINGLE | ['a0e0d7de20f5d1712f1793f925496def4383c610'] | {'2c6fbe4554014ead15b7b188bb748b655b30807c'} | a0e0d7de20f5d1712f1793f925496def4383c610 | 1 | 08/17/2018, 15:05:59 | HtmlEncode Raw URL in HtmlFormat snapshot | Demis Bellot | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -90,12 +90,13 @@ public async Task SerializeToStreamAsync(IRequest req, object response, Stream o\n {\n // Serialize then escape any potential script tags to avoid XSS when displaying as HTML\n v... | cs | CWE-79 | [
"src/ServiceStack/Formats/HtmlFormat.cs"
] | src/ServiceStack/Formats/HtmlFormat.cs | 1 |
TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { const auto* params = reinterpret_cast<TfLiteTransposeConvParams*>(node->builtin_data); // Resize any deferred dynamic tensors if (IsDynamicTensor(output)) { TF_LITE_ENSURE_OK(context, ResizeTensor(context, output_shape, output)); | TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { const auto* params = reinterpret_cast<TfLiteTransposeConvParams*>(node->builtin_data); // Prevent divisions by 0 TF_LITE_ENSURE(context, params->stride_height > 0); TF_LITE_ENSURE(context, params->stride_width > 0); // Resize any deferred ... | GHSA-vfr4-x8j2-3rf9 | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/801c1c6be5324219689c98e1bd3e0ca365ee834d'} | osv | Division by zero in TFLite's implementation of `TransposeConv` ### Impact
The optimized implementation of the `TransposeConv` TFLite operator is [vulnerable to a division by zero error](https://github.com/tensorflow/tensorflow/blob/0d45ea1ca641b21b73bcf9c00e0179cda284e7e7/tensorflow/lite/kernels/internal/optimized/opti... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/801c1c6be5324219689c98e1bd3e0ca365ee834d | 801c1c6be5324219689c98e1bd3e0ca365ee834d | SINGLE | ['801c1c6be5324219689c98e1bd3e0ca365ee834d'] | {'8e45822aa0b9f5df4b4c64f221e64dc930a70a9d'} | 801c1c6be5324219689c98e1bd3e0ca365ee834d | 1 | 04/28/2021, 00:46:25 | Fix another division by 0 in TFLite
PiperOrigin-RevId: 370800181
Change-Id: I924809166a6131f5075e6d45c455106538d755f9 | Mihai Maruseac | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -591,6 +591,10 @@ TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {\n const auto* params =\n reinterpret_cast<TfLiteTransposeConvParams*>(node->builtin_data);\n \n+ // Prevent divisions by 0\n+ TF_LITE_ENSURE(context,... | cc | CWE-369 | [
"tensorflow/lite/kernels/transpose_conv.cc"
] | tensorflow/lite/kernels/transpose_conv.cc | 1 |
def process_attachments(followup, attached_files): 'application/octet-stream', size=attached.size, ) att.save() if attached.size < max_email_attachment_size: | def process_attachments(followup, attached_files): 'application/octet-stream', size=attached.size, ) att.full_clean() att.save() if attached.size < max_email_attachment_size: | GHSA-vfrc-ggmc-5jwv | {'CWE-79'} | 8.8 | {'https://github.com/django-helpdesk/django-helpdesk/commit/04483bdac3b5196737516398b5ce0383875a5c60'} | osv | Cross-site Scripting in django-helpdesk django-helpdesk is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | 2021-11-23 | 1 | https://github.com/django-helpdesk/django-helpdesk | https://github.com/django-helpdesk/django-helpdesk/commit/04483bdac3b5196737516398b5ce0383875a5c60 | 04483bdac3b5196737516398b5ce0383875a5c60 | SINGLE | ['04483bdac3b5196737516398b5ce0383875a5c60'] | {'2c7065e0c4296e0c692fb4a7ee19c7357583af30'} | 04483bdac3b5196737516398b5ce0383875a5c60 | 1 | 11/18/2021, 03:42:02 | Add `att.full_clean()` before saving
Fix issue https://github.com/django-helpdesk/django-helpdesk/issues/983
Also, fix bug stored XSS disclosure: https://huntr.dev/bounties/4d7a5fdd-b2de-467a-ade0-3f2fb386638e/ | lethanhphuc | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -145,6 +145,7 @@ def process_attachments(followup, attached_files):\n 'application/octet-stream',\n size=attached.size,\n )\n+ att.full_clean()\n att.save()\n \n ... | py | CWE-79 | [
"helpdesk/lib.py"
] | helpdesk/lib.py | 1 |
const NETWORK_API_URLS = { class LedgerBridgeKeyring extends EventEmitter { constructor (opts = {}) { super() this.bridgeUrl = null this.type = type this.page = 0 class LedgerBridgeKeyring extends EventEmitter { return Promise.resolve({ hdPath: this.hdPath, accounts: this.accounts, ... | const NETWORK_API_URLS = { class LedgerBridgeKeyring extends EventEmitter { constructor (opts = {}) { super() this.accountIndexes = {} this.bridgeUrl = null this.type = type this.page = 0 class LedgerBridgeKeyring extends EventEmitter { return Promise.resolve({ hdPath: this.hdPath, ... | GHSA-vg44-fw64-cpjx | {'CWE-287'} | 7.5 | {'https://github.com/MetaMask/eth-ledger-bridge-keyring/commit/f32e529d13a53e55f558d903534d631846dc26ce'} | osv | Incorrect Account Used for Signing ### Impact
Anybody using this library to sign with a BIP44 account other than the first account may be affected. If a user is signing with the first account (i.e. the account at index `0`), or with the legacy MEW/MyCrypto HD path, they are not affected.
The vulnerability impacts cas... | 2020-03-24 | 1 | https://github.com/MetaMask/eth-ledger-bridge-keyring | https://github.com/MetaMask/eth-ledger-bridge-keyring/commit/f32e529d13a53e55f558d903534d631846dc26ce | f32e529d13a53e55f558d903534d631846dc26ce | SINGLE | ['f32e529d13a53e55f558d903534d631846dc26ce'] | {'25d96289bdffb369a70cbafd70b4ca1f1be47fcc'} | f32e529d13a53e55f558d903534d631846dc26ce | 1 | 03/02/2020, 22:58:21 | Always sign transactions and messages with the correct account (#14)
The account used to sign transactions and messages should be the one
the transaction or message is from. Instead, the last connected account
was being used to sign any messages or transactions.
This was especially problematic considering the las... | Mark Stacey | null | {'additions': 15, 'deletions': 2, 'total': 17} | [
{
"additions": 15,
"changes": 17,
"deletions": 2,
"patch": "@@ -18,6 +18,7 @@ const NETWORK_API_URLS = {\n class LedgerBridgeKeyring extends EventEmitter {\n constructor (opts = {}) {\n super()\n+ this.accountIndexes = {}\n this.bridgeUrl = null\n this.type = type\n this.page = ... | js | CWE-287 | [
"index.js"
] | index.js | 1 |
echo " <tr> <td>{$rule['name']}</td> <td><i>" . htmlentities($rule_display) . "</i></td> <td>{$rule['severity']}</td> ... | echo " <tr> <td>{$rule['name']}</td> <td><i>" . htmlentities(strip_tags($rule_display)) . "</i></td> <td>{$rule['severity']}</td> ... | GHSA-vhm6-gw82-6f8j | {'CWE-79'} | 4.8 | {'https://github.com/librenms/librenms/commit/703745d0ed3948623153117d761ce48514e2f281'} | osv | Cross site scripting in LibreNMS LibreNMS prior to version 22.2.2 is vulnerable to cross-site scripting. | 2022-02-28 | 1 | https://github.com/librenms/librenms | https://github.com/librenms/librenms/commit/703745d0ed3948623153117d761ce48514e2f281 | 703745d0ed3948623153117d761ce48514e2f281 | SINGLE | ['703745d0ed3948623153117d761ce48514e2f281'] | {'09929bd6865e54034db591ea37f5548406f5e716'} | 703745d0ed3948623153117d761ce48514e2f281 | 1 | 02/22/2022, 14:28:31 | Resolved XSS issue from alert rule list modal (#13805) | Neil Lathwood | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -62,7 +62,7 @@\n echo \"\n <tr>\n <td>{$rule['name']}</td>\n- <td><i>\" . htmlentities($rule_display) . \"</... | php | CWE-79 | [
"includes/html/modal/alert_rule_list.inc.php"
] | includes/html/modal/alert_rule_list.inc.php | 1 |
public function propertiesGetAction(Request $request) } if ($storeId) { $conditionParts[] = '(storeId = ' . $storeId . ')'; } if ($request->get('filter')) { | public function propertiesGetAction(Request $request) } if ($storeId) { $conditionParts[] = '(storeId = '. $db->quote($storeId) . ')'; } if ($request->get('filter')) { | GHSA-vj9x-w7ch-f46p | {'CWE-89'} | 8.3 | {'https://github.com/pimcore/pimcore/commit/66281c12479dc01a06258d8533eaddfb1770d5bd'} | osv | pimcore is vulnerable to SQL Injection pimcore is vulnerable to Improper Neutralization of Special Elements used in an SQL Command | 2022-01-21 | 1 | https://github.com/pimcore/pimcore | https://github.com/pimcore/pimcore/commit/66281c12479dc01a06258d8533eaddfb1770d5bd | 66281c12479dc01a06258d8533eaddfb1770d5bd | SINGLE | ['66281c12479dc01a06258d8533eaddfb1770d5bd'] | {'d8377fc752dc3a42ca72cb49650481191f14ec63'} | 66281c12479dc01a06258d8533eaddfb1770d5bd | 1 | 01/17/2022, 14:39:43 | [Data Object] Classification Store quote filtering | Bernhard Rusch | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1242,7 +1242,7 @@ public function propertiesGetAction(Request $request)\n }\n \n if ($storeId) {\n- $conditionParts[] = '(storeId = ' . $storeId . ')';\n+ $conditionParts[] = '(storeId = '. $db->quote... | php | CWE-89 | [
"bundles/AdminBundle/Controller/Admin/DataObject/ClassificationstoreController.php"
] | bundles/AdminBundle/Controller/Admin/DataObject/ClassificationstoreController.php | 1 |
func IsConfigBlock(block *cb.Block) bool { // ChannelHeader returns the *cb.ChannelHeader for a given *cb.Envelope. func ChannelHeader(env *cb.Envelope) (*cb.ChannelHeader, error) { envPayload, err := UnmarshalPayload(env.Payload) if err != nil { return nil, err | func IsConfigBlock(block *cb.Block) bool { // ChannelHeader returns the *cb.ChannelHeader for a given *cb.Envelope. func ChannelHeader(env *cb.Envelope) (*cb.ChannelHeader, error) { if env == nil { return nil, errors.New("Invalid envelope payload. can't be nil") } envPayload, err := UnmarshalPayload(env.Payload... | GHSA-vjj6-5m9f-wqjw | {'CWE-476'} | 7.5 | {'https://github.com/hyperledger/fabric/pull/2838/commits/ebf94b10ecc86d3a91619b98befc52277b1e3474'} | osv | NULL Pointer Dereference in HyperLedger Fabric A vulnerability has been detected in HyperLedger Fabric v1.4.0, v2.0.0, v2.1.0. This bug can be leveraged by constructing a message whose payload is nil and sending this message with the method 'forwardToLeader'. This bug has been admitted and fixed by the developers of Fa... | 2022-05-25 | 1 | https://github.com/hyperledger/fabric | https://github.com/hyperledger/fabric/pull/2838/commits/ebf94b10ecc86d3a91619b98befc52277b1e3474 | ebf94b10ecc86d3a91619b98befc52277b1e3474 | SINGLE | ['ebf94b10ecc86d3a91619b98befc52277b1e3474'] | {'bb8bada7b864d4135aafe1785674be31d6cc78cb'} | ebf94b10ecc86d3a91619b98befc52277b1e3474 | 1 | 08/18/2021, 14:18:10 | FAB18529 added nil check in channel header parsing
Fuzz testing has reported SEGV while sending incomplete/null
message request to orderer.
Signed-off-by: Parameswaran Selvam <parselva@in.ibm.com> | Parameswaran Selvam | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -212,6 +212,10 @@ func IsConfigBlock(block *cb.Block) bool {\n \n // ChannelHeader returns the *cb.ChannelHeader for a given *cb.Envelope.\n func ChannelHeader(env *cb.Envelope) (*cb.ChannelHeader, error) {\n+\tif env == nil {\n+\t\treturn... | go | CWE-476 | [
"protoutil/commonutils.go"
] | protoutil/commonutils.go | 1 |
$is_ext = strtolower($is_ext); switch ($is_ext) { case 'php': case 'php12': case 'php11': case 'php10': ... | $is_ext = strtolower($is_ext); switch ($is_ext) { case 'php': case 'php12': case 'php11': case 'php10': ... | GHSA-vm37-j55j-8655 | {'CWE-78'} | 7.8 | {'https://github.com/microweber/microweber/commit/0a7e5f1d81de884861ca677ee1aaac31f188d632'} | osv | OS Command Injection in Microweber Microweber is a content management system with drag and drop. Prior to version 1.2.11, Microweber is vulnerable to OS Command Injection. | 2022-02-12 | 1 | https://github.com/microweber/microweber | https://github.com/microweber/microweber/commit/0a7e5f1d81de884861ca677ee1aaac31f188d632 | 0a7e5f1d81de884861ca677ee1aaac31f188d632 | SINGLE | ['0a7e5f1d81de884861ca677ee1aaac31f188d632'] | {'b66537fbd7792d10f07fa7870ead7aae293f1120'} | 0a7e5f1d81de884861ca677ee1aaac31f188d632 | 1 | 02/10/2022, 08:27:09 | Update plupload.php | Bozhidar Slaveykov | null | {'additions': 1, 'deletions': 2, 'total': 3} | [
{
"additions": 1,
"changes": 3,
"deletions": 2,
"patch": "@@ -149,14 +149,13 @@\n $is_ext = strtolower($is_ext);\n \n switch ($is_ext) {\n- case 'php':\n+ case 'php': \n ... | php | CWE-78 | [
"src/MicroweberPackages/App/functions/plupload.php"
] | src/MicroweberPackages/App/functions/plupload.php | 1 |
<form action="$doc.getURL()" method="post"> <input type="hidden" name="form_token" value="$services.csrf.token" /> <input type="hidden" name="action" value="create"/> <input type="hidden" name="newThemeName" id="newThemeName" value="$request.newThemeName" /> ... | <form action="$doc.getURL()" method="post"> <input type="hidden" name="form_token" value="$services.csrf.token" /> <input type="hidden" name="action" value="create"/> <input type="hidden" name="newThemeName" id="newThemeName" value="$escapetool.xml($request.newThemeNa... | GHSA-vmhh-xh3g-j992 | {'CWE-80', 'CWE-79', 'CWE-116'} | 7.4 | {'https://github.com/xwiki/xwiki-platform/commit/bd935320bee3c27cf7548351b1d0f935f116d437'} | osv | Cross-site Scripting in the Flamingo theme manager ### Impact
We found a possible XSS vector in the `FlamingoThemesCode.WebHomeSheet` wiki page related to the "newThemeName" form field.
### Patches
The issue is patched in versions 12.10.11, 14.0-rc-1, 13.4.7, 13.10.3.
### Workarounds
The easiest workaround is to edi... | 2022-05-25 | 1 | https://github.com/xwiki/xwiki-platform | https://github.com/xwiki/xwiki-platform/commit/bd935320bee3c27cf7548351b1d0f935f116d437 | bd935320bee3c27cf7548351b1d0f935f116d437 | SINGLE | ['bd935320bee3c27cf7548351b1d0f935f116d437'] | {'21906acb5ee2304552f56f9bbdbf8e7d368f7f3a'} | bd935320bee3c27cf7548351b1d0f935f116d437 | 1 | 01/04/2022, 10:34:49 | XWIKI-19294: Fix bad escaping | Thomas Mortagne | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -287,7 +287,7 @@\n <form action=\"$doc.getURL()\" method=\"post\">\n <input type=\"hidden\" name=\"form_token\" value=\"$services.csrf.token\" />\n <input type=\"hidden\" name=\"action\" value=\"create\... | xml | CWE-79 | [
"xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/WebHomeSheet.xml"
] | xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/WebHomeSheet.xml | 1 |
export function isOriginPotentiallyTrustworthy(url) { // 5. If origin's host component is "localhost" or falls within ".localhost", and the user agent conforms to the name resolution rules in [let-localhost-be-localhost], return "Potentially Trustworthy". // We are returning FALSE here because we cannot ensure confo... | export function isOriginPotentiallyTrustworthy(url) { // 5. If origin's host component is "localhost" or falls within ".localhost", and the user agent conforms to the name resolution rules in [let-localhost-be-localhost], return "Potentially Trustworthy". // We are returning FALSE here because we cannot ensure confo... | GHSA-vp56-6g26-6827 | {'CWE-400'} | 5.9 | {'https://github.com/node-fetch/node-fetch/commit/28802387292baee467e042e168d92597b5bbbe3d'} | osv | node-fetch Inefficient Regular Expression Complexity [node-fetch](https://www.npmjs.com/package/node-fetch) is a light-weight module that brings window.fetch to node.js.
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the `isOriginPotentiallyTrustworthy()` function ... | 2022-08-02 | 1 | https://github.com/node-fetch/node-fetch | https://github.com/node-fetch/node-fetch/commit/28802387292baee467e042e168d92597b5bbbe3d | 28802387292baee467e042e168d92597b5bbbe3d | SINGLE | ['28802387292baee467e042e168d92597b5bbbe3d'] | {'e87b093fd678a9ea39c5b17b2a1bdfc4691eedc7'} | 28802387292baee467e042e168d92597b5bbbe3d | 1 | 07/31/2022, 08:01:29 | fix: ReDoS referrer (#1611)
* fix ReDoS referrer
* Update src/utils/referrer.js
Eliminate regex and use string matcher
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
Co-authored-by: Khang. Võ Vĩ <khangvv@vng.com.vn>
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se> | Khang Vo (doublevkay) | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -119,7 +119,7 @@ export function isOriginPotentiallyTrustworthy(url) {\n \t// 5. If origin's host component is \"localhost\" or falls within \".localhost\", and the user agent conforms to the name resolution rules in [let-localhost-be-loca... | js | CWE-400 | [
"src/utils/referrer.js"
] | src/utils/referrer.js | 1 |
public function isDangerFilename($filename){ || $isDangerStr($filename , ".aspx") || $isDangerStr($filename , ".xsd") || $isDangerStr($filename , ".asa") ) { return true; } | public function isDangerFilename($filename){ || $isDangerStr($filename , ".aspx") || $isDangerStr($filename , ".xsd") || $isDangerStr($filename , ".asa") || $isDangerStr($filename , ".cshtml") || $isDangerStr($filename , ".axd") ) { return true; } | GHSA-vpwq-6cp4-ffqc | {'CWE-79'} | 5.4 | {'https://github.com/star7th/showdoc/commit/ba45d19e1d77a7eea866dab30eff5da552694891'} | osv | Stored Cross-site Scripting in ShowDoc ShowDoc prior to version 2.10.4 is vulnerable to stored cross-site scripting viva `axd` and `cshtml` file upload. | 2022-03-16 | 1 | https://github.com/star7th/showdoc | https://github.com/star7th/showdoc/commit/ba45d19e1d77a7eea866dab30eff5da552694891 | ba45d19e1d77a7eea866dab30eff5da552694891 | SINGLE | ['ba45d19e1d77a7eea866dab30eff5da552694891'] | {'4e6b321c0d63ee7c4480409c7a68ae116096c4bc'} | ba45d19e1d77a7eea866dab30eff5da552694891 | 1 | 03/14/2022, 02:52:48 | bug | star7th | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -309,6 +309,8 @@ public function isDangerFilename($filename){\n \t\t\t|| $isDangerStr($filename , \".aspx\")\n \t\t\t|| $isDangerStr($filename , \".xsd\")\n \t\t\t|| $isDangerStr($filename , \".asa\")\n+\t\t\t|| $isDangerStr($filename , \"... | php | CWE-79 | [
"server/Application/Api/Model/AttachmentModel.class.php"
] | server/Application/Api/Model/AttachmentModel.class.php | 1 |
void Node::RunForwardTypeInference() { const auto& node_t = node->def().experimental_type(); if (node_t.type_id() != TFT_UNSET) { int ix = input_idx[i]; DCHECK(ix < node_t.args_size()) << "input " << i << " should have an output " << ix << " but instead only has " <<... | void Node::RunForwardTypeInference() { const auto& node_t = node->def().experimental_type(); if (node_t.type_id() != TFT_UNSET) { int ix = input_idx[i]; if (ix >= node_t.args_size()) { LOG(WARNING) << name() << " has bad type information: input " << i << " s... | GHSA-vq36-27g6-p492 | {'CWE-125'} | 8.1 | {'https://github.com/tensorflow/tensorflow/commit/c99d98cd189839dcf51aee94e7437b54b31f8abd'} | osv | Out of bounds read in Tensorflow ### Impact
TensorFlow's [type inference](https://github.com/tensorflow/tensorflow/blob/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/core/graph/graph.cc#L223-L229) can cause a heap OOB read as the bounds checking is done in a `DCHECK` (which is a no-op during production):
```cc
i... | 2022-02-09 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/c99d98cd189839dcf51aee94e7437b54b31f8abd | c99d98cd189839dcf51aee94e7437b54b31f8abd | SINGLE | ['c99d98cd189839dcf51aee94e7437b54b31f8abd'] | {'c5ae019abd2f260cf3400abcce4962c75cc5182c'} | c99d98cd189839dcf51aee94e7437b54b31f8abd | 1 | 11/13/2021, 01:42:30 | Handle invalid inputs instead of crashing.
PiperOrigin-RevId: 409549744
Change-Id: I7f5935b34b53f7e426a5462fcc027bdbf5dcda24 | Dan Moldovan | null | {'additions': 10, 'deletions': 4, 'total': 14} | [
{
"additions": 10,
"changes": 14,
"deletions": 4,
"patch": "@@ -222,10 +222,16 @@ void Node::RunForwardTypeInference() {\n const auto& node_t = node->def().experimental_type();\n if (node_t.type_id() != TFT_UNSET) {\n int ix = input_idx[i];\n- DCHECK(ix < node_t.args_size(... | cc | CWE-125 | [
"tensorflow/core/graph/graph.cc"
] | tensorflow/core/graph/graph.cc | 1 |
<h5 class="mb-0"> function get_url(row) { return "{% url 'helpdesk:view' 1234 %}".replace(/1234/, row.id.toString()); } $(document).ready(function () { // Ticket DataTable Initialization $('#ticketTable').DataTable({ <h5 class="mb-0"> ... | <h5 class="mb-0"> function get_url(row) { return "{% url 'helpdesk:view' 1234 %}".replace(/1234/, row.id.toString()); } function htmlEntities(str) { return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"'); ... | GHSA-vx6v-xg64-pmr8 | {'CWE-79'} | 8.8 | {'https://github.com/django-helpdesk/django-helpdesk/commit/2c7065e0c4296e0c692fb4a7ee19c7357583af30'} | osv | Cross-site Scripting in django-helpdesk django-helpdesk is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). | 2021-11-15 | 1 | https://github.com/django-helpdesk/django-helpdesk | https://github.com/django-helpdesk/django-helpdesk/commit/2c7065e0c4296e0c692fb4a7ee19c7357583af30 | 2c7065e0c4296e0c692fb4a7ee19c7357583af30 | SINGLE | ['2c7065e0c4296e0c692fb4a7ee19c7357583af30'] | {'3f245871ac91356fd91a4e2cea5048bcac1d833e'} | 2c7065e0c4296e0c692fb4a7ee19c7357583af30 | 1 | 11/11/2021, 10:32:09 | Add function `htmlEntities`
`htmlentities()` is a function which converts special characters. This allows you to show to display the string without the browser reading it as HTML. | lethanhphuc | null | {'additions': 6, 'deletions': 2, 'total': 8} | [
{
"additions": 6,
"changes": 8,
"deletions": 2,
"patch": "@@ -330,7 +330,11 @@ <h5 class=\"mb-0\">\n function get_url(row) {\n return \"{% url 'helpdesk:view' 1234 %}\".replace(/1234/, row.id.toString());\n }\n-\n+ \n+ function htmlEntities(str) {\n+ ... | html | CWE-79 | [
"helpdesk/templates/helpdesk/ticket_list.html"
] | helpdesk/templates/helpdesk/ticket_list.html | 1 |
public function link($target, $link) $mode = $this->isDirectory($target) ? 'J' : 'H'; exec("mklink /{$mode} \"{$link}\" \"{$target}\""); } /** | public function link($target, $link) $mode = $this->isDirectory($target) ? 'J' : 'H'; exec("mklink /{$mode} ".escapeshellarg($link)." ".escapeshellarg($target)); } /** | GHSA-w2pm-r78h-4m7v | {'CWE-78'} | 8.8 | {'https://github.com/laravel/framework/commit/44c3feb604944599ad1c782a9942981c3991fa31'} | osv | OS Command Injection in Laravel Framework OS Command injection vulnerability in function link in Filesystem.php in Laravel Framework before 5.8.17. | 2022-01-06 | 1 | https://github.com/laravel/framework | https://github.com/laravel/framework/commit/44c3feb604944599ad1c782a9942981c3991fa31 | 44c3feb604944599ad1c782a9942981c3991fa31 | SINGLE | ['44c3feb604944599ad1c782a9942981c3991fa31'] | {'c7a3ca1c6df547a807807ffc782c13b92d44a1ad'} | 44c3feb604944599ad1c782a9942981c3991fa31 | 1 | 05/14/2019, 15:58:33 | use escapeshellarg on windows symlink | Taylor Otwell | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -254,7 +254,7 @@ public function link($target, $link)\n \n $mode = $this->isDirectory($target) ? 'J' : 'H';\n \n- exec(\"mklink /{$mode} \\\"{$link}\\\" \\\"{$target}\\\"\");\n+ exec(\"mklink /{$mode} \".escapeshellar... | php | CWE-78 | [
"src/Illuminate/Filesystem/Filesystem.php"
] | src/Illuminate/Filesystem/Filesystem.php | 1 |
public ShoppingCartData addItemsToShoppingCart( final ShoppingCartData shoppingC { ShoppingCart cartModel = null; /** * Sometimes a user logs in and a shopping cart is present in db (shoppingCartData * but ui has no cookie with shopping cart code so the cart code will ha... | public ShoppingCartData addItemsToShoppingCart( final ShoppingCartData shoppingC { ShoppingCart cartModel = null; if(item.getQuantity() < 1) item.setQuantity(1); /** * Sometimes a user logs in and a shopping cart is present in db (shoppingCartData * but ui has no cookie w... | GHSA-w8rc-pgxq-x2cj | {'CWE-20'} | 6.5 | {'https://github.com/shopizer-ecommerce/shopizer/commit/929ca0839a80c6f4dad087e0259089908787ad2a'} | osv | Negative charge in shopping cart in Shopizer ### Impact
Using API or Controller based versions negative quantity is not adequately validated hence creating incorrect shopping cart and order total.
### Patches
Adding a back-end verification to check that quantity parameter isn't negative. If so, it is set to 1. Patche... | 2020-04-22 | 1 | https://github.com/shopizer-ecommerce/shopizer | https://github.com/shopizer-ecommerce/shopizer/commit/929ca0839a80c6f4dad087e0259089908787ad2a | 929ca0839a80c6f4dad087e0259089908787ad2a | SINGLE | ['929ca0839a80c6f4dad087e0259089908787ad2a'] | {'de8a8e3183f8c5fed4695f889e309a6fff70adae', '6858049b39bdc51b71e6419b7c4bba1347737cb7'} | 929ca0839a80c6f4dad087e0259089908787ad2a | 1 | 04/10/2020, 13:35:12 | Merge pull request from GHSA-w8rc-pgxq-x2cj
Fixing negative charge vulnerability | Shopizer | null | {'additions': 5, 'deletions': 7, 'total': 12} | [
{
"additions": 5,
"changes": 12,
"deletions": 7,
"patch": "@@ -108,7 +108,7 @@ public ShoppingCartData addItemsToShoppingCart( final ShoppingCartData shoppingC\n {\n \n ShoppingCart cartModel = null;\n- \n+ if(item.getQuantity() < 1) item.setQuantity(1);\n /**\n ... | java | CWE-20 | [
"sm-shop/src/main/java/com/salesmanager/shop/store/controller/shoppingCart/facade/ShoppingCartFacadeImpl.java"
] | sm-shop/src/main/java/com/salesmanager/shop/store/controller/shoppingCart/facade/ShoppingCartFacadeImpl.java | 1 |
function untruncateYear(yearStr) { function preprocessRFC2822(s) { // Remove comments and folding whitespace and replace multiple-spaces with a single space return s .replace(/\([^)]*\)|[\n\t]/g, ' ') .replace(/(\s\s+)/g, ' ') .replace(/^\s\s*/, '') .replace(/\s\s*$/, ''); | function untruncateYear(yearStr) { function preprocessRFC2822(s) { // Remove comments and folding whitespace and replace multiple-spaces with a single space return s .replace(/\([^()]*\)|[\n\t]/g, ' ') .replace(/(\s\s+)/g, ' ') .replace(/^\s\s*/, '') .replace(/\s\s*$/, ''); | GHSA-wc69-rhjr-hc9g | {'CWE-400', 'CWE-1333'} | 7.5 | {'https://github.com/moment/moment/commit/9a3b5894f3d5d602948ac8a02e4ee528a49ca3a3'} | osv | Inefficient Regular Expression Complexity in moment ### Impact
* using string-to-date parsing in moment (more specifically rfc2822 parsing, which is tried by default) has quadratic (N^2) complexity on specific inputs
* noticeable slowdown is observed with inputs above 10k characters
* users who pass user-provided stri... | 2022-07-06 | 1 | https://github.com/moment/moment | https://github.com/moment/moment/commit/9a3b5894f3d5d602948ac8a02e4ee528a49ca3a3 | 9a3b5894f3d5d602948ac8a02e4ee528a49ca3a3 | SINGLE | ['9a3b5894f3d5d602948ac8a02e4ee528a49ca3a3'] | {'6374fd860aeff75e6c9d9d11540c6b22bc7ef175'} | 9a3b5894f3d5d602948ac8a02e4ee528a49ca3a3 | 1 | 07/06/2022, 15:28:25 | [bugfix] Fix redos in preprocessRFC2822 regex (#6015)
* fix ReDoS in preprocessRFC2822 regex
Fixes: [#2936](https://github.com/moment/moment/issues/6012)
Disallow nested rfc2822 comments to prevent quadratic regex execution time (i.e each open bracket is considered at most twice). | Khang Vo (doublevkay) | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -151,7 +151,7 @@ function untruncateYear(yearStr) {\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n- .replace(/\\([^)]*\\)|[\\n\\t]/g... | js | CWE-400 | [
"src/lib/create/from-string.js"
] | src/lib/create/from-string.js | 1 |
$.widget("ui.dialog", { uiDialogTitle = $( "<span>" ) .uniqueId() .addClass( "ui-dialog-title" ) .html( this.options.title || " " ) .prependTo( this.uiDialogTitlebar ); this.uiDialog.attr({ "aria-labelledby": uiDialogTitle.attr( "id" ) }); }, _createButtonPane: function() { var uiDialog... | $.widget("ui.dialog", { uiDialogTitle = $( "<span>" ) .uniqueId() .addClass( "ui-dialog-title" ) .prependTo( this.uiDialogTitlebar ); this._title( uiDialogTitle ); this.uiDialog.attr({ "aria-labelledby": uiDialogTitle.attr( "id" ) }); }, _title: function( title ) { if ( !this.options.title ) ... | GHSA-wcm2-9c89-wmfm | {'CWE-79'} | 0 | {'https://github.com/jquery/jquery-ui/commit/7e9060c109b928769a664dbcc2c17bd21231b6f3'} | osv | Cross-site Scripting in jquery-ui Cross-site scripting (XSS) vulnerability in jquery.ui.dialog.js in the Dialog widget in jQuery UI before 1.10.0 allows remote attackers to inject arbitrary web script or HTML via the title option. | 2017-10-24 | 1 | https://github.com/jquery/jquery-ui | https://github.com/jquery/jquery-ui/commit/7e9060c109b928769a664dbcc2c17bd21231b6f3 | 7e9060c109b928769a664dbcc2c17bd21231b6f3 | SINGLE | ['7e9060c109b928769a664dbcc2c17bd21231b6f3'] | {'60486ac632a0a1bbbb0c7449fe17bccfae11af80'} | 7e9060c109b928769a664dbcc2c17bd21231b6f3 | 1 | 11/26/2012, 09:14:36 | Dialog: Extract setting the title into a _title method, use .text() to prevent XSS. Fixes #6016 - Dialog: Title XSS Vulnerability. | Jörn Zaefferer | null | {'additions': 9, 'deletions': 4, 'total': 13} | [
{
"additions": 9,
"changes": 13,
"deletions": 4,
"patch": "@@ -352,14 +352,21 @@ $.widget(\"ui.dialog\", {\n \t\tuiDialogTitle = $( \"<span>\" )\n \t\t\t.uniqueId()\n \t\t\t.addClass( \"ui-dialog-title\" )\n-\t\t\t.html( this.options.title || \" \" )\n \t\t\t.prependTo( this.uiDialogTitlebar );... | js | CWE-79 | [
"ui/jquery.ui.dialog.js"
] | ui/jquery.ui.dialog.js | 1 |
class Conv3DBackpropInputOp : public OpKernel { input_shape = context->input(0).shape(); } ConvBackpropDimensions dims; OP_REQUIRES_OK(context, ConvBackpropComputeDimensions( "Conv3DBackpropInputOp", /*num_spatial_dims=*/3, class Conv3DCustomBackpropInputOp : public O... | 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 " "number of channels. ... | GHSA-wcv5-qrj6-9pfm | {'CWE-787', 'CWE-120'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/8f37b52e1320d8d72a9529b2468277791a261197'} | osv | Heap buffer overflow in `Conv3DBackprop*` ### Impact
Missing validation between arguments to `tf.raw_ops.Conv3DBackprop*` operations can result in heap buffer overflows:
```python
import tensorflow as tf
input_sizes = tf.constant([1, 1, 1, 1, 2], shape=[5], dtype=tf.int32)
filter_tensor = tf.constant([734.62745082331... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/8f37b52e1320d8d72a9529b2468277791a261197 | 8f37b52e1320d8d72a9529b2468277791a261197 | SINGLE | ['8f37b52e1320d8d72a9529b2468277791a261197'] | {'4814fafb0ca6b5ab58a09411523b2193fed23fed'} | 8f37b52e1320d8d72a9529b2468277791a261197 | 1 | 04/19/2021, 20:46:32 | Validate some shape requirements for `Conv3DBackpropFilter*` and `Conv3DBackpropInput*` ops.
Older versions of Eigen might otherwise crash / produce OOB read on specially crafted inputs.
PiperOrigin-RevId: 369293977
Change-Id: I58f51445a93936d7cf8e616f75de17677df36718 | Mihai Maruseac | null | {'additions': 56, 'deletions': 0, 'total': 56} | [
{
"additions": 56,
"changes": 56,
"deletions": 0,
"patch": "@@ -239,6 +239,20 @@ class Conv3DBackpropInputOp : public OpKernel {\n input_shape = context->input(0).shape();\n }\n \n+ OP_REQUIRES(\n+ context, input_shape.dim_size(4) == filter_shape.dim_size(3),\n+ errors::In... | cc | CWE-120 | [
"tensorflow/core/kernels/conv_grad_ops_3d.cc"
] | tensorflow/core/kernels/conv_grad_ops_3d.cc | 1 |
class Conv3DBackpropInputOp : public OpKernel { input_shape = context->input(0).shape(); } ConvBackpropDimensions dims; OP_REQUIRES_OK(context, ConvBackpropComputeDimensions( "Conv3DBackpropInputOp", /*num_spatial_dims=*/3, class Conv3DCustomBackpropInputOp : public O... | 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 " "number of channels. ... | GHSA-wcv5-qrj6-9pfm | {'CWE-787', 'CWE-120'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/8f37b52e1320d8d72a9529b2468277791a261197'} | osv | Heap buffer overflow in `Conv3DBackprop*` ### Impact
Missing validation between arguments to `tf.raw_ops.Conv3DBackprop*` operations can result in heap buffer overflows:
```python
import tensorflow as tf
input_sizes = tf.constant([1, 1, 1, 1, 2], shape=[5], dtype=tf.int32)
filter_tensor = tf.constant([734.62745082331... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/8f37b52e1320d8d72a9529b2468277791a261197 | 8f37b52e1320d8d72a9529b2468277791a261197 | SINGLE | ['8f37b52e1320d8d72a9529b2468277791a261197'] | {'4814fafb0ca6b5ab58a09411523b2193fed23fed'} | 8f37b52e1320d8d72a9529b2468277791a261197 | 1 | 04/19/2021, 20:46:32 | Validate some shape requirements for `Conv3DBackpropFilter*` and `Conv3DBackpropInput*` ops.
Older versions of Eigen might otherwise crash / produce OOB read on specially crafted inputs.
PiperOrigin-RevId: 369293977
Change-Id: I58f51445a93936d7cf8e616f75de17677df36718 | Mihai Maruseac | null | {'additions': 56, 'deletions': 0, 'total': 56} | [
{
"additions": 56,
"changes": 56,
"deletions": 0,
"patch": "@@ -239,6 +239,20 @@ class Conv3DBackpropInputOp : public OpKernel {\n input_shape = context->input(0).shape();\n }\n \n+ OP_REQUIRES(\n+ context, input_shape.dim_size(4) == filter_shape.dim_size(3),\n+ errors::In... | cc | CWE-787 | [
"tensorflow/core/kernels/conv_grad_ops_3d.cc"
] | tensorflow/core/kernels/conv_grad_ops_3d.cc | 1 |
bool ConstantFolding::IsFoldableUncached( } } for (const auto& output_prop : output_props) { const PartialTensorShape output_shape(output_prop.shape()); if (output_shape.IsFullyDefined()) { const int64_t num_bytes = output_shape.num_elements() * DataTypeSize(output_prop.dt... | bool ConstantFolding::IsFoldableUncached( } } for (const auto& output_prop : output_props) { PartialTensorShape output_shape; if (!PartialTensorShape::BuildPartialTensorShape(output_prop.shape(), &output_shape) .ok()) { ... | GHSA-wcv5-vrvr-3rx2 | {'CWE-190'} | 5.5 | {'https://github.com/tensorflow/tensorflow/commit/be7b286d40bc68cb0b56f702186cc4837d508058'} | osv | Integer Overflow or Wraparound in TensorFlow ### Impact
The Grappler component of TensorFlow is vulnerable to a denial of service via `CHECK`-failure (assertion failure) in [constant folding](https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/grappler/optimizers/const... | 2022-02-09 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/be7b286d40bc68cb0b56f702186cc4837d508058 | be7b286d40bc68cb0b56f702186cc4837d508058 | SINGLE | ['be7b286d40bc68cb0b56f702186cc4837d508058'] | {'6381a7b127bd276a3817a93e5423b15a06c33419'} | be7b286d40bc68cb0b56f702186cc4837d508058 | 1 | 11/15/2021, 21:55:14 | Fix `CHECK`-failure caused by constant folding code.
We're losing a `const` qualifier here, but unless we get to use more `StatusOr` objects, this is the best alternative.
PiperOrigin-RevId: 410072241
Change-Id: I69535c91490f0d23facb9587d2ff59db0782cda6 | Mihai Maruseac | null | {'additions': 6, 'deletions': 1, 'total': 7} | [
{
"additions": 6,
"changes": 7,
"deletions": 1,
"patch": "@@ -1017,7 +1017,12 @@ bool ConstantFolding::IsFoldableUncached(\n }\n }\n for (const auto& output_prop : output_props) {\n- const PartialTensorShape output_shape(output_prop.shape());\n+ PartialTensorShape output_shap... | cc | CWE-190 | [
"tensorflow/core/grappler/optimizers/constant_folding.cc"
] | tensorflow/core/grappler/optimizers/constant_folding.cc | 1 |
constexpr char kRelu6[] = "RELU6"; constexpr char kRelu1[] = "RELU_N1_TO_1"; bool L2NormalizeReduceAxis(Value sq_op, DenseElementsAttr axis) { if (sq_op.getType().cast<ShapedType>().getRank() - 1 == *axis.getValues<int>().begin() || *axis.getValues<int>().begin() == -1) { | constexpr char kRelu6[] = "RELU6"; constexpr char kRelu1[] = "RELU_N1_TO_1"; bool L2NormalizeReduceAxis(Value sq_op, DenseElementsAttr axis) { if (axis.getNumElements() == 0) { return false; } if (sq_op.getType().cast<ShapedType>().getRank() - 1 == *axis.getValues<int>().begin() || *axis.get... | GHSA-wf5p-c75w-w3wh | {'CWE-476'} | 7.8 | {'https://github.com/tensorflow/tensorflow/commit/d6b57f461b39fd1aa8c1b870f1b974aac3554955'} | osv | Null pointer dereference in TFLite MLIR optimizations ### Impact
An attacker can craft a TFLite model that would trigger a null pointer dereference, which would result in a crash and denial of service:
This is caused by the MLIR optimization of `L2NormalizeReduceAxis` operator. The [implementation](https://github.com/... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/d6b57f461b39fd1aa8c1b870f1b974aac3554955 | d6b57f461b39fd1aa8c1b870f1b974aac3554955 | SINGLE | ['d6b57f461b39fd1aa8c1b870f1b974aac3554955'] | {'c26b15e7565e4f50ad6ea25b09127a019ad77c14'} | d6b57f461b39fd1aa8c1b870f1b974aac3554955 | 1 | 07/27/2021, 23:20:45 | Prevent nullptr dereference in MLIR TFLite dialect/optimizer.
PiperOrigin-RevId: 387220762
Change-Id: Id136ef04bb3d36123b4685d316ae81a9ec924d6b | Mihai Maruseac | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -68,6 +68,9 @@ constexpr char kRelu6[] = \"RELU6\";\n constexpr char kRelu1[] = \"RELU_N1_TO_1\";\n \n bool L2NormalizeReduceAxis(Value sq_op, DenseElementsAttr axis) {\n+ if (axis.getNumElements() == 0) {\n+ return false;\n+ }\n if... | cc | CWE-476 | [
"tensorflow/compiler/mlir/lite/transforms/optimize.cc"
] | tensorflow/compiler/mlir/lite/transforms/optimize.cc | 1 |
public function isDangerFilename($filename){ || $isDangerStr($filename , ".xml") || $isDangerStr($filename , ".xxhtml") || $isDangerStr($filename , ".asp") ) { return true; } | public function isDangerFilename($filename){ || $isDangerStr($filename , ".xml") || $isDangerStr($filename , ".xxhtml") || $isDangerStr($filename , ".asp") || $isDangerStr($filename , ".xsl") ) { return true; } | GHSA-wg4r-q74r-p7c8 | {'CWE-79'} | 5.4 | {'https://github.com/star7th/showdoc/commit/4b6e6603c714aab1de346c5f5cb0bbb4c871be1f'} | osv | Cross-site Scripting in ShowDoc ShowDoc is vulnerable to stored cross-site scripting due to unrestricted file upload in versions 2.10.3 and prior. A patch is available and anticipated to be part of version 2.10.4. | 2022-03-15 | 1 | https://github.com/star7th/showdoc | https://github.com/star7th/showdoc/commit/4b6e6603c714aab1de346c5f5cb0bbb4c871be1f | 4b6e6603c714aab1de346c5f5cb0bbb4c871be1f | SINGLE | ['4b6e6603c714aab1de346c5f5cb0bbb4c871be1f'] | {'d4363f73fb50193c9701982b59642696edf834a1', '61a23da1925119454d8477e9cf884b6cba93364c'} | 4b6e6603c714aab1de346c5f5cb0bbb4c871be1f | 1 | 03/13/2022, 12:16:25 | Merge pull request #1630 from ajaysenr/master
Update AttachmentModel.class.php | star7th | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -305,6 +305,7 @@ public function isDangerFilename($filename){\n \t\t\t|| $isDangerStr($filename , \".xml\")\n \t\t\t|| $isDangerStr($filename , \".xxhtml\")\n \t\t\t|| $isDangerStr($filename , \".asp\")\t\t\t\n+\t\t\t|| $isDangerStr($filen... | php | CWE-79 | [
"server/Application/Api/Model/AttachmentModel.class.php"
] | server/Application/Api/Model/AttachmentModel.class.php | 1 |
public function isAllowedFilename($filename){ '.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso','.bz2','.epub', '.pdf','.ofd','.swf','.epub','.xps', '.doc','.docx','.odt','.rtf','.docm','.dotm','.dot','.dotx','.wps','.wpt', '.ppt','.pptx','.xls','.xlsx','.txt','.md','.psd','.csv', '.cer','.ppt','.p... | public function isAllowedFilename($filename){ '.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso','.bz2','.epub', '.pdf','.ofd','.swf','.epub','.xps', '.doc','.docx','.odt','.rtf','.docm','.dotm','.dot','.dotx','.wps','.wpt', '.ppt','.pptx','.xls','.xlsx','.txt','.psd','.csv', '.cer','.ppt','.pub','.... | GHSA-wg8p-w946-c482 | {'CWE-79'} | 5.4 | {'https://github.com/star7th/showdoc/commit/56e450c3adf75c707500d7231a78c9fc894c7f13'} | osv | Cross-site Scripting in ShowDoc ShowDoc prior to 2.10.4 is vulnerable to stored cross-site scripting via file upload. | 2022-03-16 | 1 | https://github.com/star7th/showdoc | https://github.com/star7th/showdoc/commit/56e450c3adf75c707500d7231a78c9fc894c7f13 | 56e450c3adf75c707500d7231a78c9fc894c7f13 | SINGLE | ['56e450c3adf75c707500d7231a78c9fc894c7f13'] | {'237ac6d43bf3728bf3587c486a23b4a48ea7acb3'} | 56e450c3adf75c707500d7231a78c9fc894c7f13 | 1 | 03/14/2022, 12:15:13 | file upload bug | star7th | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -329,7 +329,7 @@ public function isAllowedFilename($filename){\n \t\t\t'.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso','.bz2','.epub',\n \t\t\t'.pdf','.ofd','.swf','.epub','.xps',\n \t\t\t'.doc','.docx','.odt','.rtf','.docm','.dotm'... | php | CWE-79 | [
"server/Application/Api/Model/AttachmentModel.class.php"
] | server/Application/Api/Model/AttachmentModel.class.php | 1 |
def self.reload! prepare! end def self.run! # :nodoc: if check! super else | def self.reload! prepare! end def self.run!(reset: false) # :nodoc: if check! super else | GHSA-wh98-p28r-vrc9 | {'CWE-200'} | 7.4 | {'https://github.com/rails/rails/commit/f9a2ad03943d5c2ba54e1d45f155442b519c75da'} | osv | Exposure of information in Action Pack ### Impact
Under certain circumstances response bodies will not be closed, for example a [bug in a webserver](https://github.com/puma/puma/pull/2812) or a bug in a Rack middleware. In the event a response is *not* notified of a `close`, `ActionDispatch::Executor` will not know t... | 2022-02-11 | 1 | https://github.com/rails/rails | https://github.com/rails/rails/commit/f9a2ad03943d5c2ba54e1d45f155442b519c75da | f9a2ad03943d5c2ba54e1d45f155442b519c75da | SINGLE | ['f9a2ad03943d5c2ba54e1d45f155442b519c75da'] | {'761a2e25520566d932c41c740b8a5c513d839de8'} | f9a2ad03943d5c2ba54e1d45f155442b519c75da | 1 | 02/11/2022, 19:23:01 | Fix reloader to work with new Executor signature
This is a follow up to [CVE-2022-23633]. | Aaron Patterson | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -58,7 +58,7 @@ def self.reload!\n prepare!\n end\n \n- def self.run! # :nodoc:\n+ def self.run!(reset: false) # :nodoc:\n if check!\n super\n else",
"path": "activesupport/lib/active_support/reloader... | rb | CWE-200 | [
"activesupport/lib/active_support/reloader.rb"
] | activesupport/lib/active_support/reloader.rb | 1 |
class DrawBoundingBoxesOp : public OpKernel { errors::InvalidArgument("Channel depth should be either 1 (GRY), " "3 (RGB), or 4 (RGBA)")); const int64 batch_size = images.dim_size(0); const int64 height = images.dim_size(1); const int64 width = images.dim_size(2); | class DrawBoundingBoxesOp : public OpKernel { errors::InvalidArgument("Channel depth should be either 1 (GRY), " "3 (RGB), or 4 (RGBA)")); OP_REQUIRES( context, boxes.dim_size(2) == 4, errors::InvalidArgument( "The size of the third dimension of ... | GHSA-whr9-vfh2-7hm6 | {'CWE-787'} | 4.5 | {'https://github.com/tensorflow/tensorflow/commit/79865b542f9ffdc9caeb255631f7c56f1d4b6517'} | osv | Memory corruption in `DrawBoundingBoxesV2` ### Impact
The implementation of `tf.raw_ops.MaxPoolGradWithArgmax` can cause reads outside of bounds of heap allocated data if attacker supplies specially crafted inputs:
```python
import tensorflow as tf
images = tf.fill([10, 96, 0, 1], 0.)
boxes = tf.fill([10, 53, 0], 0.)... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/79865b542f9ffdc9caeb255631f7c56f1d4b6517 | 79865b542f9ffdc9caeb255631f7c56f1d4b6517 | SINGLE | ['79865b542f9ffdc9caeb255631f7c56f1d4b6517'] | {'31bd5026304677faa8a0b77602c6154171b9aec1'} | 79865b542f9ffdc9caeb255631f7c56f1d4b6517 | 1 | 05/05/2021, 01:05:46 | Fix memory corruption issue with `tf.raw_ops.DrawBoundingBoxesV2`.
PiperOrigin-RevId: 372033910
Change-Id: I8a9f4efc1c8ddaacbc26ec1fbe4bfdd6791c226d | Amit Patankar | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -73,6 +73,12 @@ class DrawBoundingBoxesOp : public OpKernel {\n errors::InvalidArgument(\"Channel depth should be either 1 (GRY), \"\n \"3 (RGB), or 4 (RGBA)\"));\n \n+ OP_REQUIRES(\n+ cont... | cc | CWE-787 | [
"tensorflow/core/kernels/image/draw_bounding_box_op.cc"
] | tensorflow/core/kernels/image/draw_bounding_box_op.cc | 1 |
function( $match ) { foreach ( $remove as $remove_string ) { while ( strpos( $string, $remove_string ) !== false ) { $string = str_ireplace( $remove, '', $string ); } | function( $match ) { foreach ( $remove as $remove_string ) { while ( stripos( $string, $remove_string ) !== false ) { $string = str_ireplace( $remove, '', $string ); } | GHSA-wjh9-344g-vc49 | {'CWE-79'} | 5.4 | {'https://github.com/francoisjacquet/rosariosis/commit/6b22c0b5b40fad891c8cf9e7eeff3e42a35c0bf8'} | osv | Cross-site Scripting in RosarioSIS Cross-site Scripting (XSS) - Stored in GitHub repository francoisjacquet/rosariosis prior to 9.0. | 2022-06-09 | 1 | https://github.com/francoisjacquet/rosariosis | https://github.com/francoisjacquet/rosariosis/commit/6b22c0b5b40fad891c8cf9e7eeff3e42a35c0bf8 | 6b22c0b5b40fad891c8cf9e7eeff3e42a35c0bf8 | SINGLE | ['6b22c0b5b40fad891c8cf9e7eeff3e42a35c0bf8'] | {'25eb3196e26df31917dfef87aa9f66f78c1646ea'} | 6b22c0b5b40fad891c8cf9e7eeff3e42a35c0bf8 | 1 | 06/04/2022, 11:44:21 | Fix stored XSS security issue: remove inline JS from URL in PreparePHP_SELF.fnc.php | François Jacquet | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -200,7 +200,7 @@ function( $match ) {\n \n \tforeach ( $remove as $remove_string )\n \t{\n-\t\twhile ( strpos( $string, $remove_string ) !== false )\n+\t\twhile ( stripos( $string, $remove_string ) !== false )\n \t\t{\n \t\t\t$string = str... | php | CWE-79 | [
"functions/PreparePHP_SELF.fnc.php"
] | functions/PreparePHP_SELF.fnc.php | 1 |
class SaveV2 : public OpKernel { const Tensor& shape_and_slices = context->input(2); ValidateInputs(true /* is save op */, context, prefix, tensor_names, shape_and_slices); const int kFixedInputs = 3; // Prefix, tensor names, shape_and_slices. const int num_tensors = static_cast<in... | class SaveV2 : public OpKernel { const Tensor& shape_and_slices = context->input(2); ValidateInputs(true /* is save op */, context, prefix, tensor_names, shape_and_slices); if (!context->status().ok()) return; const int kFixedInputs = 3; // Prefix, tensor names, shape_and_slices. ... | GHSA-wp77-4gmm-7cq8 | {'CWE-476'} | 7.8 | {'https://github.com/tensorflow/tensorflow/commit/9728c60e136912a12d99ca56e106b7cce7af5986'} | osv | Incorrect validation of `SaveV2` inputs ### Impact
The code for `tf.raw_ops.SaveV2` does not properly validate the inputs and an attacker can trigger a null pointer dereference:
```python
import tensorflow as tf
tf.raw_ops.SaveV2(
prefix=['tensorflow'],
tensor_name=['v'],
shape_and_slices=[],
tensors=[1,2,3])... | 2021-08-25 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/9728c60e136912a12d99ca56e106b7cce7af5986 | 9728c60e136912a12d99ca56e106b7cce7af5986 | SINGLE | ['9728c60e136912a12d99ca56e106b7cce7af5986'] | {'f2a673bd34f0d64b8e40a551ac78989d16daad09'} | 9728c60e136912a12d99ca56e106b7cce7af5986 | 1 | 07/31/2021, 02:05:41 | Ensure validation sticks in `save_restore_v2_ops.cc`
PiperOrigin-RevId: 387924206
Change-Id: I6156842eb3230076b5812c0815f3e66bd5241454 | Mihai Maruseac | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -98,6 +98,7 @@ class SaveV2 : public OpKernel {\n const Tensor& shape_and_slices = context->input(2);\n ValidateInputs(true /* is save op */, context, prefix, tensor_names,\n shape_and_slices);\n+ if (!context... | cc | CWE-476 | [
"tensorflow/core/kernels/save_restore_v2_ops.cc"
] | tensorflow/core/kernels/save_restore_v2_ops.cc | 1 |
function simpleGet (opts, cb) { if (opts.json) opts.headers.accept = 'application/json' if (opts.method) opts.method = opts.method.toUpperCase() const protocol = opts.protocol === 'https:' ? https : http // Support http/https urls const req = protocol.request(opts, res => { if (opts.followRedirects !== fa... | function simpleGet (opts, cb) { if (opts.json) opts.headers.accept = 'application/json' if (opts.method) opts.method = opts.method.toUpperCase() const originalHost = opts.hostname // hostname before potential redirect const protocol = opts.protocol === 'https:' ? https : http // Support http/https urls cons... | GHSA-wpg7-2c88-r8xv | {'CWE-200'} | 7.5 | {'https://github.com/feross/simple-get/commit/e4af095e06cd69a9235013e8507e220a79b9684f'} | osv | Exposure of Sensitive Information in simple-get In versions of simple-get prior to 4.0.1, 3.1.1, and 2.8.2, when fetching a remote url with a cookie location response, headers will be followed, potentially resulting in an exposure of the session cookie to a third party. | 2022-01-28 | 1 | https://github.com/feross/simple-get | https://github.com/feross/simple-get/commit/e4af095e06cd69a9235013e8507e220a79b9684f | e4af095e06cd69a9235013e8507e220a79b9684f | SINGLE | ['e4af095e06cd69a9235013e8507e220a79b9684f'] | {'81eaf56c012dec4f64f223f4c41811e32ea2ce53', '6e21f5eae1141244e14806b412bde0a8c46e1903'} | e4af095e06cd69a9235013e8507e220a79b9684f | 1 | 01/25/2022, 03:23:27 | Merge pull request #73 from ranjit-git/master | Feross Aboukhadijeh | null | {'additions': 8, 'deletions': 0, 'total': 8} | [
{
"additions": 8,
"changes": 8,
"deletions": 0,
"patch": "@@ -44,13 +44,21 @@ function simpleGet (opts, cb) {\n if (opts.json) opts.headers.accept = 'application/json'\n if (opts.method) opts.method = opts.method.toUpperCase()\n \n+ const originalHost = opts.hostname // hostname before potentia... | js | CWE-200 | [
"index.js"
] | index.js | 1 |
func (mounter *Mounter) Mount(source string, target string, fstype string, optio return fmt.Errorf("azureMount: only cifs mount is supported now, fstype: %q, mounting source (%q), target (%q), with options (%q)", fstype, source, target, options) } cmdLine := fmt.Sprintf(`$User = "%s";$PWord = ConvertTo-SecureS... | func (mounter *Mounter) Mount(source string, target string, fstype string, optio return fmt.Errorf("azureMount: only cifs mount is supported now, fstype: %q, mounting source (%q), target (%q), with options (%q)", fstype, source, target, options) } bindSource = source // use PowerShell Environment Variables ... | GHSA-wqwf-x5cj-rg56 | {'CWE-78'} | 7.1 | {'https://github.com/kubernetes/kubernetes/commit/d65039c56ce4de5f2efdc38aa1284eeb95f89169'} | osv | Arbitrary Command Injection In Kubernetes versions 1.9.0-1.9.9, 1.10.0-1.10.5, and 1.11.0-1.11.1, user input was handled insecurely while setting up volume mounts on Windows nodes, which could lead to command line argument injection. | 2022-02-15 | 1 | https://github.com/kubernetes/kubernetes | https://github.com/kubernetes/kubernetes/commit/d65039c56ce4de5f2efdc38aa1284eeb95f89169 | d65039c56ce4de5f2efdc38aa1284eeb95f89169 | SINGLE | ['d65039c56ce4de5f2efdc38aa1284eeb95f89169'] | {'dc0afb24d138220cb53d9be3298f1539b0be4f7a', '27bc865cc1bffb97d4dff38492aa9f830f859e45'} | d65039c56ce4de5f2efdc38aa1284eeb95f89169 | 1 | 07/03/2018, 13:16:06 | Merge pull request #65751 from andyzhangx/mount-windows-fix
Automatic merge from submit-queue (batch tested with PRs 65381, 65751). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">h... | Kubernetes Submit Queue | null | {'additions': 12, 'deletions': 6, 'total': 18} | [
{
"additions": 12,
"changes": 18,
"deletions": 6,
"patch": "@@ -83,14 +83,20 @@ func (mounter *Mounter) Mount(source string, target string, fstype string, optio\n \t\t\treturn fmt.Errorf(\"azureMount: only cifs mount is supported now, fstype: %q, mounting source (%q), target (%q), with options (%q)\... | go | CWE-78 | [
"pkg/util/mount/mount_windows.go"
] | pkg/util/mount/mount_windows.go | 1 |
$("#btn-upload-format").on("change", function () { if (filename.substring(3, 11) === "fakepath") { filename = filename.substring(12); } // Remove c:\fake at beginning from localhost chrome $("#upload-format").html(filename); }); $("#btn-upload-cover").on("change", function () { var filename = ... | $("#btn-upload-format").on("change", function () { if (filename.substring(3, 11) === "fakepath") { filename = filename.substring(12); } // Remove c:\fake at beginning from localhost chrome $("#upload-format").text(filename); }); $("#btn-upload-cover").on("change", function () { var filename = ... | GHSA-wrp6-9w7f-3wxg | {'CWE-79'} | 7.3 | {'https://github.com/janeczku/calibre-web/commit/7ad419dc8c12180e842a82118f4866ac3d074bc5'} | osv | calibre-web is vulnerable to Cross-site Scripting calibre-web is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | 2022-01-21 | 1 | https://github.com/janeczku/calibre-web | https://github.com/janeczku/calibre-web/commit/7ad419dc8c12180e842a82118f4866ac3d074bc5 | 7ad419dc8c12180e842a82118f4866ac3d074bc5 | SINGLE | ['7ad419dc8c12180e842a82118f4866ac3d074bc5'] | {'bcdc97641447965af486964537f3821f47b28874'} | 7ad419dc8c12180e842a82118f4866ac3d074bc5 | 1 | 11/20/2021, 12:40:23 | Fix upload of cover and book formats containing html characters | Ozzie Isaacs | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -248,15 +248,15 @@ $(\"#btn-upload-format\").on(\"change\", function () {\n if (filename.substring(3, 11) === \"fakepath\") {\n filename = filename.substring(12);\n } // Remove c:\\fake at beginning from localhost chrome\n-... | js | CWE-79 | [
"cps/static/js/edit_books.js"
] | cps/static/js/edit_books.js | 1 |
public function render_assign_user_summary(\assign_user_summary $summary) { $fullname = fullname($summary->user, $summary->viewfullnames); $extrainfo = array(); foreach ($summary->extrauserfields as $extrafield) { $extrainfo[] = $summary->user->$extrafield; ... | public function render_assign_user_summary(\assign_user_summary $summary) { $fullname = fullname($summary->user, $summary->viewfullnames); $extrainfo = array(); foreach ($summary->extrauserfields as $extrafield) { $extrainfo[] = s($summary->user->$extrafield); ... | GHSA-wvh5-78h5-gmgr | {'CWE-79'} | 5.4 | {'https://github.com/moodle/moodle/commit/6abe964bbac41b5e40a81b40962f7044b0dc201e'} | osv | Cross-site Scripting in moodle A flaw was found in moodle where ID numbers displayed when bulk allocating markers to assignments required additional sanitizing to prevent a stored XSS risk. | 2022-05-19 | 1 | https://github.com/moodle/moodle | https://github.com/moodle/moodle/commit/6abe964bbac41b5e40a81b40962f7044b0dc201e | 6abe964bbac41b5e40a81b40962f7044b0dc201e | SINGLE | ['6abe964bbac41b5e40a81b40962f7044b0dc201e'] | {'11b2cc4cb5cf0693414f0e84cb790e487ae33a24'} | 6abe964bbac41b5e40a81b40962f7044b0dc201e | 1 | 03/15/2022, 00:10:25 | MDL-74204 mod_assign: escape identity fields in allocate marker form. | Paul Holden | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -168,7 +168,7 @@ public function render_assign_user_summary(\\assign_user_summary $summary) {\n $fullname = fullname($summary->user, $summary->viewfullnames);\n $extrainfo = array();\n foreach ($summary-... | php | CWE-79 | [
"mod/assign/classes/output/renderer.php"
] | mod/assign/classes/output/renderer.php | 1 |
uploads.upload = async function (socket, data) { 'user.updateCover': socketUser.updateCover, 'groups.cover.update': socketGroup.cover.update, }; if (!socket.uid || !data || !data.chunk || !data.params || !data.params.method || !methodToFunc[data.params.method]) { throw new Error('[[error:invalid-data]]'); } ... | uploads.upload = async function (socket, data) { 'user.updateCover': socketUser.updateCover, 'groups.cover.update': socketGroup.cover.update, }; if (!socket.uid || !data || !data.chunk || !data.params || !data.params.method || !methodToFunc.hasOwnProperty(data.params.method)) { throw new Error('[[error:inval... | GHSA-wx69-rvg3-x7fc | {'CWE-79'} | 9 | {'https://github.com/NodeBB/NodeBB/commit/1783f918bc19568f421473824461ff2ed7755e4c'} | osv | XSS via prototype pollution in NodeBB ### Impact
A prototype pollution vulnerability in the uploader module allowed a malicious user to inject arbitrary data (i.e. javascript) into the DOM, theoretically allowing for an account takeover when used in conjunction with a path traversal vulnerability disclosed at the same... | 2021-11-30 | 1 | https://github.com/NodeBB/NodeBB | https://github.com/NodeBB/NodeBB/commit/1783f918bc19568f421473824461ff2ed7755e4c | 1783f918bc19568f421473824461ff2ed7755e4c | SINGLE | ['1783f918bc19568f421473824461ff2ed7755e4c'] | {'c8b2fc46dc698db687379106b3f01c71b80f495f'} | 1783f918bc19568f421473824461ff2ed7755e4c | 1 | 10/25/2021, 17:17:33 | fix: guard against prototype pollution | Barış Soner Uşaklı | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -15,11 +15,12 @@ uploads.upload = async function (socket, data) {\n \t\t'user.updateCover': socketUser.updateCover,\n \t\t'groups.cover.update': socketGroup.cover.update,\n \t};\n-\tif (!socket.uid || !data || !data.chunk || !data.params |... | js | CWE-79 | [
"src/socket.io/uploads.js"
] | src/socket.io/uploads.js | 1 |
public function contactInformation() { public function contactInformationSave(Request $request) { session_append_array('checkout_v2', [ 'first_name'=> $request->get('first_name'), 'last_name'=> $request->get('last_name'), 'email'=> $request->get('email'), '... | public function contactInformation() { public function contactInformationSave(Request $request) { $firstName = strip_tags($request->get('first_name')); $lastName = strip_tags($request->get('last_name')); $email = strip_tags($request->get('email')); $phone = strip_tags($request->ge... | GHSA-x28w-hvwc-mp75 | {'CWE-94', 'CWE-96'} | 7.7 | {'https://github.com/microweber/microweber/commit/b2baab6e582b2efe63788d367a2bb61a2fa26470'} | osv | Static Code Injection in Microweber Microweber is a new generation CMS with drag and drop. Prior to version 1.3, Microweber is vulnerable to static code injection. | 2022-03-11 | 1 | https://github.com/microweber/microweber | https://github.com/microweber/microweber/commit/b2baab6e582b2efe63788d367a2bb61a2fa26470 | b2baab6e582b2efe63788d367a2bb61a2fa26470 | SINGLE | ['b2baab6e582b2efe63788d367a2bb61a2fa26470'] | {'a15da374af81c3cd312ee1639e4c6f56c4839f7e'} | b2baab6e582b2efe63788d367a2bb61a2fa26470 | 1 | 03/09/2022, 11:13:43 | Update ContactInformationTrait.php | Bozhidar Slaveykov | null | {'additions': 9, 'deletions': 4, 'total': 13} | [
{
"additions": 9,
"changes": 13,
"deletions": 4,
"patch": "@@ -36,11 +36,16 @@ public function contactInformation() {\n \n public function contactInformationSave(Request $request) {\n \n+ $firstName = strip_tags($request->get('first_name'));\n+ $lastName = strip_tags($request->get(... | php | CWE-94 | [
"src/MicroweberPackages/Checkout/Http/Controllers/Traits/ContactInformationTrait.php"
] | src/MicroweberPackages/Checkout/Http/Controllers/Traits/ContactInformationTrait.php | 1 |
SqlString.escape = function(val, stringifyObjects, timeZone, dialect) { } } if (dialect == "postgres") { // http://www.postgresql.org/docs/8.2/static/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS val = val.replace(/'/g, "''"); } else { val = val.replace(/[\0\n\r\b\t\\\'\"\x1a]/g, function(s) { | SqlString.escape = function(val, stringifyObjects, timeZone, dialect) { } } if (dialect === "postgres" || dialect === "sqlite") { // http://www.postgresql.org/docs/8.2/static/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS // http://stackoverflow.com/q/603572/130598 val = val.replace(/'/g, "''"); } e... | GHSA-x2jc-pwfj-h9p3 | {'CWE-89'} | 0 | {'https://github.com/sequelize/sequelize/commit/c876192aa6ce1f67e22b26a4d175b8478615f42d'} | osv | SQL Injection in sequelize Affected versions of `sequelize` use MySQL's backslash-based escape syntax when connecting to SQLite, despite the fact that SQLite uses PostgreSQL's escape syntax, which can result in a SQL Injection vulnerability.
## Recommendation
Update to version 1.7.0-alpha3 or later. | 2019-02-18 | 1 | https://github.com/sequelize/sequelize | https://github.com/sequelize/sequelize/commit/c876192aa6ce1f67e22b26a4d175b8478615f42d | c876192aa6ce1f67e22b26a4d175b8478615f42d | SINGLE | ['c876192aa6ce1f67e22b26a4d175b8478615f42d'] | {'7dc35e3889e3fa0859b96be41092717444cc2a38'} | c876192aa6ce1f67e22b26a4d175b8478615f42d | 1 | 06/15/2013, 03:24:59 | Fix string escaping for sqlite
SQLite was defaulting to the MySQL backslash-escaped style, but it uses
postgres-style escaping. This is a SQL-injection vulnerability, and
shouldn't be taken lightly (although SQLite is mostly for testing). | Benjamin Woodruff | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -37,8 +37,9 @@ SqlString.escape = function(val, stringifyObjects, timeZone, dialect) {\n }\n }\n \n- if (dialect == \"postgres\") {\n+ if (dialect === \"postgres\" || dialect === \"sqlite\") {\n // http://www.postgresql.org/doc... | js | CWE-89 | [
"lib/sql-string.js"
] | lib/sql-string.js | 1 |
exports.extract = function (cwd, opts) { var onlink = function () { if (win32) return next() // skip links on win for now before it can be tested xfs.unlink(name, function () { var srcpath = path.resolve(cwd, header.linkname) xfs.link(srcpath, name, function (err) { if (err &... | exports.extract = function (cwd, opts) { var onlink = function () { if (win32) return next() // skip links on win for now before it can be tested xfs.unlink(name, function () { var srcpath = path.join(cwd, path.join('/', header.linkname)) xfs.link(srcpath, name, function (err) { ... | GHSA-x2mc-8fgj-3wmr | {'CWE-20'} | 7.5 | {'https://github.com/mafintosh/tar-fs/commit/06672828e6fa29ac8551b1b6f36c852a9a3c58a2'} | osv | Improper Input Validation in tar-fs A vulnerability was found in tar-fs before 1.16.2. An Arbitrary File Overwrite issue exists when extracting a tarball containing a hardlink to a file that already exists on the system, in conjunction with a later plain file with the same name as the hardlink. This plain file content ... | 2019-05-01 | 1 | https://github.com/mafintosh/tar-fs | https://github.com/mafintosh/tar-fs/commit/06672828e6fa29ac8551b1b6f36c852a9a3c58a2 | 06672828e6fa29ac8551b1b6f36c852a9a3c58a2 | SINGLE | ['06672828e6fa29ac8551b1b6f36c852a9a3c58a2'] | {'7b4ab17e950832cfd3e67421e48898fdb50318fc'} | 06672828e6fa29ac8551b1b6f36c852a9a3c58a2 | 1 | 04/30/2018, 11:20:56 | force hardlink targets to be in the tar | Mathias Buus | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -261,7 +261,7 @@ exports.extract = function (cwd, opts) {\n var onlink = function () {\n if (win32) return next() // skip links on win for now before it can be tested\n xfs.unlink(name, function () {\n- var srcpath =... | js | CWE-20 | [
"index.js"
] | index.js | 1 |
package protocol import ( "errors" "io" ) func ReadMessage(r io.Reader) (interface{}, error) { if header.magic != magic { return nil, errors.New("magic mismatch") } buf = make([]byte, int(header.messageLength)) if _, err := io.ReadFull(r, buf); err != nil { | package protocol import ( "errors" "fmt" "io" ) func ReadMessage(r io.Reader) (interface{}, error) { if header.magic != magic { return nil, errors.New("magic mismatch") } if header.messageLength < 0 || header.messageLength > 1024 { return nil, fmt.Errorf("bad length (%d)", header.messageLength) } buf = ... | GHSA-x462-89pf-6r5h | {'CWE-20'} | 7.5 | {'https://github.com/syncthing/syncthing/commit/fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97'} | osv | Crash due to malformed relay protocol message ### Impact
1. `syncthing` can be caused to crash and exit if sent a malformed relay
protocol message message with a negative length field.
2. The relay server `strelaysrv` can be caused to crash and exit if sent
a malformed relay protocol message with a negative len... | 2021-05-21 | 1 | https://github.com/syncthing/syncthing | https://github.com/syncthing/syncthing/commit/fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97 | fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97 | SINGLE | ['fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97'] | {'0d7a77ba85c69f9e427981b906c9a4941c4c0f9c'} | fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97 | 1 | 04/06/2021, 06:00:00 | Merge pull request from GHSA-x462-89pf-6r5h | Jakob Borg | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -4,6 +4,7 @@ package protocol\n \n import (\n \t\"errors\"\n+\t\"fmt\"\n \t\"io\"\n )\n \n@@ -86,6 +87,9 @@ func ReadMessage(r io.Reader) (interface{}, error) {\n \tif header.magic != magic {\n \t\treturn nil, errors.New(\"magic mismatch\"... | go | CWE-20 | [
"lib/relay/protocol/protocol.go"
] | lib/relay/protocol/protocol.go | 1 |
limitations under the License. #include <algorithm> #include <vector> #define EIGEN_USE_THREADS #define GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK class Im2ColConvFunctor { return; } CHECK_GT(output_width, 0); CHECK_GT(output_height, 0); int filter_left_offset; int filter_top_offset; if (padd... | limitations under the License. #include <algorithm> #include <vector> #include "tensorflow/core/platform/errors.h" #define EIGEN_USE_THREADS #define GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK class Im2ColConvFunctor { return; } OP_REQUIRES( context, output_width > 0, errors::InvalidArgument(... | GHSA-x4g7-fvjj-prg8 | {'CWE-369'} | 2.5 | {'https://github.com/tensorflow/tensorflow/commit/cfa91be9863a91d5105a3b4941096044ab32036b'} | osv | Division by 0 in `QuantizedConv2D` ### Impact
An attacker can trigger a division by 0 in `tf.raw_ops.QuantizedConv2D`:
```python
import tensorflow as tf
input = tf.zeros([1, 1, 1, 1], dtype=tf.quint8)
filter = tf.constant([], shape=[1, 0, 1, 1], dtype=tf.quint8)
min_input = tf.constant(0.0)
max_input = tf.constant(0.... | 2021-05-21 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/cfa91be9863a91d5105a3b4941096044ab32036b | cfa91be9863a91d5105a3b4941096044ab32036b | SINGLE | ['cfa91be9863a91d5105a3b4941096044ab32036b'] | {'00e9a4d67d76703fa1aee33dac582acf317e0e81'} | cfa91be9863a91d5105a3b4941096044ab32036b | 1 | 04/20/2021, 01:58:47 | Fix one FPE and remove two CHECK-fails.
PiperOrigin-RevId: 369349640
Change-Id: I1fedbfc2b5bab635c5cb51f103d7c9176f79831a | Mihai Maruseac | null | {'additions': 11, 'deletions': 2, 'total': 13} | [
{
"additions": 11,
"changes": 13,
"deletions": 2,
"patch": "@@ -18,6 +18,8 @@ limitations under the License.\n #include <algorithm>\n #include <vector>\n \n+#include \"tensorflow/core/platform/errors.h\"\n+\n #define EIGEN_USE_THREADS\n \n #define GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK\n@@ -227,8 +229,... | cc | CWE-369 | [
"tensorflow/core/kernels/quantized_conv_ops.cc"
] | tensorflow/core/kernels/quantized_conv_ops.cc | 1 |
See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "absl/container/flat_hash_map.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/op_requires... | See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include <limits> #include "absl/container/flat_hash_map.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/fr... | GHSA-x4qx-4fjv-hmw6 | {'CWE-190'} | 6.5 | {'https://github.com/tensorflow/tensorflow/commit/6f4d3e8139ec724dbbcb40505891c81dd1052c4a'} | osv | Integer overflow leading to crash in Tensorflow ### Impact
The [implementation of `SparseCountSparseOutput`](https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/count_ops.cc#L168-L273) can be made to crash a TensorFlow process by an integer overflow whose resu... | 2022-02-09 | 1 | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/6f4d3e8139ec724dbbcb40505891c81dd1052c4a | 6f4d3e8139ec724dbbcb40505891c81dd1052c4a | SINGLE | ['6f4d3e8139ec724dbbcb40505891c81dd1052c4a'] | {'adbbabdb0d3abb3cdeac69e38a96de1d678b24b3'} | 6f4d3e8139ec724dbbcb40505891c81dd1052c4a | 1 | 12/08/2021, 04:04:02 | Prevent crash due to integer overflow followed by allocating negative sized array.
PiperOrigin-RevId: 414891322
Change-Id: I5df390e0dc1d9f115209293708950cdf9306931c | Mihai Maruseac | null | {'additions': 9, 'deletions': 0, 'total': 9} | [
{
"additions": 9,
"changes": 9,
"deletions": 0,
"patch": "@@ -13,6 +13,8 @@ See the License for the specific language governing permissions and\n limitations under the License.\n ==============================================================================*/\n \n+#include <limits>\n+\n #include \"a... | cc | CWE-190 | [
"tensorflow/core/kernels/count_ops.cc"
] | tensorflow/core/kernels/count_ops.cc | 1 |
pub fn decode<T: ?Sized + AsRef<[u8]>>(input: &T) -> Result<Vec<u8>, DecodeError ///} ///``` pub fn encode_config<T: ?Sized + AsRef<[u8]>>(input: &T, config: Config) -> String { let mut buf = String::with_capacity(encoded_size(input.as_ref().len(), config)); encode_config_buf(input, config, &mut buf); bu... | pub fn decode<T: ?Sized + AsRef<[u8]>>(input: &T) -> Result<Vec<u8>, DecodeError ///} ///``` pub fn encode_config<T: ?Sized + AsRef<[u8]>>(input: &T, config: Config) -> String { let mut buf = match encoded_size(input.as_ref().len(), config) { Some(n) => String::with_capacity(n), None => panic!("int... | GHSA-x67x-vg9m-65c3 | {'CWE-119'} | 9.8 | {'https://github.com/alicemaz/rust-base64/commit/24ead980daf11ba563e4fb2516187a56a71ad319'} | osv | Integer overflow in base64 Affected versions of this crate suffered from an integer overflow bug when
calculating the size of a buffer to use when encoding base64 using the
`encode_config_buf` and `encode_config` functions. If the input string
was large, this would cause a buffer to be allocated that was too small.
Si... | 2021-08-25 | 1 | https://github.com/alicemaz/rust-base64 | https://github.com/alicemaz/rust-base64/commit/24ead980daf11ba563e4fb2516187a56a71ad319 | 24ead980daf11ba563e4fb2516187a56a71ad319 | SINGLE | ['24ead980daf11ba563e4fb2516187a56a71ad319'] | {'21a9389cf340f1e36e48856859d5713b97744383'} | 24ead980daf11ba563e4fb2516187a56a71ad319 | 1 | 05/03/2017, 05:26:40 | Use checked arithmetic in encoded_size
previously encoded_size could silently overflow usize, resulting in
write past the bounds of the buffer allocated by reserve. this changes
encoded_size to return an option, with none if overflow occurs.
presently callers simply panic on this case, but it could conceivably be
rend... | Alice Maz | null | {'additions': 75, 'deletions': 61, 'total': 136} | [
{
"additions": 75,
"changes": 136,
"deletions": 61,
"patch": "@@ -171,31 +171,36 @@ pub fn decode<T: ?Sized + AsRef<[u8]>>(input: &T) -> Result<Vec<u8>, DecodeError\n ///}\n ///```\n pub fn encode_config<T: ?Sized + AsRef<[u8]>>(input: &T, config: Config) -> String {\n- let mut buf = String::with... | rs | CWE-119 | [
"src/lib.rs"
] | src/lib.rs | 1 |
import os import re from collections import defaultdict from flask import ( Response, def _add_additional_assets(hook): def login(): from flask_login import current_user redirect_url = request.args.get("redirect", request.script_root + url_for("index")) permissions = sorted( filter( ... | import os import re from collections import defaultdict from urllib.parse import urlparse from flask import ( Response, def _add_additional_assets(hook): def login(): from flask_login import current_user default_redirect_url = request.script_root + url_for("index") redirect_url = request.args.get("re... | GHSA-x7r7-wmj8-vv5g | {'CWE-79'} | 7.5 | {'https://github.com/octoprint/octoprint/commit/8087528e4a7ddd15c7d95ff662deb5ef7de90045'} | osv | Cross-site Scripting in OctoPrint Cross-site Scripting (XSS) - DOM in GitHub repository octoprint/octoprint prior to 1.8.0. The login endpoint allows for javascript injection which may lead to account takeover in a phishing scenario. | 2022-05-19 | 1 | https://github.com/octoprint/octoprint | https://github.com/octoprint/octoprint/commit/8087528e4a7ddd15c7d95ff662deb5ef7de90045 | 8087528e4a7ddd15c7d95ff662deb5ef7de90045 | SINGLE | ['8087528e4a7ddd15c7d95ff662deb5ef7de90045'] | {'700034d028ff3518b563a7b4ba4dacc920142d07'} | 8087528e4a7ddd15c7d95ff662deb5ef7de90045 | 1 | 05/11/2022, 11:02:52 | 🔒️ Sanitize and validate login redirect
Fixes an XSS and an open redirect issue. | Gina Häußge | null | {'additions': 11, 'deletions': 1, 'total': 12} | [
{
"additions": 11,
"changes": 12,
"deletions": 1,
"patch": "@@ -8,6 +8,7 @@\n import os\n import re\n from collections import defaultdict\n+from urllib.parse import urlparse\n \n from flask import (\n Response,\n@@ -170,7 +171,16 @@ def _add_additional_assets(hook):\n def login():\n from fla... | py | CWE-79 | [
"src/octoprint/server/views.py"
] | src/octoprint/server/views.py | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.