{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.18.1"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b8dd23aaa828cb289fa3c84e75b2a3717cab50b0"
            }
          ],
          "repo": "https://github.com/flightphp/core",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-3xjv-pmf2-gf2q"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42549.json"
  },
  "details": "Flight is an extensible micro-framework for PHP. Prior to 3.18.1, the make:controller CLI command calls mkdir(..., recursive: true) on a path built from the user-supplied controller name, before Nette's class-name validation runs. The class-file write is correctly rejected by Nette when the name contains /, but the recursive directory creation side effect is already committed — including directories located outside the project root through ../ traversal. This vulnerability is fixed in 3.18.1.",
  "id": "CVE-2026-42549",
  "modified": "2026-08-12T03:51:31.319903876Z",
  "published": "2026-05-13T19:22:20.932Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42549.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42549"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Flight: Path traversal in `make:controller` CLI creates arbitrary directories outside project root"
}