---
id: CVE-2025-71325
title: >-
  picklescan before 0.0.27 contains a parsing logic error in the _list_globals
  function when handling STACK_GLOBAL opcodes, failing to track arguments in the
  correct range and allowing malicious pickle files to bypass detection
summary: >-
  picklescan before 0.0.27 contains a parsing logic error in the _list_globals
  function when handling STACK_GLOBAL opcodes, failing to track arguments in the
  correct range and allowing malicious pickle files to bypass detection.
  Attackers …
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-391
vendor: picklescan
product: picklescan
affected:
  - picklescan < 0.0.27
patched:
  - picklescan 0.0.27
published: '2026-06-17'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T22:10:00.247'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71325'
references:
  - url: >-
      https://github.com/mmaitre314/picklescan/commit/2a8383cfeb4158567f9770d86597300c9e508d0f
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/mmaitre314/picklescan/security/advisories/GHSA-9gvj-pp9x-gcfr
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/picklescan-detection-bypass-via-stack-global-opcode-parsing-logic-flaw
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/mmaitre314/picklescan/security/advisories/GHSA-9gvj-pp9x-gcfr
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71325'
  - url: >-
      https://github.com/mmaitre314/picklescan/commit/58983e1c20973ac42f2df7ff15d7c8cd32f9b688
  - url: 'https://github.com/mmaitre314/picklescan'
  - url: >-
      https://github.com/mmaitre314/picklescan/blob/2a8383cfeb4158567f9770d86597300c9e508d0f/src/picklescan/scanner.py#L255
  - url: >-
      https://github.com/mmaitre314/picklescan/blob/2a8383cfeb4158567f9770d86597300c9e508d0f/src/picklescan/scanner.py#L281
  - url: 'https://github.com/mmaitre314/picklescan/releases/tag/v0.0.27'
tags:
  - nvd
  - osv
  - pip
epss: 0.00604
epssPercentile: 0.49075
aliases:
  - GHSA-9gvj-pp9x-gcfr
  - PYSEC-2026-1788
ecosystem: pip
ingestedAt: '2026-07-08T18:25:47.983Z'
---

## Overview

picklescan before 0.0.27 contains a parsing logic error in the _list_globals function when handling STACK_GLOBAL opcodes, failing to track arguments in the correct range and allowing malicious pickle files to bypass detection. Attackers can craft pickle files with arguments at position zero to trigger unexpected exceptions and evade security scanning.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2025-71325)

Affected packages:

- `picklescan < 0.0.27`

Patched in:

- `picklescan 0.0.27`

Source: https://osv.dev/vulnerability/GHSA-9gvj-pp9x-gcfr
