CVE-2025-46153
Homebrew vulnerability analysis and mitigation

Overview

CVE-2025-46153 affects PyTorch versions before 2.7.0, specifically involving the bernoulli_p decompose function in decompositions.py. The vulnerability was discovered and disclosed in September 2025, impacting the PyTorch machine learning framework's dropout layer implementations (nn.Dropout1d, nn.Dropout2d, and nn.Dropout3d) (NVD, GitHub Issue).

Technical details

The vulnerability stems from the bernoulli_p decompose function lacking full consistency with the eager CPU implementation, specifically affecting nn.Dropout1d, nn.Dropout2d, and nn.Dropout3d when fallback_random=True is set. The issue has been assigned a CVSS v3.1 Base Score of 5.3 (MEDIUM) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N. The vulnerability is classified under CWE-1176 (Inefficient CPU Computation) (NVD).

Impact

The vulnerability causes incorrect calculation results when using the affected dropout layers with torch.compile() on CPU, even when fallback_random=True is set. This inconsistency between compiled and eager execution modes could lead to unexpected behavior in machine learning models, potentially affecting model training and inference results (GitHub Issue).

Mitigation and workarounds

The vulnerability has been fixed in PyTorch version 2.7.0 by disabling the bernoulli_p decomposition functionality. Users are recommended to upgrade to PyTorch version 2.7.0 or later to address this issue (GitHub PR).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22861HIGH8.8
  • HomebrewHomebrew
  • iccdev
NoYesJan 13, 2026
CVE-2026-22776HIGH8.7
  • HomebrewHomebrew
  • cpp-httplib
NoYesJan 12, 2026
CVE-2026-22783HIGH8.1
  • NixOSNixOS
  • iris
NoYesJan 12, 2026
CVE-2026-21283HIGH7.8
  • Adobe BridgeAdobe Bridge
  • bridge
NoYesJan 13, 2026
CVE-2026-22784LOW2.3
  • NixOSNixOS
  • lychee
NoYesJan 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management