Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency composer/composer to ^2.7.0 [SECURITY] #761

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 8, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
composer/composer (source) ^2.6.4 -> ^2.7.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

CVE-2024-24821

Impact

Several files within the local working directory are included during the invocation of Composer and in the context of the executing user.

As such, under certain conditions arbitrary code execution may lead to local privilege escalation, provide lateral user movement or malicious code execution when Composer is invoked within a directory with tampered files.

All Composer CLI commands are affected, including composer.phar's self-update.

The following are of high risk:

  • Composer being run with sudo.
  • Pipelines which may execute Composer on untrusted projects.
  • Shared environments with developers who run Composer individually on the same project.

Patches

2.7.0, 2.2.23

Workarounds

  • It is advised that the patched versions are applied at the earliest convenience.

Where not possible, the following should be addressed:

  • Remove all sudo composer privileges for all users to mitigate root privilege escalation.
  • Avoid running Composer within an untrusted directory, or if needed, verify that the contents of vendor/composer/InstalledVersions.php and vendor/composer/installed.php do not include untrusted code.

A reset can also be done on these files by the following:

rm vendor/composer/installed.php vendor/composer/InstalledVersions.php
composer install --no-scripts --no-plugins

Release Notes

composer/composer (composer/composer)

v2.7.0

Compare Source

  • Security: Fixed code execution and possible privilege escalation via compromised vendor dir contents (GHSA-7c6p-848j-wh5h / CVE-2024-24821)
    • Changed the default of the audit.abandoned config setting to fail, set it to report or ignore if you do not want this, or set it via COMPOSER_AUDIT_ABANDONED env var (#​11643)
    • Added --minimal-changes (-m) flag to update/require/remove commands to perform partial update with --with-dependencies while changing only what is absolutely necessary in transitive dependencies (#​11665)
    • Added --sort-by-age (-A) flag to outdated/show commands to allow sorting by and displaying the release date (most outdated first) (#​11762)
    • Added support for --self combined with --installed or --locked in show command, to add the root package to the package list being output (#​11785)
    • Added severity information to audit command output (#​11702)
    • Added scripts-aliases top level key in composer.json to define aliases for custom scripts you defined (#​11666)
    • Added IPv4 fallback on connection timeout, as well as a COMPOSER_IPRESOLVE env var to force IPv4 or IPv6, set it to 4 or 6 (#​11791)
    • Added support for wildcards in outdated's --ignore arg (#​11831)
    • Added support for bump command bumping * to >=current version (#​11694)
    • Added detection of constraints that cannot possibly match anything to validate command (#​11829)
    • Added package source information to the output of install when running in very verbose (-vv) mode (#​11763)
    • Added audit of Composer's own bundled dependencies in diagnose command (#​11761)
    • Added GitHub token expiration date to diagnose command output (#​11688)
    • Added non-zero status code to why/why-not commands (#​11796)
    • Added error when calling show --direct <package> with an indirect/transitive dependency (#​11728)
    • Added COMPOSER_FUND=0 env var to hide calls for funding (#​11779)
    • Fixed bump command not bumping packages required with a v prefix (#​11764)
    • Fixed automatic disabling of plugins when running non-interactive as root
    • Fixed update --lock not keeping the dist reference/url/checksum pinned (#​11787)
    • Fixed require command crashing at the end if no lock file is present (#​11814)
    • Fixed root aliases causing problems when auditing locked dependencies (#​11771)
    • Fixed handling of versions with 4 components in require command (#​11716)
    • Fixed compatibility issues with Symfony 7
    • Fixed composer.json remaining behind after a --dry-run of the require command (#​11747)
    • Fixed warnings being shown incorrectly under some circumstances (#​11786, #​11760, #​11803)

Configuration

📅 Schedule: Branch creation - "" in timezone UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

Read more about the use of Renovate Bot within ocramius/* projects.

@renovate renovate bot added the security label Feb 8, 2024
| datasource | package           | from  | to    |
| ---------- | ----------------- | ----- | ----- |
| packagist  | composer/composer | 2.6.6 | 2.7.0 |
@renovate renovate bot force-pushed the renovate/packagist-composer/composer-vulnerability branch from 8bf6f00 to b9af363 Compare February 8, 2024 19:11
@Ocramius Ocramius merged commit 4f4a111 into 8.7.x Feb 8, 2024
31 checks passed
@Ocramius Ocramius deleted the renovate/packagist-composer/composer-vulnerability branch February 8, 2024 19:16
@Ocramius Ocramius added this to the 8.7.0 milestone Feb 8, 2024
@Ocramius Ocramius added the dependencies Pull requests that update a dependency file label Feb 8, 2024
@Ocramius Ocramius self-assigned this Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant