Advisory

DEBIAN-CVE-2022-24828

Also known as: CVE-2022-24828

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2022-04-13 21:15 UTC
Modified
2026-11-18 06:02 UTC

Affected packages and fixes

composer

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 2.2.12-1 (ecosystem)

Fixed versions

2.2.12-1

Fix

  • Fixed version 2.2.12-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

composer

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 2.2.12-1 (ecosystem)

Fixed versions

2.2.12-1

Fix

  • Fixed version 2.2.12-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

composer

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 2.2.12-1 (ecosystem)

Fixed versions

2.2.12-1

Fix

  • Fixed version 2.2.12-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences