UBUNTU-CVE-2022-24828

Source
https://ubuntu.com/security/CVE-2022-24828
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24828.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-24828
Related
Published
2022-04-13T21:15:00Z
Modified
2024-10-15T14:09:48Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / composer

Package

Name
composer
Purl
pkg:deb/ubuntu/composer?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.0.0~alpha10+20150602-1
1.0.0~alpha10+20150602-2
1.0.0~alpha11-1
1.0.0~alpha11-1ubuntu1
1.0.0~alpha11-2
1.0.0~alpha11-3
1.0.0~beta1-1ubuntu1
1.0.0~beta2-1
1.0.0~beta2-1ubuntu0.1~esm1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / composer

Package

Name
composer
Purl
pkg:deb/ubuntu/composer?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.5.1-1
1.5.2-1
1.6.2-1
1.6.3-1
1.6.3-1ubuntu0.1~esm1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / composer

Package

Name
composer
Purl
pkg:deb/ubuntu/composer?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.9.0-2
1.9.1-1
1.9.2-1
1.9.3-1
1.10.0-1
1.10.1-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / composer

Package

Name
composer
Purl
pkg:deb/ubuntu/composer?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.0.9-2ubuntu2
2.0.9-2ubuntu3
2.0.13-1ubuntu1
2.1.12-1ubuntu1
2.2.6-2ubuntu4

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / composer

Package

Name
composer
Purl
pkg:deb/ubuntu/composer?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.7.1-2
2.7.4-1
2.7.6-1
2.7.6-2
2.7.6-3
2.7.7-1
2.7.7-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / composer

Package

Name
composer
Purl
pkg:deb/ubuntu/composer?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.5.8-1
2.6.5-1
2.6.6-1
2.7.1-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}