BREACHSPIDER
CVE databaseVendorsIntelResearchFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-4138 in Siemens SCALANCE XR-300 and 11 more products

High 7.5 Industrial / OT

Allows the extraction filter to be ignored, allowing symlink targets to point outside the destination directory, and the modification of some file metadata. You are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a value of "data" or "tar". See the tarfile extraction filters documentation https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter  for more information. Note that for Python 3.14 or later the default value of filter= changed from "no filtering" to `"data", so if you are relying on this new default behavior then your usage is also affected. Note that none of these vulnerabilities significantly affect the installation of source distributions which are tar archives as source distributions already allow arbitrary code execution during the build process. However when evaluating source distributions it's important to avoid installing source distributions with suspicious links.

Affects 12 products from 1 vendor. Description from NVD and MITRE.

CVSS 3.17.5
EPSS1.5%
EPSS percentile75th

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Siemens SCALANCE XR-300 (device and firmware) < 3.3
Siemens SCALANCE XR-500 (device and firmware) < 3.3
Siemens RUGGEDCOM RST2428P (device and firmware) < 3.3
Siemens SCALANCE XCH328 < 3.3
Siemens SCALANCE XCM324 < 3.3
Siemens SCALANCE XCM328 < 3.3
Siemens SCALANCE XCM332 < 3.3
Siemens SCALANCE XRH334 < 3.3
Siemens SCALANCE XRM334 < 3.3

Show 1 more products

Fix and vendor advisory

  • RUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2) and 11 more: Update to V3.3 or later version
  • SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family: See Section Additional Information.

Source: ICSA-26-043-06

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Record details

CVE IDCVE-2025-4138
BreachSpider IDBS-2025-GLOBAL-270061-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published2025-06-03
Last modified2026-07-31
Weakness (CWE)
SourceNVD

Compensating controls AI-drafted, review before use

Implement strict input validation and sanitization for any tar archives processed by the system. Ensure that the `filter` parameter is set to a safe value or disabled if not necessary. Regularly audit and monitor the system for any suspicious activity.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Check devices from your own code or AI agent: free 14-day trial

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-31.