{"answers":{"affected":"12 open source packages ship an affected version, including illuminate/database and laravel/framework.","exploited":"There is no known exploitation of GHSA-x7p5-p2c9-phvg in the wild and no public exploit code.","fix":"Upgrade illuminate/database to a fixed version for your release line: 6.20.14, 7.30.4 or 8.24.0.","what":"GHSA-x7p5-p2c9-phvg is a SQL injection vulnerability in illuminate/database, published on 2 Feb 2021. It can be exploited over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-x7p5-p2c9-phvg and fix it if it is affected.\n\nWhat it is: GHSA-x7p5-p2c9-phvg is a SQL injection vulnerability in illuminate/database, published on 2 Feb 2021. It can be exploited over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-x7p5-p2c9-phvg in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- illuminate/database (Packagist): affected all versions; fixed in 6.20.14\n- illuminate/database (Packagist): affected all versions; fixed in 6.20.14\n- illuminate/database (Packagist): affected from 7.0.0; fixed in 7.30.4\n- illuminate/database (Packagist): affected from 7.0.0; fixed in 7.30.4\n- illuminate/database (Packagist): affected from 8.0.0; fixed in 8.24.0\n- illuminate/database (Packagist): affected from 8.0.0; fixed in 8.24.0\n- laravel/framework (Packagist): affected all versions; fixed in 6.20.14\n- laravel/framework (Packagist): affected all versions; fixed in 6.20.14\n- laravel/framework (Packagist): affected from 7.0.0; fixed in 7.30.4\n- laravel/framework (Packagist): affected from 7.0.0; fixed in 7.30.4\n- laravel/framework (Packagist): affected from 8.0.0; fixed in 8.24.0\n- laravel/framework (Packagist): affected from 8.0.0; fixed in 8.24.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-x7p5-p2c9-phvg/ (Markdown: https://insights.sbomify.com/GHSA-x7p5-p2c9-phvg/index.md)","id":"GHSA-x7p5-p2c9-phvg","markdown":"https://insights.sbomify.com/GHSA-x7p5-p2c9-phvg/index.md","name":"GHSA-x7p5-p2c9-phvg","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP query builder","requires_auth":"unknown","summary":"Attackers can manipulate query bindings by sending arrays for non-array fields, potentially causing the query builder to return unexpected results.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"This is a follow-up to the previous security advisory (GHSA-3p32-j457-pg5x) which addresses a few additional edge cases.\n\nIf a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results.","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Unexpected database bindings","id":"GHSA-x7p5-p2c9-phvg","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"sql_injection","year":"2021"},"n_packages":12,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["6.20.14"],"introduced":["0"],"last_affected":[],"package":"illuminate/database","purl":null,"source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["6.20.14"],"introduced":["0"],"last_affected":[],"package":"illuminate/database","purl":"pkg:composer/illuminate/database","source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["7.30.4"],"introduced":["7.0.0"],"last_affected":[],"package":"illuminate/database","purl":null,"source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["7.30.4"],"introduced":["7.0.0"],"last_affected":[],"package":"illuminate/database","purl":"pkg:composer/illuminate/database","source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["8.24.0"],"introduced":["8.0.0"],"last_affected":[],"package":"illuminate/database","purl":null,"source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["8.24.0"],"introduced":["8.0.0"],"last_affected":[],"package":"illuminate/database","purl":"pkg:composer/illuminate/database","source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["6.20.14"],"introduced":["0"],"last_affected":[],"package":"laravel/framework","purl":null,"source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["6.20.14"],"introduced":["0"],"last_affected":[],"package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["7.30.4"],"introduced":["7.0.0"],"last_affected":[],"package":"laravel/framework","purl":null,"source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["7.30.4"],"introduced":["7.0.0"],"last_affected":[],"package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["8.24.0"],"introduced":["8.0.0"],"last_affected":[],"package":"laravel/framework","purl":null,"source":"GHSA-x7p5-p2c9-phvg"},{"ecosystem":"Packagist","fixed":["8.24.0"],"introduced":["8.0.0"],"last_affected":[],"package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"GHSA-x7p5-p2c9-phvg"}],"products":null,"published":"2021-02-02","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can manipulate query bindings by sending arrays for non-array fields, potentially causing the query builder to return unexpected results.","url":"https://insights.sbomify.com/GHSA-x7p5-p2c9-phvg/"}