ttskch PaginationServiceProvider Demo index.php sql injection
Description
A vulnerability was found in ttskch PaginationServiceProvider up to 0.x. It has been declared as critical. This vulnerability affects unknown code of the file demo/index.php of the component demo. The manipulation of the argument sort/id leads to sql injection. Upgrading to version 1.0.0 is able to address this issue. The patch is identified as 619de478efce17ece1a3b913ab16e40651e1ea7b. It is recommended to upgrade the affected component. VDB-217150 is the identifier assigned to this vulnerability.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ttskch/pagination-service-providerPackagist | < 1.0.0 | 1.0.0 |
Affected products
1- Range: 0.x
Patches
1619de478efceavoid sql injection on demo code
1 file changed · +3 −3
demo/index.php+3 −3 modified@@ -35,10 +35,10 @@ $page = $request->get('page', 1); $limit = $request->get('limit', 10); - $sort = $request->get('sort', 'id'); - $direction = $request->get('direction', 'asc'); + $sort = $app['db']->quoteIdentifier($request->get('sort', 'id')); + $direction = $request->get('direction') === 'desc' ? 'DESC' : 'ASC'; - $sql = "select * from sample order by \"{$sort}\" {$direction}"; + $sql = "select * from sample order by {$sort} {$direction}"; $array = $app['db']->fetchAll($sql); $pagination = $app['knp_paginator']->paginate($array, $page, $limit);
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- github.com/ttskch/PaginationServiceProvider/commit/619de478efce17ece1a3b913ab16e40651e1ea7bghsapatchWEB
- github.com/ttskch/PaginationServiceProvider/releases/tag/1.0.0ghsapatchWEB
- github.com/advisories/GHSA-ww43-mcvh-35p4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2014-125029ghsaADVISORY
- vuldb.comghsasignaturepermissions-requiredWEB
- vuldb.comghsavdb-entrytechnical-descriptionWEB
News mentions
0No linked articles in our index yet.