CVE-2024-48963·PHP vulnerability
The package Snyk CLI before 1.1294.0 is vulnerable to Code Injection when scanning an untrusted PHP project. The vulnerability can be triggered if Snyk test is run inside the untrusted project due to the improper handling of the current working directory name. Snyk recommends only scanning trusted projects.
- Severity
- high
- Software
- PHP
- Fixed in
- 1.1294.0
- Published
- 2024-10-23
Affected versions
Until: 1.1294.0
Fixed in: 1.1294.0
How to fix this CVE
Update Snyk CLI to version 1.1294.0 or later to patch the code injection vulnerability in PHP project scanning. This fix addresses improper working directory handling that could allow arbitrary code execution during untrusted project analysis. Apply updates immediately and avoid running Snyk scans on untrusted PHP projects until patched.
sudo dnf check-update snyk && sudo dnf upgrade snykDefensia detects this vulnerability
How to check if you are affected
- Check installed Snyk CLI version: snyk --version
- Verify if vulnerability applies: grep -r 'snyk-php-plugin' /usr/local/lib/node_modules/snyk/ 2>/dev/null || npm list -g snyk-php-plugin
- Review recent Snyk scan logs for suspicious project directory names or execution patterns: grep -i 'snyk test' ~/.snyk/logs/*.log 2>/dev/null | head -20
- Confirm patch installation: snyk --version (should show 1.1294.0 or later)
FAQ
What is CVE-2024-48963?
A code injection vulnerability in Snyk CLI that exploits improper handling of the current working directory name when scanning PHP projects, allowing potential arbitrary code execution if scanning untrusted code.
Is CVE-2024-48963 being actively exploited?
No, this vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available, but it poses a significant risk for users scanning untrusted PHP projects.
What versions of Snyk CLI are affected by CVE-2024-48963?
All versions of Snyk CLI prior to 1.1294.0 are vulnerable. Users running version 1.1293.0 or earlier should upgrade immediately.
How do I check if my server is vulnerable to CVE-2024-48963?
Run 'snyk --version' and compare the output to version 1.1294.0. If your version is lower, your installation is vulnerable.
Does Defensia detect CVE-2024-48963?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Snyk CLI is installed on a monitored server, CVE-2024-48963 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-48963. Free for 1 server.
Get started free