Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-15132

An issue was discovered in ext/standard/link_win32.c in PHP before 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8. The linkinfo function on Windows doesn't implement the open_basedir check. This could be abused to find files on paths outside of the allowed directories.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-15132
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:27 UTC · Revision 1

Source evidence

CVE-2018-15132

core-osv · Original source

Published 7 Aug 2018, 15:29 UTC

An issue was discovered in ext/standard/link_win32.c in PHP before 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8. The linkinfo function on Windows doesn't implement the open_basedir check. This could be abused to find files on paths outside of the allowed directories.

osv:CVE-2018-15132
Complete source record
{
  "id": "8384781680d31d6d793646e3ddf48645873044f79550d93d5fd6da6f7bf390bb",
  "url": "https://osv.dev/vulnerability/CVE-2018-15132",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-15132",
    "summary": "An issue was discovered in ext/standard/link_win32.c in PHP before 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8. The linkinfo function on Windows doesn't implement the open_basedir check. This could be abused to find files on paths outside of the allowed directories.",
    "evidence": "osv:CVE-2018-15132",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-15132",
      "aliases": [
        "CVE-2018-15132"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/php/php-src",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ea179bc44506ae1a4d5bb90502e962f43a902071"
                },
                {
                  "introduced": "60fffd296abce5fc071f3c173c25a2696cf683c6"
                },
                {
                  "fixed": "36d3d6c97c7d38a4d21438b5efa20f0b309518dd"
                },
                {
                  "introduced": "0221e9f827632942225586687a33cfd554860d5e"
                },
                {
                  "fixed": "1ceec3e87fa898ae09eb2d67353713f5bc0202bc"
                },
                {
                  "introduced": "8148cbb78841c8ec0759c0836e7f35dec799d300"
                },
                {
                  "fixed": "e32dc9aab87e888eefa7461dd71023d8274bb82d"
                },
                {
                  "fixed": "f151e048ed27f6f4eef729f3310d053ab5da71d4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.6.37"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "7.0.31"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.1.0"
                      },
                      {
                        "fixed": "7.1.20"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.2.0"
                      },
                      {
                        "fixed": "7.2.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f151e048ed27f6f4eef729f3310d053ab5da71d4"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "POST_PHP7_NSAPI_REMOVAL",
            "PRE_PHP7_NSAPI_REMOVAL",
            "PRE_PHP7_EREG_MYSQL_REMOVALS",
            "PRE_PHP7_REMOVALS",
            "POST_PHP7_REMOVALS",
            "POST_AST_MERGE",
            "PRE_AST_MERGE",
            "POST_64BIT_BRANCH_MERGE",
            "PRE_64BIT_BRANCH_MERGE",
            "POST_PHPNG_MERGE"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-15132.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-15132-168c6b48",
                "digest": {
                  "length": 336,
                  "function_hash": "220839560800956806208306563125284300441"
                },
                "source": "https://github.com/php/php-src/commit/f151e048ed27f6f4eef729f3310d053ab5da71d4",
                "target": {
                  "file": "ext/standard/link_win32.c",
                  "function": "PHP_FUNCTION"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-15132-dcccf7e0",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "212981070074641104509450091836034142668",
                    "88395583671409793582864696691747015255",
                    "135003533747648975021546284778785516302",
                    "35499557418267422634095220243727042900",
                    "117851673981305499478844129398245467257",
                    "305333203988229800397156101482248605558",
                    "81910444167263063639751966488804618110",
                    "74540981037737713416730411259175941424",
                    "40995403751221392183520592881069357352",
                    "6280604222098253175767719674684668033",
                    "301255860765288804387653980432627650299",
                    "288880281421390955004434485443976198059"
                  ]
                },
                "source": "https://github.com/php/php-src/commit/f151e048ed27f6f4eef729f3310d053ab5da71d4",
                "target": {
                  "file": "ext/standard/link_win32.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:35:29Z"
          }
        }
      ],
      "modified": "2026-10-20T13:35:29.123278835Z",
      "provider": "osv",
      "references": [
        "https://security.netapp.com/advisory/ntap-20181107-0003/",
        "https://www.tenable.com/security/tns-2018-12",
        "https://github.com/php/php-src/commit/f151e048ed27f6f4eef729f3310d053ab5da71d4",
        "https://bugs.php.net/bug.php?id=76459"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-15132",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387846,
  "published_at": "2018-08-07T15:29:00.873+00:00"
}