Briefing

Supply Chain Attack Targets Multiple Laravel-Lang PHP Packages

security
by [email protected] (The Hacker News) · Laravel

Patch all laravel‑lang packages to the latest secure versions and audit dependencies for similar supply‑chain vulnerabilities.

What to do now

Patch all laravel‑lang packages to the latest versions, run a dependency audit, and monitor for credential theft.

Summary

Cybersecurity researchers have uncovered a fresh supply‑chain attack that has compromised four PHP packages from the Laravel‑Lang project. The packages—laravel‑lang/lang, laravel‑lang/http‑statuses, laravel‑lang/attributes, and laravel‑lang/actions—were infected with a credential‑stealing framework that harvests usernames, passwords, and API tokens from applications that import them. The attackers inserted malicious tags into the package metadata, allowing the framework to execute when the packages are installed or updated. The attack is active and has already been observed in the wild, with attackers leveraging the framework to exfiltrate credentials from compromised sites. The compromised packages are widely used in Laravel applications, meaning the impact could reach thousands of developers and production sites. The researchers recommend immediate patching and a thorough audit of all dependencies that rely on these packages.

The credential‑stealing framework is delivered via a hidden PHP file that is automatically included when the packages are loaded. The malicious code logs environment variables, session data, and database credentials, then sends them to a remote command‑and‑control server. The attack pattern is consistent across all four packages, indicating a coordinated effort by the threat actors. The researchers have provided a list of affected package versions and a remediation guide that includes updating to the latest secure releases and scanning for similar supply‑chain vulnerabilities.

Key changes

  • laravel‑lang/lang, http‑statuses, attributes, and actions packages were infected with a credential‑stealing framework.
  • Attackers inserted malicious tags into package metadata to trigger execution on install or update.
  • The framework harvests usernames, passwords, API tokens, environment variables, session data, and database credentials.
  • Exfiltration is performed via a remote C2 server, with traffic observed in the wild.
  • Affected package versions span the last two major releases, impacting thousands of Laravel projects.
  • Researchers recommend updating to the latest secure releases and running a dependency audit.
  • The attack demonstrates a coordinated supply‑chain compromise across multiple packages.
  • The malicious code is hidden in a PHP file automatically included when the packages load.

Affects

none

Customer impact

Analyzing matches…

Ask about this story

Impact on an agency? Which customers? Compare historically Risks of waiting