{
  "document": {
    "aggregate_severity": {
      "text": "Important"
    },
    "category": "csaf_security_advisory",
    "csaf_version": "2.0",
    "distribution": {
      "text": "TuxCare License Agreement",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Cloud Linux Inc. and provide a link to the original.",
        "title": "Terms of Use"
      },
      {
        "category": "details",
        "text": "* Non-maintainer upload by the TuxCare ELS team.\n   * CVE-2026-40261: Prevent a command injection vulnerability in\n     Perforce::syncCodeBase(), which appended the source reference to the\n     'p4 sync -f' command without escaping. Package metadata served by a\n     malicious or compromised Composer repository could inject shell\n     metacharacters, leading to command execution even when Perforce is not\n     installed.\n     - debian/patches/0018-CVE-2026-40261.patch\n   * CVE-2026-40176: Prevent a command injection vulnerability in\n     Perforce::generateP4Command(), which interpolated the Perforce\n     connection parameters (user, client, port) into the 'p4' command line\n     without escaping. A malicious composer.json declaring a Perforce VCS\n     repository could inject shell metacharacters, leading to command\n     execution even when Perforce is not installed. Also backport the\n     prerequisite upstream fix for Perforce::connectClient(), which passed\n     the client spec path through the shell redirection of the same command\n     line with only spaces escaped.\n     - debian/patches/0019-CVE-2026-40176.patch",
        "title": "Details"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://tuxcare.com/contact/",
      "name": "TuxCare",
      "namespace": "https://tuxcare.com/"
    },
    "references": [
      {
        "category": "self",
        "summary": "https://cve.tuxcare.com/els/releases/CLSA-2026:1787064466",
        "url": "https://cve.tuxcare.com/els/releases/CLSA-2026:1787064466"
      },
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.tuxcare.com/csaf/v2/els_os/debian10els/advisories/2026/clsa-2026_1787064466.json"
      }
    ],
    "tracking": {
      "current_release_date": "2026-08-18T14:48:24Z",
      "generator": {
        "date": "2026-08-18T14:48:24Z",
        "engine": {
          "name": "pyCSAF"
        }
      },
      "id": "CLSA-2026:1787064466",
      "initial_release_date": "2026-08-18T14:48:24Z",
      "revision_history": [
        {
          "date": "2026-08-18T14:48:24Z",
          "number": "1",
          "summary": "Initial version"
        }
      ],
      "status": "final",
      "version": "1"
    },
    "title": "Fix CVE(s): CVE-2026-40176, CVE-2026-40261"
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Debian 10",
                "product": {
                  "name": "Debian 10",
                  "product_id": "Debian-10",
                  "product_identification_helper": {
                    "cpe": "cpe:2.3:o:debian:debian_linux:10:*:*:*:*:*:*:*"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Debian"
          }
        ],
        "category": "vendor",
        "name": "Software in the Public Interest, Inc."
      },
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "composer-0:1.8.4-1+deb10u4+tuxcare.els1.all",
                "product": {
                  "name": "composer-0:1.8.4-1+deb10u4+tuxcare.els1.all",
                  "product_id": "composer-0:1.8.4-1+deb10u4+tuxcare.els1.all",
                  "product_identification_helper": {
                    "purl": "pkg:deb/tuxcare/composer@1.8.4-1%2Bdeb10u4%2Btuxcare.els1?arch=all"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "all"
          }
        ],
        "category": "vendor",
        "name": "TuxCare"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "composer-0:1.8.4-1+deb10u4+tuxcare.els1.all as a component of Debian 10",
          "product_id": "Debian-10:composer-0:1.8.4-1+deb10u4+tuxcare.els1.all"
        },
        "product_reference": "composer-0:1.8.4-1+deb10u4+tuxcare.els1.all",
        "relates_to_product_reference": "Debian-10"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2026-40261",
      "cwe": {
        "id": "CWE-20",
        "name": "Improper Input Validation"
      },
      "notes": [
        {
          "category": "description",
          "text": "Composer is a dependency manager for PHP. Versions 1.0 through 2.2.26 and 2.3 through 2.9.5 contain a command injection vulnerability in the Perforce::syncCodeBase() method, which appends the $sourceReference parameter to a shell command without proper escaping, and additionally in the Perforce::generateP4Command() method as in GHSA-wg36-wvj6-r67p / CVE-2026-40176, which interpolates user-supplied Perforce connection parameters (port, user, client) from the source url field without proper escaping. An attacker can inject arbitrary commands through crafted source reference or source url values containing shell metacharacters, even if Perforce is not installed. Unlike CVE-2026-40176, the source reference and url are provided as part of package metadata, meaning any compromised or malicious Composer repository can serve package metadata declaring perforce as a source type with malicious values. This vulnerability is exploitable when installing or updating dependencies from source, including the default behavior when installing dev-prefixed versions. This issue has been fixed in Composer 2.2.27 (2.2 LTS) and 2.9.6 (mainline). If developers are unable to immediately update, they can avoid installing dependencies from source by using --prefer-dist or the preferred-install: dist config setting, and only use trusted Composer repositories as a workaround.",
          "title": "Vulnerability description"
        }
      ],
      "product_status": {
        "fixed": [
          "Debian-10:composer-0:1.8.4-1+deb10u4+tuxcare.els1.all"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://cve.tuxcare.com/els/cve/CVE-2026-40261"
        },
        {
          "category": "external",
          "summary": "https://github.com/composer/composer/releases/tag/2.9.6",
          "url": "https://github.com/composer/composer/releases/tag/2.9.6"
        },
        {
          "category": "external",
          "summary": "https://github.com/composer/composer/security/advisories/GHSA-gqw4-4w2p-838q",
          "url": "https://github.com/composer/composer/security/advisories/GHSA-gqw4-4w2p-838q"
        },
        {
          "category": "external",
          "summary": "https://access.redhat.com/errata/RHSA-2026:8165",
          "url": "https://access.redhat.com/errata/RHSA-2026:8165"
        },
        {
          "category": "external",
          "summary": "https://access.redhat.com/security/cve/CVE-2026-40261",
          "url": "https://access.redhat.com/security/cve/CVE-2026-40261"
        },
        {
          "category": "external",
          "summary": "https://bugzilla.redhat.com/show_bug.cgi?id=2458841",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2458841"
        },
        {
          "category": "external",
          "summary": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40261.json",
          "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40261.json"
        }
      ],
      "release_date": "2026-04-15T21:17:00Z",
      "remediations": [
        {
          "category": "vendor_fix",
          "date": "2026-08-18T14:47:48.701739Z",
          "details": "Details on how to apply the fix are available at: https://cve.tuxcare.com/els/releases/CLSA-2026:1787064466",
          "product_ids": [
            "Debian-10:composer-0:1.8.4-1+deb10u4+tuxcare.els1.all"
          ],
          "url": "https://cve.tuxcare.com/els/releases/CLSA-2026:1787064466"
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Important"
        }
      ]
    },
    {
      "cve": "CVE-2026-40176",
      "cwe": {
        "id": "CWE-20",
        "name": "Improper Input Validation"
      },
      "notes": [
        {
          "category": "description",
          "text": "Composer is a dependency manager for PHP. Versions 1.0 through 2.2.26 and 2.3 through 2.9.5 contain a command injection vulnerability in the Perforce::generateP4Command() method, which constructs shell commands by interpolating user-supplied Perforce connection parameters (port, user, client) without proper escaping. An attacker can inject arbitrary commands through these values in a malicious composer.json declaring a Perforce VCS repository, leading to command execution in the context of the user running Composer, even if Perforce is not installed. VCS repositories are only loaded from the root composer.json or the composer config directory, so this cannot be exploited through composer.json files of packages installed as dependencies. Users are at risk if they run Composer commands on untrusted projects with attacker-supplied composer.json files. This issue has been fixed in Composer 2.2.27 (2.2 LTS) and 2.9.6 (mainline).",
          "title": "Vulnerability description"
        }
      ],
      "product_status": {
        "fixed": [
          "Debian-10:composer-0:1.8.4-1+deb10u4+tuxcare.els1.all"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://cve.tuxcare.com/els/cve/CVE-2026-40176"
        },
        {
          "category": "external",
          "summary": "https://github.com/composer/composer/releases/tag/2.9.6",
          "url": "https://github.com/composer/composer/releases/tag/2.9.6"
        },
        {
          "category": "external",
          "summary": "https://github.com/composer/composer/security/advisories/GHSA-wg36-wvj6-r67p",
          "url": "https://github.com/composer/composer/security/advisories/GHSA-wg36-wvj6-r67p"
        },
        {
          "category": "external",
          "summary": "https://access.redhat.com/errata/RHSA-2026:8165",
          "url": "https://access.redhat.com/errata/RHSA-2026:8165"
        },
        {
          "category": "external",
          "summary": "https://access.redhat.com/security/cve/CVE-2026-40176",
          "url": "https://access.redhat.com/security/cve/CVE-2026-40176"
        },
        {
          "category": "external",
          "summary": "https://bugzilla.redhat.com/show_bug.cgi?id=2458828",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2458828"
        },
        {
          "category": "external",
          "summary": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40176.json",
          "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40176.json"
        }
      ],
      "release_date": "2026-04-15T21:17:00Z",
      "remediations": [
        {
          "category": "vendor_fix",
          "date": "2026-08-18T14:47:48.701739Z",
          "details": "Details on how to apply the fix are available at: https://cve.tuxcare.com/els/releases/CLSA-2026:1787064466",
          "product_ids": [
            "Debian-10:composer-0:1.8.4-1+deb10u4+tuxcare.els1.all"
          ],
          "url": "https://cve.tuxcare.com/els/releases/CLSA-2026:1787064466"
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Important"
        }
      ]
    }
  ]
}