{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "5.0.1.4"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8f6b1724e1a71df6a4c2ba0aeaf900a877b20546"
            }
          ],
          "repo": "https://github.com/openemr/openemr",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {},
  "details": "Directory traversal in portal/import_template.php in versions of OpenEMR before 5.0.1.4 allows a remote attacker authenticated in the patient portal to execute arbitrary PHP code by writing a file with a PHP extension via the \"docid\" and \"content\" parameters and accessing it in the traversed directory.",
  "id": "CVE-2018-15142",
  "modified": "2026-07-08T05:36:23.615351917Z",
  "published": "2018-08-13T18:29:00.667Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.databreaches.net/openemr-patches-serious-vulnerabilities-uncovered-by-project-insecurity/"
    },
    {
      "type": "FIX",
      "url": "https://github.com/openemr/openemr/pull/1765/files"
    },
    {
      "type": "EVIDENCE",
      "url": "https://www.exploit-db.com/exploits/45202/"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}