Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-1000117

Python Software Foundation CPython version From 3.2 until 3.6.4 on Windows contains a Buffer Overflow vulnerability in os.symlink() function on Windows that can result in Arbitrary code execution, likely escalation of privilege. This attack appears to be exploitable via a python script that creates a symlink with an attacker controlled name or location. This vulnerability appears to have been fixed in 3.7.0 and 3.6.5.

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

Source evidence

CVE-2018-1000117

core-osv · Original source

Published 7 Mar 2018, 14:29 UTC

Python Software Foundation CPython version From 3.2 until 3.6.4 on Windows contains a Buffer Overflow vulnerability in os.symlink() function on Windows that can result in Arbitrary code execution, likely escalation of privilege. This attack appears to be exploitable via a python script that creates a symlink with an attacker controlled name or location. This vulnerability appears to have been fixed in 3.7.0 and 3.6.5.

osv:CVE-2018-1000117
Complete source record
{
  "id": "68393c6088243f56c39f4a83042122676aafdc0403cafd358a726fe466930af8",
  "url": "https://osv.dev/vulnerability/CVE-2018-1000117",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-1000117",
    "summary": "Python Software Foundation CPython version From 3.2 until 3.6.4 on Windows contains a Buffer Overflow vulnerability in os.symlink() function on Windows that can result in Arbitrary code execution, likely escalation of privilege. This attack appears to be exploitable via a python script that creates a symlink with an attacker controlled name or location. This vulnerability appears to have been fixed in 3.7.0 and 3.6.5.",
    "evidence": "osv:CVE-2018-1000117",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-1000117",
      "aliases": [
        "CVE-2018-1000117",
        "PSF-2022-2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/python/cpython",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0a5a5af9b6b47727c5ee3def4508dab312949075"
                },
                {
                  "introduced": "2e789a1f1d84b343a996e8654590703b5fbdd441"
                },
                {
                  "fixed": "627d0c61ac96009450e3794a2401f244e56fcb79"
                },
                {
                  "introduced": "5c4568a05a0a62b5947c55f68f9f2ecfb90a4f12"
                },
                {
                  "fixed": "f59c0932b4e160f279fb98de4cdad2f58269e0a5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.0"
                      },
                      {
                        "fixed": "3.4.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.5.0"
                      },
                      {
                        "fixed": "3.5.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.6.0"
                      },
                      {
                        "fixed": "3.6.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.5.6rc1",
            "v3.4.9rc1",
            "v3.6.5rc1",
            "v3.5.5",
            "v3.4.8",
            "v3.5.5rc1",
            "v3.4.8rc1",
            "v3.4.7",
            "v3.5.4",
            "v3.5.4rc1",
            "v3.4.7rc1",
            "v3.6.2rc1",
            "v3.4.6",
            "v3.5.3",
            "v3.5.3rc1",
            "v3.4.6rc1",
            "v3.6.0rc1",
            "v3.6.0b4",
            "v3.6.0b3",
            "v3.6.0b1",
            "v3.6.0a3",
            "v3.4.5",
            "v3.5.2",
            "v3.4.5rc1",
            "v3.5.2rc1",
            "v3.5.1rc1",
            "v3.5.0rc3",
            "v3.5.0rc2",
            "v3.5.0rc1",
            "v3.5.0b4",
            "v3.5.0b3",
            "v3.5.0b1",
            "v3.5.0a4",
            "v3.5.0a3",
            "v3.5.0a2",
            "v3.4.3",
            "v3.5.0a1",
            "v3.4.3rc1",
            "v3.4.2rc1",
            "v3.4.1",
            "v3.4.1rc1",
            "v3.4.0",
            "v3.4.0rc3",
            "v3.4.0rc2",
            "v3.4.0rc1",
            "v3.4.0b3",
            "v3.4.0b2",
            "v3.4.0b1",
            "v3.4.0a4",
            "v3.4.0a3",
            "v3.4.0a2",
            "v3.4.0a1",
            "v3.3.0rc3",
            "v3.3.0rc2",
            "v3.3.0rc1",
            "v3.3.0b2",
            "v3.3.0b1",
            "v3.3.0a4",
            "v3.3.0a3",
            "v3.3.0a2",
            "v3.2rc3",
            "v3.2rc2",
            "v3.2rc1",
            "v3.2b2",
            "v3.2b1",
            "v3.2a4",
            "v3.2a3",
            "v3.2a2",
            "v3.2a1",
            "v3.1",
            "v3.1rc2",
            "v3.1rc1",
            "v3.1b1",
            "v3.1a2",
            "v3.1a1",
            "v3.0rc3",
            "v3.0rc2",
            "v3.0rc1",
            "v3.0b3",
            "v3.0b2",
            "v3.0b1",
            "v3.0a5",
            "v3.0a4",
            "v3.0a3",
            "v3.0a2",
            "v3.0a1",
            "v2.4",
            "v2.4c1",
            "v2.4b2",
            "v2.4b1",
            "v2.4a3",
            "v2.4a2",
            "v2.4a1",
            "v2.3c2",
            "v2.3c1",
            "v2.2a3",
            "v2.1",
            "v2.1c2",
            "v2.1c1",
            "v2.1b2",
            "v2.1b1",
            "v2.1a2",
            "v2.1a1",
            "v2.0",
            "v2.0c1",
            "v2.0b2",
            "v2.0b1",
            "v1.6a2",
            "v1.6a1",
            "v1.5.2",
            "v1.5.2c1",
            "v1.5.2b2",
            "v1.5.2b1",
            "v1.5.2a2",
            "v1.5.2a1",
            "v1.5.1",
            "v1.5",
            "v1.5b2",
            "v1.5b1",
            "v1.5a4",
            "v1.5a3",
            "v1.5a2",
            "v1.5a1",
            "v1.4",
            "v1.4b3",
            "v1.4b2",
            "v1.4b1",
            "v1.3",
            "v1.3b1",
            "v1.2",
            "v1.2b4",
            "v1.2b3",
            "v1.2b2",
            "v1.2b1",
            "v1.1.1",
            "v1.1",
            "v1.0.2",
            "v1.0.1",
            "v0.9.9",
            "v0.9.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-1000117.json"
          }
        }
      ],
      "modified": "2026-10-20T10:49:37.219994258Z",
      "provider": "osv",
      "references": [
        "https://bugs.python.org/issue33001",
        "https://github.com/python/cpython/pull/5989"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:python:python:3.7.0:beta1:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:beta2:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:beta3:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:beta4:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:beta5:*:*:*:*:*:*"
            ],
            "vendor_product": "python:python",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.7.0-beta1"
                  },
                  {
                    "last_affected": "3.7.0-beta1"
                  },
                  {
                    "introduced": "3.7.0-beta2"
                  },
                  {
                    "last_affected": "3.7.0-beta2"
                  },
                  {
                    "introduced": "3.7.0-beta3"
                  },
                  {
                    "last_affected": "3.7.0-beta3"
                  },
                  {
                    "introduced": "3.7.0-beta4"
                  },
                  {
                    "last_affected": "3.7.0-beta4"
                  },
                  {
                    "introduced": "3.7.0-beta5"
                  },
                  {
                    "last_affected": "3.7.0-beta5"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-1000117",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 380612,
  "published_at": "2018-03-07T14:29:00.28+00:00"
}