Datasets:
id stringlengths 13 19 | ecosystem stringclasses 3
values | package stringlengths 4 44 | pre_ref stringlengths 3 10 | post_ref stringlengths 3 13 | cwe_ids listlengths 0 5 | effect_class stringclasses 1
value | summary stringlengths 38 564 | fix_files listlengths 1 656 | fix_hunks stringlengths 89 94.8k | fix_diff stringlengths 396 1.45M | fix_source stringclasses 2
values | summary_raw stringlengths 15 444 | hint stringlengths 0 171 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GHSA-24q2-6x37-cgcx | composer | dolibarr/dolibarr | 7.0.3 | 7.0.4 | [
"CWE-89"
] | sql_injection | Dolibarr SQL injection vulnerability in product/card.php
Likely location: Check the product/card.php file for SQL injection vulnerabilities. | [
"htdocs/core/class/html.form.class.php",
"htdocs/main.inc.php",
"htdocs/product/card.php",
"htdocs/societe/ajax/company.php"
] | [{"path": "htdocs/core/class/html.form.class.php", "pre_start": 1044, "pre_end": 1050, "post_start": 1044, "post_end": 1050}, {"path": "htdocs/core/class/html.form.class.php", "pre_start": 1064, "pre_end": 1069, "post_start": 1064, "post_end": 1072}, {"path": "htdocs/main.inc.php", "pre_start": 72, "pre_end": 95, "post... | diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 57783c09885f1..547bd8ad4e4a4 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -1044,7 +1044,7 @@ function select_company($selected='', $htmlname='socid', $filter='', $showemp... | commit | Dolibarr SQL injection vulnerability in product/card.php | Check the product/card.php file for SQL injection vulnerabilities. |
GHSA-2598-2f59-rmhq | npm | sequelize | 3.35.0 | 3.35.1 | [
"CWE-89"
] | sql_injection | SQL Injection in sequelize
Likely location: Look for user input concatenated into the raw SQL string parameter of the sequelize.query() function or sequelize.literal() method. | [
"lib/dialects/abstract/query-generator.js"
] | [{"path": "lib/dialects/abstract/query-generator.js", "pre_start": 2198, "pre_end": 2204, "post_start": 2198, "post_end": 2205}] | diff --git a/lib/dialects/abstract/query-generator.js b/lib/dialects/abstract/query-generator.js
index 0298381093eb..392e962021ab 100644
--- a/lib/dialects/abstract/query-generator.js
+++ b/lib/dialects/abstract/query-generator.js
@@ -2198,7 +2198,8 @@ var QueryGenerator = {
path[path.length - 1] = $tmp[0]... | commit | SQL Injection in sequelize | Look for user input concatenated into the raw SQL string parameter of the sequelize.query() function or sequelize.literal() method. |
GHSA-25fx-3c2q-cq46 | composer | pimcore/customer-management-framework-bundle | v3.3.9 | 3.3.10 | [
"CWE-89"
] | sql_injection | pimcore/customer-management-framework-bundle has SQL Injection vulnerability in Segment Assignment query
Likely location: Look in the Segment Assignment DAO or repository class within the CustomerManagementFrameworkBundle, specifically the method executing the vulnerable SQL query. | [
"src/Controller/Admin/SegmentAssignmentController.php"
] | [{"path": "src/Controller/Admin/SegmentAssignmentController.php", "pre_start": 50, "pre_end": 61, "post_start": 50, "post_end": 66}] | diff --git a/src/Controller/Admin/SegmentAssignmentController.php b/src/Controller/Admin/SegmentAssignmentController.php
index eae14a2d..68f92f00 100644
--- a/src/Controller/Admin/SegmentAssignmentController.php
+++ b/src/Controller/Admin/SegmentAssignmentController.php
@@ -50,12 +50,17 @@ public static function getSub... | commit | pimcore/customer-management-framework-bundle has SQL Injection vulnerability in Segment Assignment query | Look in the Segment Assignment DAO or repository class within the CustomerManagementFrameworkBundle, specifically the method executing the vulnerable SQL query. |
GHSA-2777-2vq8-c4v4 | npm | sequelize | 5.2.15 | 5.3.0 | [
"CWE-20"
] | sql_injection | SQL Injection in sequelize
Likely location: Look for string concatenation with user input in sequelize.query(), sequelize.literal(), and where clauses instead of parameterized replacements. | [
"lib/dialects/abstract/connection-manager.js",
"lib/dialects/postgres/connection-manager.js"
] | [{"path": "lib/dialects/abstract/connection-manager.js", "pre_start": 256, "pre_end": 262, "post_start": 256, "post_end": 265}, {"path": "lib/dialects/postgres/connection-manager.js", "pre_start": 122, "pre_end": 127, "post_start": 122, "post_end": 144}, {"path": "lib/dialects/postgres/connection-manager.js", "pre_star... | diff --git a/lib/dialects/abstract/connection-manager.js b/lib/dialects/abstract/connection-manager.js
index c3e1b9eef69f..9d26e73d1765 100644
--- a/lib/dialects/abstract/connection-manager.js
+++ b/lib/dialects/abstract/connection-manager.js
@@ -256,7 +256,10 @@ class ConnectionManager {
//avoiding a usel... | commit | SQL Injection in sequelize | Look for string concatenation with user input in sequelize.query(), sequelize.literal(), and where clauses instead of parameterized replacements. |
GHSA-27qr-636m-wxg2 | composer | codeigniter/framework | 3.0.6 | 3.1.0 | [] | sql_injection | codeigniter/framework SQL injection in ODBC database driver
Likely location: Inspect the ODBC database driver at system/database/drivers/odbc/odbc_driver.php for query execution and escaping methods. | [
"system/database/drivers/odbc/odbc_driver.php",
"system/database/drivers/pdo/subdrivers/pdo_odbc_driver.php"
] | [{"path": "system/database/drivers/odbc/odbc_driver.php", "pre_start": 50, "pre_end": 56, "post_start": 50, "post_end": 56}, {"path": "system/database/drivers/odbc/odbc_driver.php", "pre_start": 93, "pre_end": 98, "post_start": 93, "post_end": 114}, {"path": "system/database/drivers/odbc/odbc_driver.php", "pre_start": ... | diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php
index 19b7b744bf9..63df2963de9 100644
--- a/system/database/drivers/odbc/odbc_driver.php
+++ b/system/database/drivers/odbc/odbc_driver.php
@@ -50,7 +50,7 @@
* @author EllisLab Dev Team
* @link https://codeign... | commit | codeigniter/framework SQL injection in ODBC database driver | Inspect the ODBC database driver at system/database/drivers/odbc/odbc_driver.php for query execution and escaping methods. |
GHSA-2fr7-cc4f-wh98 | composer | devcode-it/openstamanager | v2.10.1 | 2.10.2 | [
"CWE-89"
] | sql_injection | OpenSTAManager: SQL Injection via Aggiornamenti Module
Likely location: Review SQL query construction and input sanitization within the Aggiornamenti module. | [
"modules/aggiornamenti/actions.php"
] | [{"path": "modules/aggiornamenti/actions.php", "pre_start": 64, "pre_end": 85, "post_start": 64, "post_end": 129}] | diff --git a/modules/aggiornamenti/actions.php b/modules/aggiornamenti/actions.php
index d51873ab80..1ba88147d8 100755
--- a/modules/aggiornamenti/actions.php
+++ b/modules/aggiornamenti/actions.php
@@ -64,22 +64,66 @@
break;
}
- $debug_queries = implode('<br>', $queries);
+ // WHI... | commit | OpenSTAManager: SQL Injection via Aggiornamenti Module | Review SQL query construction and input sanitization within the Aggiornamenti module. |
GHSA-2grw-mc9r-822r | composer | phpmyfaq/phpmyfaq | 3.2.5 | 3.2.6 | [
"CWE-89"
] | sql_injection | phpMyFAQ SQL injections at insertentry & saveentry
Likely location: Review the insertentry and saveentry functions or endpoints for unsanitized input passed into SQL queries. | [
"phpmyfaq/src/phpMyFAQ/Faq.php"
] | [{"path": "phpmyfaq/src/phpMyFAQ/Faq.php", "pre_start": 925, "pre_end": 937, "post_start": 925, "post_end": 937}, {"path": "phpmyfaq/src/phpMyFAQ/Faq.php", "pre_start": 994, "pre_end": 1005, "post_start": 994, "post_end": 1005}] | diff --git a/phpmyfaq/src/phpMyFAQ/Faq.php b/phpmyfaq/src/phpMyFAQ/Faq.php
index 343933dedf..ade9895540 100755
--- a/phpmyfaq/src/phpMyFAQ/Faq.php
+++ b/phpmyfaq/src/phpMyFAQ/Faq.php
@@ -925,13 +925,13 @@ public function create(FaqEntity $faq): int
$this->config->getDb()->escape($faq->getQuestion()),
... | commit | phpMyFAQ SQL injections at insertentry & saveentry | Review the insertentry and saveentry functions or endpoints for unsanitized input passed into SQL queries. |
GHSA-2gwj-7jmv-h26r | pypi | django | 2.2.27 | 2.2.28 | [
"CWE-89"
] | sql_injection | SQL Injection in Django
Likely location: Check calls to raw(), extra(), or cursor.execute() where user input is concatenated into SQL queries instead of using parameters. | [
"django/db/models/sql/query.py"
] | [{"path": "django/db/models/sql/query.py", "pre_start": 41, "pre_end": 50, "post_start": 41, "post_end": 55}, {"path": "django/db/models/sql/query.py", "pre_start": 1034, "pre_end": 1041, "post_start": 1039, "post_end": 1054}, {"path": "django/db/models/sql/query.py", "pre_start": 2088, "pre_end": 2093, "post_start": 2... | diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index f5f85a4d348e..1df916b724ec 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -41,10 +41,15 @@
)
from django.utils.deprecation import RemovedInDjango40Warning
from django.utils.functional import cached_pro... | commit | SQL Injection in Django | Check calls to raw(), extra(), or cursor.execute() where user input is concatenated into SQL queries instead of using parameters. |
GHSA-2jx3-5j9v-prpp | composer | prestashop/blockwishlist | v2.1.0 | 2.1.1 | [
"CWE-89"
] | sql_injection | BlockWishList SQL Injection vulnerability
Likely location: Check the BlockWishList module's database query functions, specifically those processing user-supplied parameters like id_wishlist or deleted. | [
"src/Search/WishListProductSearchProvider.php"
] | [{"path": "src/Search/WishListProductSearchProvider.php", "pre_start": 35, "pre_end": 40, "post_start": 35, "post_end": 41}, {"path": "src/Search/WishListProductSearchProvider.php", "pre_start": 167, "pre_end": 173, "post_start": 168, "post_end": 177}] | diff --git a/src/Search/WishListProductSearchProvider.php b/src/Search/WishListProductSearchProvider.php
index efab3b30..5e2d1e7b 100644
--- a/src/Search/WishListProductSearchProvider.php
+++ b/src/Search/WishListProductSearchProvider.php
@@ -35,6 +35,7 @@
use Product;
use Shop;
use Symfony\Component\Translation\Tra... | commit | BlockWishList SQL Injection vulnerability | Check the BlockWishList module's database query functions, specifically those processing user-supplied parameters like id_wishlist or deleted. |
GHSA-2q6j-vpvr-6pvj | pypi | apache-superset | 4.0.1 | 4.0.2 | [
"CWE-89"
] | sql_injection | Apache Superset vulnerable to improper SQL authorization
Likely location: Review the authorization logic in the SQL Lab execution endpoints, specifically the `execute` function in `superset/sql_lab/api.py` and related security manager methods. | [
"superset-frontend/cypress-base/cypress.config.ts",
"superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/index.jsx",
"superset/config.py",
"superset/db_engine_specs/base.py",
"superset/db_engine_specs/trino.py",
"superset/exceptions.py",
"superset/sql_parse.py"
] | [{"path": "superset-frontend/cypress-base/cypress.config.ts", "pre_start": 29, "pre_end": 35, "post_start": 29, "post_end": 35}, {"path": "superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/index.jsx", "pre_start": 16, "pre_end": 22, "post_start": 16, "post_end": 22}, {"path": "superset/config.py",... | diff --git a/superset-frontend/cypress-base/cypress.config.ts b/superset-frontend/cypress-base/cypress.config.ts
index 96b74938ee98..6cf0c6ba86ff 100644
--- a/superset-frontend/cypress-base/cypress.config.ts
+++ b/superset-frontend/cypress-base/cypress.config.ts
@@ -29,7 +29,7 @@ export default defineConfig({
videoU... | commit | Apache Superset vulnerable to improper SQL authorization | Review the authorization logic in the SQL Lab execution endpoints, specifically the `execute` function in `superset/sql_lab/api.py` and related security manager methods. |
GHSA-2v5m-cq9w-fc33 | composer | admidio/admidio | v4.3.16 | 4.3.17 | [
"CWE-89"
] | sql_injection | Admidio Vulnerable to Authenticated SQL Injection in Member Assignment Functionality
Likely location: Review the parameter handling and SQL query construction in the member assignment functionality component. | [
"adm_program/modules/groups-roles/members_assignment_data.php"
] | [{"path": "adm_program/modules/groups-roles/members_assignment_data.php", "pre_start": 50, "pre_end": 56, "post_start": 50, "post_end": 56}] | diff --git a/adm_program/modules/groups-roles/members_assignment_data.php b/adm_program/modules/groups-roles/members_assignment_data.php
index 64fb51f208..c7312691e3 100644
--- a/adm_program/modules/groups-roles/members_assignment_data.php
+++ b/adm_program/modules/groups-roles/members_assignment_data.php
@@ -50,7 +50,... | commit | Admidio Vulnerable to Authenticated SQL Injection in Member Assignment Functionality | Review the parameter handling and SQL query construction in the member assignment functionality component. |
GHSA-2v7p-f4qm-r5pc | composer | pimcore/pimcore | v10.3.5 | 10.3.6 | [
"CWE-89"
] | sql_injection | SQL Injection found in Pimcore
Likely location: Look in controller actions, API endpoints, or Dao classes for unsanitized user input directly concatenated into Pimcore\Db queries or listing conditions. | [
"bundles/AdminBundle/Helper/GridHelperService.php"
] | [{"path": "bundles/AdminBundle/Helper/GridHelperService.php", "pre_start": 332, "pre_end": 343, "post_start": 332, "post_end": 344}, {"path": "bundles/AdminBundle/Helper/GridHelperService.php", "pre_start": 780, "pre_end": 785, "post_start": 781, "post_end": 788}] | diff --git a/bundles/AdminBundle/Helper/GridHelperService.php b/bundles/AdminBundle/Helper/GridHelperService.php
index 13b6541eced..1ccfe6407fb 100644
--- a/bundles/AdminBundle/Helper/GridHelperService.php
+++ b/bundles/AdminBundle/Helper/GridHelperService.php
@@ -332,12 +332,13 @@ public function getFilterCondition($f... | commit | SQL Injection found in Pimcore | Look in controller actions, API endpoints, or Dao classes for unsanitized user input directly concatenated into Pimcore\Db queries or listing conditions. |
GHSA-2v82-5746-vwqc | composer | vrana/adminer | v4.8.0 | 4.8.1 | [
"CWE-79"
] | sql_injection | XSS in doc_link
Likely location: Inspect the rendering logic for the `doc_link` parameter or variable to ensure proper output escaping and sanitization. | [
"adminer/include/editing.inc.php"
] | [{"path": "adminer/include/editing.inc.php", "pre_start": 542, "pre_end": 548, "post_start": 542, "post_end": 548}] | diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php
index 88d66d447..5556b0147 100644
--- a/adminer/include/editing.inc.php
+++ b/adminer/include/editing.inc.php
@@ -542,7 +542,7 @@ function doc_link($paths, $text = "<sup>?</sup>") {
$urls['sql'] = "https://mariadb.com/kb/en/library/";
... | commit | XSS in doc_link | Inspect the rendering logic for the `doc_link` parameter or variable to ensure proper output escaping and sanitization. |
GHSA-2vpq-fh52-j3wv | pypi | snowflake-connector-python | 3.13.0 | 3.13.1 | [
"CWE-89"
] | sql_injection | snowflake-connector-python vulnerable to SQL Injection in write_pandas
Likely location: Examine the write_pandas function in the snowflake-connector-python package for SQL injection vulnerabilities. | [
"src/snowflake/connector/cursor.py",
"src/snowflake/connector/pandas_tools.py"
] | [{"path": "src/snowflake/connector/cursor.py", "pre_start": 875, "pre_end": 880, "post_start": 875, "post_end": 881}, {"path": "src/snowflake/connector/cursor.py", "pre_start": 910, "pre_end": 915, "post_start": 911, "post_end": 917}, {"path": "src/snowflake/connector/cursor.py", "pre_start": 958, "pre_end": 964, "post... | diff --git a/src/snowflake/connector/cursor.py b/src/snowflake/connector/cursor.py
index b403b8a3e0..5625a18c72 100644
--- a/src/snowflake/connector/cursor.py
+++ b/src/snowflake/connector/cursor.py
@@ -875,6 +875,7 @@ def execute(
_skip_upload_on_content_match: bool = False,
file_stream: IO[bytes] | ... | commit | snowflake-connector-python vulnerable to SQL Injection in write_pandas | Examine the write_pandas function in the snowflake-connector-python package for SQL injection vulnerabilities. |
GHSA-2xmm-g482-4439 | composer | sylius/grid-bundle | v1.10.0 | 1.10.1 | [
"CWE-89"
] | sql_injection | DQL injection through sorting parameters blocked
Likely location: Check sorting parameters passed to Doctrine Query Builder's `orderBy` or `addOrderBy` methods. | [
"src/Component/Sorting/Sorter.php",
"src/Component/Validation/FieldValidator.php",
"src/Component/Validation/FieldValidatorInterface.php",
"src/Component/Validation/SortingParametersValidator.php",
"src/Component/Validation/SortingParametersValidatorInterface.php"
] | [{"path": "src/Component/Sorting/Sorter.php", "pre_start": 13, "pre_end": 31, "post_start": 13, "post_end": 49}, {"path": "src/Component/Validation/FieldValidator.php", "pre_start": 0, "pre_end": 0, "post_start": 1, "post_end": 28}, {"path": "src/Component/Validation/FieldValidatorInterface.php", "pre_start": 0, "pre_e... | diff --git a/src/Bundle/Resources/config/services.xml b/src/Bundle/Resources/config/services.xml
index c6a98d17..f22384c9 100644
--- a/src/Bundle/Resources/config/services.xml
+++ b/src/Bundle/Resources/config/services.xml
@@ -46,7 +46,12 @@
<argument type="service" id="sylius.registry.grid_filter" />
... | commit | DQL injection through sorting parameters blocked | Check sorting parameters passed to Doctrine Query Builder's `orderBy` or `addOrderBy` methods. |
GHSA-3234-gxc3-pq6f | composer | pimcore/pimcore | v12.3.5 | 12.3.6 | [
"CWE-89"
] | sql_injection | Pimcore Vulnerable to SQL Injection in Custom Reports Column Configuration
Likely location: Look in the Custom Reports component, specifically the column configuration logic. | [
"bundles/CustomReportsBundle/src/Tool/Adapter/Sql.php"
] | [{"path": "bundles/CustomReportsBundle/src/Tool/Adapter/Sql.php", "pre_start": 63, "pre_end": 70, "post_start": 63, "post_end": 73}, {"path": "bundles/CustomReportsBundle/src/Tool/Adapter/Sql.php", "pre_start": 188, "pre_end": 194, "post_start": 191, "post_end": 200}, {"path": "bundles/CustomReportsBundle/src/Tool/Adap... | diff --git a/bundles/CustomReportsBundle/src/Tool/Adapter/Sql.php b/bundles/CustomReportsBundle/src/Tool/Adapter/Sql.php
index f3c97efb248..1ee18902ec8 100644
--- a/bundles/CustomReportsBundle/src/Tool/Adapter/Sql.php
+++ b/bundles/CustomReportsBundle/src/Tool/Adapter/Sql.php
@@ -63,8 +63,11 @@ public function getColum... | commit | Pimcore Vulnerable to SQL Injection in Custom Reports Column Configuration | Look in the Custom Reports component, specifically the column configuration logic. |
GHSA-339r-cjv9-x78g | pypi | llama-index-retrievers-duckdb-retriever | 0.3.0 | 0.4.0 | [
"CWE-89"
] | sql_injection | LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection
Likely location: Inspect the DuckDBRetriever class in the LlamaIndex retrievers integration, specifically where it constructs SQL queries using unsanitized input parameters. | [
"llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/llama_index/retrievers/duckdb_retriever/base.py"
] | [{"path": "llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/llama_index/retrievers/duckdb_retriever/base.py", "pre_start": 2, "pre_end": 14, "post_start": 2, "post_end": 14}, {"path": "llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/llama_index/retrievers/duckdb_re... | diff --git a/llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/llama_index/retrievers/duckdb_retriever/base.py b/llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever/llama_index/retrievers/duckdb_retriever/base.py
index d4b50785e19..fa4d2e9b9b5 100644
--- a/llama-index-i... | commit | LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection | Inspect the DuckDBRetriever class in the LlamaIndex retrievers integration, specifically where it constructs SQL queries using unsanitized input parameters. |
GHSA-35pq-7pv2-2rfw | composer | prestashop/ps_contactinfo | v3.3.2 | 3.3.3 | [
"CWE-79"
] | sql_injection | ps_contactinfo has a potential XSS due to usage of the nofilter tag in template
Likely location: Look in the ps_contactinfo template files for variables rendered using the `nofilter` tag. | [
"ps_contactinfo.php"
] | [{"path": "ps_contactinfo.php", "pre_start": 88, "pre_end": 93, "post_start": 88, "post_end": 94}, {"path": "ps_contactinfo.php", "pre_start": 95, "pre_end": 101, "post_start": 96, "post_end": 102}] | diff --git a/ps_contactinfo.php b/ps_contactinfo.php
index eda96b5..89c09d5 100644
--- a/ps_contactinfo.php
+++ b/ps_contactinfo.php
@@ -88,6 +88,7 @@ public function renderWidget($hookName = null, array $configuration = [])
public function getWidgetVariables($hookName = null, array $configuration = [])
{
... | commit | ps_contactinfo has a potential XSS due to usage of the nofilter tag in template | Look in the ps_contactinfo template files for variables rendered using the `nofilter` tag. |
GHSA-36fc-7wjg-mfvj | composer | pimcore/pimcore | v12.3.6 | 12.3.7 | [
"CWE-502"
] | sql_injection | Pimcore has Unsafe PHP Deserialization in Multiple Locations Without allowed_classes Restriction
Likely location: Search the Pimcore codebase for all unserialize() function calls that lack the allowed_classes restriction. | [
"lib/Tool/Serialize.php",
"models/Asset/WebDAV/Service.php",
"models/Asset/WebDAV/Tree.php",
"models/DataObject/ClassDefinition/CustomLayout/Dao.php",
"models/DataObject/ClassDefinition/Data/Table.php",
"models/DataObject/Service.php",
"models/Site/Dao.php"
] | [{"path": "lib/Tool/Serialize.php", "pre_start": 26, "pre_end": 38, "post_start": 26, "post_end": 40}, {"path": "models/Asset/WebDAV/Service.php", "pre_start": 30, "pre_end": 36, "post_start": 30, "post_end": 40}, {"path": "models/Asset/WebDAV/Tree.php", "pre_start": 17, "pre_end": 22, "post_start": 17, "post_end": 23}... | diff --git a/lib/Tool/Serialize.php b/lib/Tool/Serialize.php
index 1b46d303d56..21f57ad45a7 100644
--- a/lib/Tool/Serialize.php
+++ b/lib/Tool/Serialize.php
@@ -26,13 +26,15 @@ public static function serialize(mixed $data): string
return serialize($data);
}
- public static function unserialize(?strin... | commit | Pimcore has Unsafe PHP Deserialization in Multiple Locations Without allowed_classes Restriction | Search the Pimcore codebase for all unserialize() function calls that lack the allowed_classes restriction. |
GHSA-38cw-85xc-xr9x | npm | @veramo/data-store | 6.0.1 | 6.0.2 | [
"CWE-89"
] | sql_injection | Veramo is Vulnerable to SQL Injection in Veramo Data Store ORM
Likely location: Inspect the Veramo Data Store ORM component, specifically its database query functions and parameter handling. | [
"packages/core-types/src/types/IDataStoreORM.ts",
"packages/data-store-json/src/data-store-json.ts",
"packages/data-store/src/data-store-orm.ts"
] | [{"path": "packages/core-types/src/types/IDataStoreORM.ts", "pre_start": 3, "pre_end": 8, "post_start": 3, "post_end": 31}, {"path": "packages/core-types/src/types/IDataStoreORM.ts", "pre_start": 70, "pre_end": 76, "post_start": 93, "post_end": 99}, {"path": "packages/core-types/src/types/IDataStoreORM.ts", "pre_start"... | diff --git a/__tests__/shared/saveClaims.ts b/__tests__/shared/saveClaims.ts
index 0e4d00927..908261c1e 100644
--- a/__tests__/shared/saveClaims.ts
+++ b/__tests__/shared/saveClaims.ts
@@ -106,6 +106,30 @@ export default (testContext: {
expect(count).toEqual(credentials.length)
})
+ it('blocks injectio... | commit | Veramo is Vulnerable to SQL Injection in Veramo Data Store ORM | Inspect the Veramo Data Store ORM component, specifically its database query functions and parameter handling. |
GHSA-3fj4-q72x-x2g9 | composer | adodb/adodb-php | v5.20.6 | 5.20.7 | [
"CWE-89"
] | sql_injection | ADOdb Library SQL Injection
Likely location: Check the ADOdb library's query execution methods, particularly `Execute()` and `Query()` in `adodb.inc.php` and its database driver files, for unsanitized input. | [
"drivers/adodb-pdo.inc.php"
] | [{"path": "drivers/adodb-pdo.inc.php", "pre_start": 518, "pre_end": 523, "post_start": 518, "post_end": 547}] | diff --git a/drivers/adodb-pdo.inc.php b/drivers/adodb-pdo.inc.php
index e3f49a4f2..63a3e6e04 100644
--- a/drivers/adodb-pdo.inc.php
+++ b/drivers/adodb-pdo.inc.php
@@ -518,6 +518,30 @@ function _insertid()
{
return ($this->_connectionID) ? $this->_connectionID->lastInsertId() : 0;
}
+
+ /**
+ * Quotes a string... | commit | ADOdb Library SQL Injection | Check the ADOdb library's query execution methods, particularly `Execute()` and `Query()` in `adodb.inc.php` and its database driver files, for unsanitized input. |
GHSA-3gh2-xw74-jmcw | pypi | django | 1.11.28 | 1.11.29 | [
"CWE-89"
] | sql_injection | SQL injection in Django
Likely location: Look at django.db.models querysets, specifically user input passed to the extra(), raw(), or RawSQL methods. | [
"django/contrib/gis/db/models/aggregates.py",
"django/contrib/gis/db/models/functions.py"
] | [{"path": "django/contrib/gis/db/models/aggregates.py", "pre_start": 1, "pre_end": 7, "post_start": 1, "post_end": 7}, {"path": "django/contrib/gis/db/models/aggregates.py", "pre_start": 27, "pre_end": 35, "post_start": 27, "post_end": 42}, {"path": "django/contrib/gis/db/models/functions.py", "pre_start": 111, "pre_en... | diff --git a/django/contrib/gis/db/models/aggregates.py b/django/contrib/gis/db/models/aggregates.py
index 69380beea9e7..3aa46a52c02c 100644
--- a/django/contrib/gis/db/models/aggregates.py
+++ b/django/contrib/gis/db/models/aggregates.py
@@ -1,7 +1,7 @@
from django.contrib.gis.db.models.fields import (
ExtentFie... | commit | SQL injection in Django | Look at django.db.models querysets, specifically user input passed to the extra(), raw(), or RawSQL methods. |
GHSA-3gw8-3mg3-jmpc | composer | devcode-it/openstamanager | v2.10.1 | 2.10.2 | [
"CWE-89"
] | sql_injection | OpenSTAManager has a Time-Based Blind SQL Injection via `options[stato]` Parameter
Likely location: Check where the `options[stato]` parameter is processed and incorporated into SQL queries. | [
"modules/contratti/ajax/select.php",
"modules/ordini/ajax/select.php",
"modules/preventivi/ajax/select.php"
] | [{"path": "modules/contratti/ajax/select.php", "pre_start": 57, "pre_end": 63, "post_start": 57, "post_end": 63}, {"path": "modules/ordini/ajax/select.php", "pre_start": 53, "pre_end": 58, "post_start": 53, "post_end": 59}, {"path": "modules/preventivi/ajax/select.php", "pre_start": 60, "pre_end": 66, "post_start": 60,... | diff --git a/modules/contratti/ajax/select.php b/modules/contratti/ajax/select.php
index 011657eb68..7786c40ef9 100755
--- a/modules/contratti/ajax/select.php
+++ b/modules/contratti/ajax/select.php
@@ -57,7 +57,7 @@
$stato = !empty($superselect['stato']) && in_array($superselect['stato'], $allowed_stati)
... | commit | OpenSTAManager has a Time-Based Blind SQL Injection via `options[stato]` Parameter | Check where the `options[stato]` parameter is processed and incorporated into SQL queries. |
GHSA-3p32-j457-pg5x | composer | laravel/framework | v8.22.0 | 8.22.1 | [
"CWE-74",
"CWE-89"
] | sql_injection | Query Binding Exploitation
Likely location: Look in database query builder functions and ORM bindings where user-supplied parameters are bound to queries. | [
"src/Illuminate/Database/Query/Builder.php"
] | [{"path": "src/Illuminate/Database/Query/Builder.php", "pre_start": 698, "pre_end": 704, "post_start": 698, "post_end": 704}, {"path": "src/Illuminate/Database/Query/Builder.php", "pre_start": 1043, "pre_end": 1049, "post_start": 1043, "post_end": 1049}, {"path": "src/Illuminate/Database/Query/Builder.php", "pre_start"... | diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php
index 0d4c7c3ae16c..83416d83be02 100755
--- a/src/Illuminate/Database/Query/Builder.php
+++ b/src/Illuminate/Database/Query/Builder.php
@@ -698,7 +698,7 @@ public function where($column, $operator = null, $value = null, $... | commit | Query Binding Exploitation | Look in database query builder functions and ORM bindings where user-supplied parameters are bound to queries. |
GHSA-3pqv-6pm3-g46j | composer | francoisjacquet/rosariosis | v8.9.6 | 9.0 | [
"CWE-89"
] | sql_injection | SQL Injection in RosarioSIS
Likely location: Look in the PHP files within the `modules/` directory for unsanitized `$_REQUEST` parameters used in database queries. | [
"modules/Custom/includes/RegistrationSave.fnc.php",
"modules/School_Setup/Calendar.php",
"modules/School_Setup/MarkingPeriods.php",
"modules/School_Setup/SchoolFields.php",
"modules/Students/includes/AddressFields.php",
"modules/Students/includes/PeopleFields.php",
"modules/Students/includes/StudentFiel... | [{"path": "modules/Custom/includes/RegistrationSave.fnc.php", "pre_start": 407, "pre_end": 413, "post_start": 407, "post_end": 413}, {"path": "modules/School_Setup/Calendar.php", "pre_start": 500, "pre_end": 506, "post_start": 500, "post_end": 506}, {"path": "modules/School_Setup/MarkingPeriods.php", "pre_start": 204, ... | diff --git a/CHANGES.md b/CHANGES.md
index 9382457f2..7b0969cbb 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -53,6 +53,7 @@ Changes in 9.0
- Add AttrEscape() function in Inputs.php
- Use AttrEscape() instead of htmlspecialchars(), program wide
- Maintain Advanced search when editing Timeframe in Percent.php
+- Fix SQ... | commit | SQL Injection in RosarioSIS | Look in the PHP files within the `modules/` directory for unsanitized `$_REQUEST` parameters used in database queries. |
CSI SQLi RL — discover / patch dataset
180 real SQL-injection vulnerabilities (PyPI, npm, Packagist) with clean, commit-level fix ground truth, for RL training of code-security agents on two tasks:
- discover — given the vulnerable pre-patch source, name the file(s) and line range(s) the security fix changes.
- patch — write a unified diff that fixes the vulnerability.
Both rewards are pure functions over the fields below — no Docker, no per-vuln
images — so the dataset drives a portable verifiers/Prime RL environment
(csi_env, load_environment(dataset=..., task_mode="discover"|"patch")).
Provenance
Built from the csi corpus (OSV → onboarded pre/post builds). Ground truth is
extracted from the actual fixing commit (csi/fix_commit.py: OSV GIT-range
fixed-sha / FIX / commit / pull references → the commit .diff, source files
only), not the noisy whole-release tarball diff. 167/180 rows are
commit-extracted; 13 fall back to a small (≤3-file) release diff. 84 of the 264
onboarded vulns were dropped as too noisy to label cleanly.
By ecosystem: composer 81, pypi 64, npm 35.
Columns
| column | type | notes |
|---|---|---|
id |
str | OSV id (GHSA / PYSEC / …) |
ecosystem |
str | pypi | npm | composer |
package, pre_ref, post_ref |
str | vulnerable package + version refs |
cwe_ids |
list[str] | e.g. ["CWE-89"] |
effect_class |
str | sql_injection |
summary |
str | advisory summary |
fix_files |
list[str] | files the fix touches (ground truth) |
fix_hunks |
str (JSON) | [{path, pre_start, pre_end, post_start, post_end}] |
fix_diff |
str | the fix patch (commit diff or small release diff) |
fix_source |
str | commit | release-small |
Push
hf auth login # or: export HF_TOKEN=...
hf upload <you>/csi-sqli-rl . --repo-type dataset
# or, regenerate + push from the corpus:
# uv run python scripts/build_rl_dataset.py --push <you>/csi-sqli-rl
- Downloads last month
- 113