7.7 HIGH
- CVSS version (CVSS): 4.0
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Attack Requirement (AT): Present (P)
- Privileges Required (PR): None (N)
- User Interaction (UI): Passive (P)
- Vulnerable System Impact Confidentiality (VC): High (H)
- Vulnerable System Impact Integrity (VI): High (H)
- Vulnerable System Impact Availability (VA): High (H)
- Subsequent System Impact Confidentiality (SC): None (N)
- Subsequent System Impact Integrity (SI): None (N)
- Subsequent System Impact Availability (SA): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Attack Requirement (MAT): Present (P)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): Passive (P)
- Modified Vulnerable System Impact Confidentiality (MVC): High (H)
- Modified Vulnerable System Impact Integrity (MVI): High (H)
- Modified Vulnerable System Impact Availability (MVA): High (H)
- Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
- Modified Subsequent System Impact Integrity (MSI): Negligible (N)
- Modified Subsequent System Impact Availability (MSA): Negligible (N)
- Safety (S): Not Defined (X)
- Automatable (AU): Not Defined (X)
- Recovery (R): Not Defined (X)
- Value Density (V): Not Defined (X)
- Vulnerability Response Effort (RE): Not Defined (X)
- Provider Urgency (U): Not Defined (X)
- Confidentiality Req. (CR): Not Defined (X)
- Integrity Req. (IR): Not Defined (X)
- Availability Req. (AR): Not Defined (X)
- Exploit Maturity (E): Not Defined (X)
by @LeSuisse Activity log
- Created suggestion
-
@LeSuisse
ignored
13 packages
- subtitlecomposer
- composer-require-checker
- haskellPackages.gogol-composer
- phpPackages.cyclonedx-php-composer
- php82Packages.cyclonedx-php-composer
- php83Packages.cyclonedx-php-composer
- php84Packages.cyclonedx-php-composer
- php85Packages.cyclonedx-php-composer
- phpPackages.composer-local-repo-plugin
- php82Packages.composer-local-repo-plugin
- php83Packages.composer-local-repo-plugin
- php84Packages.composer-local-repo-plugin
- php85Packages.composer-local-repo-plugin
- @LeSuisse accepted
- @LeSuisse published on GitHub
Composer: Perforce source URL permits P4PORT `rsh:` command execution
Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and 2.10.3, a malicious dependency package from a custom Composer repository or an untrusted composer.lock file could set source.type to perforce and source.url to an rsh: or jsh: P4PORT value. When the Perforce p4 client was installed and Composer installed the package from source through composer install or composer update, including --prefer-source, Composer\Util\Perforce passed the address to p4 without validation, causing p4 to run a local command with the privileges of the user or CI account. Packagist.org does not permit Perforce source metadata. This issue is fixed in versions 2.2.30 and 2.10.3.
References
-
https://github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3 x_refsource_CONFIRM
-
https://github.com/composer/composer/releases/tag/2.10.3 x_refsource_MISC
-
https://github.com/composer/composer/releases/tag/2.2.30 x_refsource_MISC
Affected products
- ==>= 1.0, < 2.2.30
- ==>= 2.3.0, < 2.10.3
Matching in nixpkgs
pkgs.phpPackages.composer
Dependency Manager for PHP
pkgs.php82Packages.composer
Dependency Manager for PHP
pkgs.php83Packages.composer
Dependency Manager for PHP
pkgs.php84Packages.composer
Dependency Manager for PHP
Ignored packages (13)
pkgs.subtitlecomposer
Open source text-based subtitle editor
pkgs.composer-require-checker
CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies
pkgs.haskellPackages.gogol-composer
Google Cloud Composer SDK
pkgs.phpPackages.cyclonedx-php-composer
Composer plugin that facilitates the creation of a CycloneDX Software Bill of Materials (SBOM) from PHP Composer projects
pkgs.php82Packages.cyclonedx-php-composer
Composer plugin that facilitates the creation of a CycloneDX Software Bill of Materials (SBOM) from PHP Composer projects
pkgs.php83Packages.cyclonedx-php-composer
Composer plugin that facilitates the creation of a CycloneDX Software Bill of Materials (SBOM) from PHP Composer projects
pkgs.php84Packages.cyclonedx-php-composer
Composer plugin that facilitates the creation of a CycloneDX Software Bill of Materials (SBOM) from PHP Composer projects
pkgs.php85Packages.cyclonedx-php-composer
Composer plugin that facilitates the creation of a CycloneDX Software Bill of Materials (SBOM) from PHP Composer projects
pkgs.phpPackages.composer-local-repo-plugin
Composer plugin that facilitates the creation of a local composer type repository
pkgs.php82Packages.composer-local-repo-plugin
Composer plugin that facilitates the creation of a local composer type repository
pkgs.php83Packages.composer-local-repo-plugin
Composer plugin that facilitates the creation of a local composer type repository
pkgs.php84Packages.composer-local-repo-plugin
Composer plugin that facilitates the creation of a local composer type repository
Package maintainers
-
@aanderse Aaron Andersen <aaron@fosslib.net>
-
@talyz Kim Lindberger <kim.lindberger@gmail.com>
-
@Ma27 Maximilian Bosch <maximilian@mbosch.me>
-
@piotrkwiecinski Piotr Kwiecinski <piokwiecinski+nixpkgs@gmail.com>