# CVE-2022-26477: Denial of service in readExternal method

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 2.29%, higher than 83% of CVEs (2026-12-01)
- Published: 2022-06-27T17:15:18.000Z
- Modified: 2026-06-17T04:35:16.220Z
- Also known as: GHSA-m43h-hfrq-x8wx, PYSEC-2022-222
- Weaknesses: CWE-400
- Assigned by: apache

## Description

The Security Team noticed that the termination condition of the for loop in the readExternal method is a controllable variable, which, if tampered with, may lead to CPU exhaustion. As a fix, we added an upper bound and termination condition in the read and write logic. We classify it as a "low-priority but useful improvement". SystemDS is a distributed system and needs to serialize/deserialize data but in many code paths (e.g., on Spark broadcast/shuffle or writing to sequence files) the byte stream is anyway protected by additional CRC fingerprints. In this particular case though, the number of decoders is upper-bounded by twice the number of columns, which means an attacker would need to modify two entries in the byte stream in a consistent manner. By adding these checks robustness was strictly improved with almost zero overhead. These code changes are available in versions higher than 2.2.1.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache SystemDS: from unspecified before 2.2.2
- org.apache.systemds:systemds (Maven): before 2.2.2
- systemds (PyPI): before 2.2.2
- apache systemds: up to 2.2.1

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://lists.apache.org/thread/r4x2d2r6d4zykdrrx6s2l4qbxgzws0z3> (mailing-list, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220812-0003/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-26477> (advisory)
- <https://github.com/advisories/GHSA-m43h-hfrq-x8wx> (advisory)
- <https://github.com/apache/systemds> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/systemds/PYSEC-2022-222.yaml> (web)
- <https://security.netapp.com/advisory/ntap-20220812-0003> (web)

## Sources

- CVE List: [CVE-2022-26477](https://www.cve.org/CVERecord?id=CVE-2022-26477), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-m43h-hfrq-x8wx](https://github.com/advisories/GHSA-m43h-hfrq-x8wx), CC-BY-4.0, modified 2024-10-28
- NVD: [CVE-2022-26477](https://nvd.nist.gov/vuln/detail/CVE-2022-26477), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-222](https://osv.dev/vulnerability/PYSEC-2022-222), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-26477 · Whole record: https://cve.day/CVE-2022-26477.json · Rebuilt by cve.day 2026-11-25T22:58:12.583Z
