Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-18572

osCommerce 2.3.4.1 has an incomplete '.htaccess' for blacklist filtering in the "product" page. Because of this filter, script files with certain PHP-related extensions (such as .phtml and .php5) didn't execute in the application. But this filter didn't prevent the '.pht' extension. Thus, remote authenticated administrators can upload '.pht' files for arbitrary PHP code execution via a /catalog/admin/categories.php?cPath=&action=new_product URI.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-18572
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:42 UTC · Revision 1

Source evidence

CVE-2018-18572

core-osv · Original source

Published 22 Aug 2019, 15:15 UTC

osCommerce 2.3.4.1 has an incomplete '.htaccess' for blacklist filtering in the "product" page. Because of this filter, script files with certain PHP-related extensions (such as .phtml and .php5) didn't execute in the application. But this filter didn't prevent the '.pht' extension. Thus, remote authenticated administrators can upload '.pht' files for arbitrary PHP code execution via a /catalog/admin/categories.php?cPath=&action=new_product URI.

osv:CVE-2018-18572
Complete source record
{
  "id": "20b4ed15258d3dac7676c2ee28db0b0cfe492ae68b935de8e7b6fc4cf4e8c45c",
  "url": "https://osv.dev/vulnerability/CVE-2018-18572",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-18572",
    "summary": "osCommerce 2.3.4.1 has an incomplete '.htaccess' for blacklist filtering in the \"product\" page. Because of this filter, script files with certain PHP-related extensions (such as .phtml and .php5) didn't execute in the application. But this filter didn't prevent the '.pht' extension. Thus, remote authenticated administrators can upload '.pht' files for arbitrary PHP code execution via a /catalog/admin/categories.php?cPath=&action=new_product URI.",
    "evidence": "osv:CVE-2018-18572",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-18572",
      "aliases": [
        "CVE-2018-18572"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/oscommerce/oscommerce2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "94e9e9efe7994bf88d8ade2e64881b4bfe1745d4"
                },
                {
                  "last_affected": "94e9e9efe7994bf88d8ade2e64881b4bfe1745d4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:oscommerce:oscommerce:2.3.4.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.4.1"
                      },
                      {
                        "last_affected": "2.3.4.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.3.4.1",
            "v2.3.4.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18572.json"
          }
        }
      ],
      "modified": "2026-10-24T10:49:38.475762457Z",
      "provider": "osv",
      "references": [
        "https://github.com/osCommerce/oscommerce2/issues/631"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:oscommerce:oscommerce:2.3.4.1:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oscommerce:oscommerce",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.3.4.1"
                  },
                  {
                    "last_affected": "2.3.4.1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-18572",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 441782,
  "published_at": "2019-08-22T15:15:11.967+00:00"
}