{"items":[{"id":"NVI-00007664","kind":"vulnerability","title":"Propel2 SQL injection possible with limit() on MySQL","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-7vw7-qx38-37vr"],"plain_summary":"OSV carries this publisher advisory for propel/propel. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 2.0.0-alpha8 for propel/propel. Confirm the publisher’s latest guidance.","source_ids":["sr-e38ddc7e89ba28c6dd76afe2a0f28257"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-e38ddc7e89ba28c6dd76afe2a0f28257","url":"https://github.com/advisories/GHSA-7vw7-qx38-37vr","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-7vw7-qx38-37vr","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.954Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-e38ddc7e89ba28c6dd76afe2a0f28257"],"technology":"propel/propel","known_exclusions":[],"conditions_summary":"The 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 Propel\\Runtime\\ActiveQuery\\Criteria::setLimit() or in Propel\\Runtime\\Adapter\\Pdo\\MysqlAdapter::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.","public_affected_ranges":["ECOSYSTEM: introduced 2.0.0-alpha1; fixed 2.0.0-alpha8"]}],"null_published_at":"2026-10-31T22:13:18.629Z","source_updated_at":"2024-12-05T05:32:18.600Z","source_disclosed_at":"2024-05-20T17:34:33.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:41:59.954Z"}],"next_cursor":null,"snapshot_revision":"42594"}