CVE-2025-2149: PyTorch: improper init in quantized sigmoid skews model output
GHSA-x3gm-94wq-g975 LOW PoC AVAILABLE CISA: TRACK*This low-severity flaw in PyTorch 2.6.0's quantized Sigmoid module allows a local attacker with limited privileges to corrupt scale/zero_point initialization, silently degrading model prediction integrity. Not actively exploited and requires local access with high complexity — deprioritize patching unless running inference workloads on multi-tenant or shared GPU infrastructure. Monitor for PyTorch patch releases and schedule upgrade in next maintenance window.
What is the risk?
Risk is LOW in isolation. CVSS 2.5 reflects local-only access, high attack complexity, and integrity-only impact. However, in AI/ML pipelines where quantized models are deployed on shared inference servers, an insider or compromised process could exploit this to introduce subtle, hard-to-detect prediction errors. The real risk is not immediate compromise but undetected model integrity erosion — particularly dangerous in safety-critical or compliance-sensitive AI workloads.
What systems are affected?
How severe is it?
What is the attack surface?
What should I do?
6 steps-
Inventory PyTorch versions across inference and training infrastructure — flag any deployment on 2.6.0+cu124.
-
Avoid using
torch.nn.quantized.Sigmoidwith unvalidated scale/zero_point arguments until patched. -
Validate quantization parameters at model load time: assert scale > 0 and zero_point is within expected integer range.
-
Monitor GitHub issue #147818 for upstream patch status.
-
If quantized inference is critical, consider downgrading to PyTorch 2.5.x as a temporary workaround.
-
For production serving, enforce process isolation on inference workers to limit local privilege escalation paths.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2025-2149?
This low-severity flaw in PyTorch 2.6.0's quantized Sigmoid module allows a local attacker with limited privileges to corrupt scale/zero_point initialization, silently degrading model prediction integrity. Not actively exploited and requires local access with high complexity — deprioritize patching unless running inference workloads on multi-tenant or shared GPU infrastructure. Monitor for PyTorch patch releases and schedule upgrade in next maintenance window.
Is CVE-2025-2149 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2025-2149, increasing the risk of exploitation.
How to fix CVE-2025-2149?
1. Inventory PyTorch versions across inference and training infrastructure — flag any deployment on 2.6.0+cu124. 2. Avoid using `torch.nn.quantized.Sigmoid` with unvalidated scale/zero_point arguments until patched. 3. Validate quantization parameters at model load time: assert scale > 0 and zero_point is within expected integer range. 4. Monitor GitHub issue #147818 for upstream patch status. 5. If quantized inference is critical, consider downgrading to PyTorch 2.5.x as a temporary workaround. 6. For production serving, enforce process isolation on inference workers to limit local privilege escalation paths.
What systems are affected by CVE-2025-2149?
This vulnerability affects the following AI/ML architecture patterns: quantized inference serving, training pipelines, model serving, edge AI deployments.
What is the CVSS score for CVE-2025-2149?
CVE-2025-2149 has a CVSS v3.1 base score of 2.5 (LOW). The EPSS exploitation probability is 0.23%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.001 AI Software AML.T0018 Manipulate AI Model AML.T0031 Erode AI Model Integrity Compliance Controls Affected
What are the technical details?
Original Advisory
A vulnerability was found in PyTorch 2.6.0+cu124. It has been rated as problematic. Affected by this issue is the function nnq_Sigmoid of the component Quantized Sigmoid Module. The manipulation of the argument scale/zero_point leads to improper initialization. The attack needs to be approached locally. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used.
Exploitation Scenario
A malicious insider or compromised CI/CD process with user-level access to an inference server constructs a PyTorch model artifact that instantiates `nnq_Sigmoid` with crafted scale=0.001 and zero_point=255. When the model is loaded and executed in production, the quantized activation output maps incorrectly, causing the model to systematically misclassify specific inputs. In a content moderation or fraud detection pipeline, this creates a reliable bypass: attacker-controlled inputs pass through undetected while legitimate traffic may be misflagged. The integrity degradation is subtle and unlikely to trigger standard accuracy-monitoring thresholds unless A/B comparisons against full-precision models are in place.
Weaknesses (CWE)
CWE-665 — Improper Initialization: The product does not initialize or incorrectly initializes a resource, which might leave the resource in an unexpected state when it is accessed or used.
- [Requirements] Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, in Java, if the programmer does not explicitly initialize a variable, then the code could produce a compile-time error (if the variable is local) or automatically initialize the variable to the default value for the variable's type. In Perl, if explicit initialization is not performed, then a default value of undef is assigned, which is interpreted as 0, false, or an equivalent value depending on the context in which the variable is accessed.
- [Architecture and Design] Identify all variables and data stores that receive information from external sources, and apply input validation to make sure that they are only initialized to expected values.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N References
- github.com/pytorch/pytorch/issues/147818 Issue
- github.com/pytorch/pytorch/issues/147818 Issue
- vuldb.com Permissions Required VDB
- vuldb.com 3rd Party VDB
- vuldb.com Exploit 3rd Party VDB
- github.com/advisories/GHSA-x3gm-94wq-g975
- github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-190.yaml
- nvd.nist.gov/vuln/detail/CVE-2025-2149
- github.com/fkie-cad/nvd-json-data-feeds Exploit
Timeline
Related Vulnerabilities
CVE-2024-5452 9.8 pytorch-lightning: RCE via deepdiff Delta deserialization
Same package: torch CVE-2023-43654 9.8 TorchServe: SSRF + RCE via unrestricted model URL loading
Same package: torch CVE-2022-45907 9.8 PyTorch: RCE via unsafe eval in JIT annotations
Same package: torch CVE-2022-0845 9.8 pytorch-lightning: code injection enables full RCE
Same package: torch CVE-2024-35198 9.8 TorchServe: URL bypass enables arbitrary model loading
Same package: torch