CVE catalog

CVE-2022-24828

Composer vulnerabilities

[CVE catalog]

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 · CVSS 7CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.89% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiantrixiecomposer2.2.12-1FixedDistribution-reported fixed boundary[CVE-2022-24828]
Debiantrixiecomposer2.8.8-1+deb13u3Fixed[CVE-2022-24828]
Debiansidcomposer2.10.3-1Fixed[CVE-2022-24828]
Debiansidcomposer2.2.12-1FixedDistribution-reported fixed boundary[CVE-2022-24828]
Debianforkycomposer2.10.3-1Fixed[CVE-2022-24828]
Debianforkycomposer2.2.12-1FixedDistribution-reported fixed boundary[CVE-2022-24828]
Debianbookworm-securitycomposer2.5.5-1+deb12u2Fixed[CVE-2022-24828]
Debianbookwormcomposer2.2.12-1FixedDistribution-reported fixed boundary[CVE-2022-24828]
Debianbookwormcomposer2.5.5-1+deb12u5Fixed[CVE-2022-24828]

Showing 9 fix observations. All 25 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
UnknownRelease not reportedcomposer2.7.1-2ubuntu0.1~esm1UnknownSource applicability is not establishedProvider not reported
Debianbookwormcomposer2.2.12-1FixedDistribution-reported fixed boundary[CVE-2022-24828]
Debianbookwormcomposer2.5.5-1+deb12u5Fixed[CVE-2022-24828]
Debianbookworm-securitycomposer2.5.5-1+deb12u2Fixed[CVE-2022-24828]
Debianforkycomposer2.10.3-1Fixed[CVE-2022-24828]
Debianforkycomposer2.2.12-1FixedDistribution-reported fixed boundary[CVE-2022-24828]
Debiansidcomposer2.10.3-1Fixed[CVE-2022-24828]
Debiansidcomposer2.2.12-1FixedDistribution-reported fixed boundary[CVE-2022-24828]
Debiantrixiecomposer2.2.12-1FixedDistribution-reported fixed boundary[CVE-2022-24828]
Debiantrixiecomposer2.8.8-1+deb13u3Fixed[CVE-2022-24828]
Opensuseleap 15.4php-composer22.2.3-150400.3.3.1UnknownSource applicability is not established[SUSE-SU-2022:3020-1]
Opensusetumbleweedphp-composer1.10.26-1.1UnknownSource applicability is not established[OPENSUSE-SU-2024:12054-1]
Opensusetumbleweedphp-composer22.3.5-1.1UnknownSource applicability is not established[OPENSUSE-SU-2024:12048-1]
Suselinux enterprise module for web and scripting 15 sp4php-composer22.2.3-150400.3.3.1UnknownSource applicability is not established[SUSE-SU-2022:3020-1]
Ubuntuprocomposer2.0.13-1ubuntu1UnknownSource applicability is not established[UBUNTU-CVE-2022-24828]
Ubuntuprocomposer2.0.9-2ubuntu2UnknownSource applicability is not established[UBUNTU-CVE-2022-24828]
Ubuntuprocomposer2.0.9-2ubuntu3UnknownSource applicability is not established[UBUNTU-CVE-2022-24828]
Ubuntuprocomposer2.1.12-1ubuntu1UnknownSource applicability is not established[UBUNTU-CVE-2022-24828]
Ubuntuprocomposer2.2.6-2ubuntu4UnknownSource applicability is not established[UBUNTU-CVE-2022-24828]
Ubuntuprocomposer2.2.6-2ubuntu4+esm1UnknownSource applicability is not established[UBUNTU-CVE-2022-24828]
Ubuntuprocomposer2.5.8-1UnknownSource applicability is not established[USN-7603-1]
Ubuntuprocomposer2.6.5-1UnknownSource applicability is not established[USN-7603-1]
Ubuntuprocomposer2.6.6-1UnknownSource applicability is not established[USN-7603-1]
Ubuntuprocomposer2.7.1-2UnknownSource applicability is not established[USN-7603-1]
Ubuntuprocomposer2.7.1-2ubuntu0.1~esm1UnknownSource applicability is not established[USN-7603-1]
Original provider fields
{
  "package_releases": [
    {
      "name": "composer",
      "status": "fixed",
      "release": "sid",
      "version": "2.10.3-1"
    },
    {
      "name": "composer",
      "status": "fixed",
      "release": "forky",
      "version": "2.10.3-1"
    },
    {
      "name": "composer",
      "status": "fixed",
      "release": "trixie",
      "version": "2.8.8-1+deb13u3"
    },
    {
      "name": "composer",
      "status": "fixed",
      "release": "bookworm",
      "version": "2.5.5-1+deb12u5"
    },
    {
      "name": "composer",
      "status": "fixed",
      "release": "bookworm-security",
      "version": "2.5.5-1+deb12u2"
    }
  ],
  "fixed_versions": [
    {
      "bug": 1009960,
      "name": "composer",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "2.2.12-1"
    },
    {
      "bug": 1009960,
      "name": "composer",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "2.2.12-1"
    },
    {
      "bug": 1009960,
      "name": "composer",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "2.2.12-1"
    },
    {
      "bug": 1009960,
      "name": "composer",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "2.2.12-1"
    }
  ],
  "distribution_packages": [
    {
      "name": "composer",
      "fixed_version": "2.7.1-2ubuntu0.1~esm1",
      "applicability_unknown": true
    },
    {
      "name": "composer",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.7.1-2ubuntu0.1~esm1"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "2.5.8-1",
        "2.6.5-1",
        "2.6.6-1",
        "2.7.1-2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/USN-7603-1",
      "fixed_version": "2.7.1-2ubuntu0.1~esm1",
      "provider_source": "pypi",
      "provider_record_id": "USN-7603-1",
      "provider_updated_at": "2026-06-25T13:32:30.436343581Z",
      "applicability_unknown": true
    },
    {
      "name": "php-composer2",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.2.3-150400.3.3.1"
            }
          ]
        }
      ],
      "release": "linux enterprise module for web and scripting 15 sp4",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:3020-1",
      "fixed_version": "2.2.3-150400.3.3.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:3020-1",
      "provider_updated_at": "2026-02-04T04:18:31.657330Z",
      "applicability_unknown": true
    },
    {
      "name": "php-composer2",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.2.3-150400.3.3.1"
            }
          ]
        }
      ],
      "release": "leap 15.4",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:3020-1",
      "fixed_version": "2.2.3-150400.3.3.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:3020-1",
      "provider_updated_at": "2026-02-04T04:18:31.657330Z",
      "applicability_unknown": true
    },
    {
      "name": "php-composer2",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.3.5-1.1"
            }
          ]
        }
      ],
      "release": "tumbleweed",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/openSUSE-SU-2024:12048-1",
      "fixed_version": "2.3.5-1.1",
      "provider_source": "pypi",
      "provider_record_id": "OPENSUSE-SU-2024:12048-1",
      "provider_updated_at": "2026-02-04T03:56:34.941327Z",
      "applicability_unknown": true
    },
    {
      "name": "composer",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.2.6-2ubuntu4+esm1"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "2.0.9-2ubuntu2",
        "2.0.9-2ubuntu3",
        "2.0.13-1ubuntu1",
        "2.1.12-1ubuntu1",
        "2.2.6-2ubuntu4"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-24828",
      "fixed_version": "2.2.6-2ubuntu4+esm1",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2022-24828",
      "provider_updated_at": "2026-02-04T03:27:34.022818Z",
      "applicability_unknown": true
    },
    {
      "name": "php-composer",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.10.26-1.1"
            }
          ]
        }
      ],
      "release": "tumbleweed",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/openSUSE-SU-2024:12054-1",
      "fixed_version": "1.10.26-1.1",
      "provider_source": "pypi",
      "provider_record_id": "OPENSUSE-SU-2024:12054-1",
      "provider_updated_at": "2026-02-04T02:16:31.414875Z",
      "applicability_unknown": true
    }
  ]
}

[Debian bug #1009960]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [composer]Unknown
    Details (4)
    • 2.5.5-1+deb12u5 · all · bookworm

      Fixed · Fixed: 2.2.12-1

      usn · composer · debian · bookworm

    • 2.5.5-1+deb12u5 · all · bookworm

      Fixed · Fixed: 2.2.12-1

      usn · composer · debian · bookworm

    • 2.5.5-1+deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.2.12-1

      usn · composer · debian · bookworm

    • 2.5.5-1+deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.2.12-1

      usn · composer · debian · bookworm

[openSUSE Tumbleweed]

  • [php-composer]Unknown

    Source package: [php-composer]

    Details (1)
    • 1.10.26-2.8 · noarch · tumbleweed

      Fixed · Fixed: 1.10.26-1.1

      usn · php-composer · opensuse · tumbleweed

  • [php-composer2]Unknown

    Source package: [php-composer2]

    Details (1)
    • 2.10.3-1.1 · noarch · tumbleweed

      Fixed · Fixed: 2.3.5-1.1

      usn · php-composer2 · opensuse · tumbleweed

Observed:

References