# CVE-2025-46153: PyTorch before 3.7.0 has a bernoullip decompose function in decompositions.py even though it lacks full consistency with the eager CPU impl…

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2025-09-25T00:00:00.000Z
- Modified: 2026-11-05T23:10:00.150Z
- Also known as: PYSEC-2025-202, BIT-PYTORCH-2025-46153
- Weaknesses: CWE-1176
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py even though it lacks full consistency with the eager CPU implementation, negatively affecting nn.Dropout1d, nn.Dropout2d, and nn.Dropout3d for fallback_random=True.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linuxfoundation pytorch: from 2.6.0 before 2.7.0
- torch (PyPI): from 2.6.0 before 2.7.0
- pytorch (Bitnami): from 2.6.0 before 2.7.0

## Every score

- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/pytorch/pytorch/issues/142853> (issue-tracking, report)
- <https://github.com/pytorch/pytorch/pull/143460> (fix, issue-tracking, patch)
- <https://gist.github.com/shaoyuyoung/e636f2e7a306105b7e96809e2b85c28a> (advisory, third-party-advisory)
- <https://github.com/pytorch/pytorch/compare/v2.6.0...v2.7.0> (product, web)
- <https://gist.github.com/shaoyuyoung/4bcefba4004f8271e64b5185c95a248a> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46153> (web)

## Sources

- CVE List: [CVE-2025-46153](https://www.cve.org/CVERecord?id=CVE-2025-46153), CVE Terms of Use, modified 2025-09-25
- NVD: [CVE-2025-46153](https://nvd.nist.gov/vuln/detail/CVE-2025-46153), Public domain, modified 2026-11-05
- PyPA Advisory Database: [PYSEC-2025-202](https://osv.dev/vulnerability/PYSEC-2025-202), CC-BY-4.0, modified 2026-05-20
- Bitnami Vulnerability Database: [BIT-PYTORCH-2025-46153](https://osv.dev/vulnerability/BIT-PYTORCH-2025-46153), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-46153 · Whole record: https://cve.day/CVE-2025-46153.json · Rebuilt by cve.day 2026-11-25T22:59:05.165Z
