Vulnerability advisory

GHSA-gv7v-rgg6-548h

Laravel environment manipulation via query string

Published Updated OSV record ↗

Also known as BIT-laravel-2024-52301CVE-2024-52301

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
  • CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Affected versions

AffectedFixed in
All versions before 6.20.456.20.45Advisories →
Also listed as affected (554)
7.0.0 to before 7.30.77.30.7Advisories →
Also listed as affected (80)
8.0.0 to before 8.83.288.83.28Advisories →
Also listed as affected (152)
9.0.0 to before 9.52.179.52.17Advisories →
Also listed as affected (100)
10.0.0 to before 10.48.2310.48.23Advisories →
Also listed as affected (111)
11.0.0 to before 11.31.011.31.0Advisories →
Also listed as affected (54)

Description

Description

When the register_argc_argv php directive is set to on , and users call any URL with a special crafted query string, they are able to change the environment used by the framework when handling the request.

Resolution

The framework now ignores argv values for environment detection on non-cli SAPIs.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools