Source: composer Version: 2.2.9-1 Severity: important Tags: security X-Debbugs-Cc: codeh...@debian.org, Debian Security Team <t...@security.debian.org>
Hi, The following vulnerability was published for composer. CVE-2022-24828[0]: | Composer is a dependency manager for the PHP programming language. | Integrators using Composer code to call `VcsDriver::getFileContent` | can have a code injection vulnerability if the user can control the | `$file` or `$identifier` argument. This leads to a vulnerability on | packagist.org for example where the composer.json's `readme` field can | be used as a vector for injecting parameters into hg/Mercurial via the | `$file` argument, or git via the `$identifier` argument if you allow | arbitrary data there (Packagist does not, but maybe other integrators | do). Composer itself should not be affected by the vulnerability as it | does not call `getFileContent` with arbitrary data into | `$file`/`$identifier`. To the best of our knowledge this was not | abused, and the vulnerability has been patched on packagist.org and | Private Packagist within a day of the vulnerability report. If you fix the vulnerability please also make sure to include the CVE (Common Vulnerabilities & Exposures) id in your changelog entry. For further information see: [0] https://security-tracker.debian.org/tracker/CVE-2022-24828 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24828 Please adjust the affected versions in the BTS as needed. -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.16.0-6-amd64 (SMP w/16 CPU threads; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled