{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "4.7.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "36256090764badf4f9862378c55fcfa850405fe1"
            }
          ],
          "repo": "https://github.com/codeigniter4/codeigniter4",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4hwf-v4mp-hf6c"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-434"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142155.json"
  },
  "details": "CodeIgniter4 before 4.7.5 has an upload validation bypass: the is_image and mime_in rules accept filenames whose trailing dots conceal a PHP extension, and these rules and ext_in accept a PHP extension before the final image extension. Attackers can upload such files to achieve remote code execution when applications keep client-supplied filenames in a web directory that executes PHP.",
  "id": "CVE-2026-142155",
  "modified": "2026-12-02T16:45:18.688454514Z",
  "published": "2026-12-02T14:37:44.403Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142155.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4hwf-v4mp-hf6c"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142155"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/codeigniter4-before-4.7.5-upload-validation-bypass-via-trailing-dots-and-php-extensions"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "CodeIgniter4 before 4.7.5 Upload Validation Bypass via Trailing Dots and PHP Extensions"
}