{"url":"http://public2.vulnerablecode.io/api/packages/55060?format=json","purl":"pkg:composer/propel/propel1@1.7.2","type":"composer","namespace":"propel","name":"propel1","version":"1.7.2","qualifiers":{},"subpath":"","is_vulnerable":false,"next_non_vulnerable_version":null,"latest_non_vulnerable_version":null,"affected_by_vulnerabilities":[],"fixing_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/54946?format=json","vulnerability_id":"VCID-45u9-ndb2-ayay","summary":"propel/propel1 SQL injection possible with limit() on MySQL\nThe limit() query method is susceptible to catastrophic SQL injection with MySQL.\n\nFor example, given a model User for a table users:\n```\nUserQuery::create()->limit('1;DROP TABLE users')->find();\n```\nThis will drop the users table!\n\nThe cause appears to be a lack of integer casting of the limit input in either Criteria::setLimit() or in DBMySQL::applyLimit(). The code comments there seem to imply that casting was avoided due to overflow issues with 32-bit integers.\n\nThis is surprising behavior since one of the primary purposes of an ORM is to prevent basic SQL injection.\n\nThis affects all versions of Propel: 1.x, 2.x, and 3.","references":[{"reference_url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/propel/propel1/2018-02-14.yaml","reference_id":"","reference_type":"","scores":[{"value":"9.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/propel/propel1/2018-02-14.yaml"},{"reference_url":"https://github.com/propelorm/Propel","reference_id":"","reference_type":"","scores":[{"value":"9.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/propelorm/Propel"},{"reference_url":"https://github.com/propelorm/Propel/commit/b72093201f8e225410f62a246653ac039e31c90a","reference_id":"","reference_type":"","scores":[{"value":"9.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/propelorm/Propel/commit/b72093201f8e225410f62a246653ac039e31c90a"},{"reference_url":"https://github.com/propelorm/Propel/issues/1052","reference_id":"","reference_type":"","scores":[{"value":"9.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/propelorm/Propel/issues/1052"},{"reference_url":"https://github.com/propelorm/Propel/pull/1054","reference_id":"","reference_type":"","scores":[{"value":"9.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/propelorm/Propel/pull/1054"},{"reference_url":"https://github.com/advisories/GHSA-7g7c-qhf3-x59p","reference_id":"GHSA-7g7c-qhf3-x59p","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-7g7c-qhf3-x59p"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/55060?format=json","purl":"pkg:composer/propel/propel1@1.7.2","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/propel/propel1@1.7.2"}],"aliases":["GHSA-7g7c-qhf3-x59p"],"risk_score":4.5,"exploitability":"0.5","weighted_severity":"9.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-45u9-ndb2-ayay"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/39416?format=json","vulnerability_id":"VCID-j8zw-7672-53gm","summary":"SQL Injection\nSQL injection possible with `limit()` on MySQL.","references":[{"reference_url":"https://github.com/propelorm/Propel/issues/1052","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/propelorm/Propel/issues/1052"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/55060?format=json","purl":"pkg:composer/propel/propel1@1.7.2","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/propel/propel1@1.7.2"}],"aliases":["GMS-2018-74"],"risk_score":null,"exploitability":"0.5","weighted_severity":"0.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-j8zw-7672-53gm"}],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/propel/propel1@1.7.2"}