Skip to content
Heist/ feed
Back to feed
Medium

picklescan - Security scanning bypass via 'pip main'

Type: advisorySources: OSV

picklescan before 0.0.21 does not treat 'pip' as an unsafe global. An attacker could craft a malicious model that uses Pickle to pull in a malicious PyPI package (hosted, for example, on pypi.org or GitHub) via `pip.main()`. Because pip is not a restricted global, the model, when scanned with picklescan, would pass security checks and appear to be safe, when it could instead prove to be problematic.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-1716, CVE-2025-1889
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 01:10 UTC · Revision 1

Source evidence

picklescan - Security scanning bypass via 'pip main'

core-osv · Original source

Published 26 Feb 2025, 14:51 UTC

picklescan before 0.0.21 does not treat 'pip' as an unsafe global. An attacker could craft a malicious model that uses Pickle to pull in a malicious PyPI package (hosted, for example, on pypi.org or GitHub) via `pip.main()`. Because pip is not a restricted global, the model, when scanned with picklescan, would pass security checks and appear to be safe, when it could instead prove to be problematic.

osv:CVE-2025-1716
Complete source record
{
  "id": "d7ba9b284d2bca68ee72920ca2a1f0d41b441e3a2b82fd7121430b84ba21d12b",
  "url": "https://osv.dev/vulnerability/CVE-2025-1716",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "picklescan - Security scanning bypass via 'pip main'",
    "summary": "picklescan before 0.0.21 does not treat 'pip' as an unsafe global. An attacker could craft a malicious model that uses Pickle to pull in a malicious PyPI package (hosted, for example, on pypi.org or GitHub) via `pip.main()`. Because pip is not a restricted global, the model, when scanned with picklescan, would pass security checks and appear to be safe, when it could instead prove to be problematic.",
    "evidence": "osv:CVE-2025-1716",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-1716",
      "aliases": [
        "CVE-2025-1716",
        "CVE-2025-1889",
        "GHSA-655q-fx9r-782v",
        "GHSA-769v-p64c-89pr",
        "PYSEC-2025-18",
        "PYSEC-2025-19"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mmaitre314/picklescan",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f34d091824cb8775711f039b5299c277e2ecc663"
                },
                {
                  "fixed": "78ce704227c51f070c0c5fb4b466d92c62a7aa3d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mmaitre314:picklescan:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.0.22"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "78ce704227c51f070c0c5fb4b466d92c62a7aa3d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.0.20",
            "v0.0.19",
            "v0.0.18",
            "v0.0.17",
            "v0.0.15",
            "v0.0.14",
            "v0.0.13",
            "v0.0.12",
            "v0.0.11",
            "v0.0.10",
            "v0.0.9",
            "v0.0.8",
            "v0.0.7",
            "v0.0.6",
            "v0.0.5",
            "v0.0.4",
            "v0.0.3",
            "v0.0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-1716.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.546724490Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1716.json",
        "https://github.com/mmaitre314/picklescan/security/advisories/GHSA-655q-fx9r-782v",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-1716",
        "https://www.sonatype.com/security-advisories/cve-2025-1716",
        "https://github.com/mmaitre314/picklescan/commit/78ce704227c51f070c0c5fb4b466d92c62a7aa3d",
        "https://github.com/mmaitre314/picklescan",
        "https://pypi.org/project/picklescan/"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-184"
        ],
        "cna_assigner": "Sonatype",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1716.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-1716",
        "evidence": "/id"
      },
      {
        "value": "CVE-2025-1889",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 516872,
  "published_at": "2025-02-26T14:51:38.085+00:00"
}