CVE-2022-26477 Denial of service in readExternal method
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
4 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Apache SystemDS | < 2.2.2 | 2.2.2 | Fixed |
| apache systemds | <= 2.2.1 | after 2.2.1 | Fixed |
| org.apache.systemds/systemds(Maven) | < 2.2.2; = 2.0.0; = 2.1.0; = 2.2.0 +1 more | 2.2.2 | Fixed |
| pypi systemds(PyPI) | < 2.2.2; = 0.2.0; = 2.0.0; = 2.0.1 +3 more | 2.2.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.systemds/systemds(Maven) | < 2.2.2 | 2.2.2 |
| org.apache.systemds/systemds(Maven) | = 2.0.0 | No fix listed |
| org.apache.systemds/systemds(Maven) | = 2.1.0 | No fix listed |
| org.apache.systemds/systemds(Maven) | = 2.2.0 | No fix listed |
| org.apache.systemds/systemds(Maven) | = 2.2.1 | No fix listed |
| pypi systemds(PyPI) | < 2.2.2 | 2.2.2 |
| pypi systemds(PyPI) | = 0.2.0 | No fix listed |
| pypi systemds(PyPI) | = 2.0.0 | No fix listed |
| pypi systemds(PyPI) | = 2.0.1 | No fix listed |
| pypi systemds(PyPI) | = 2.1.0 | No fix listed |
| pypi systemds(PyPI) | = 2.2.0 | No fix listed |
| pypi systemds(PyPI) | = 2.2.1 | No fix listed |
| Apache SystemDS | < 2.2.2 | 2.2.2 |
| apache systemds | <= 2.2.1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com vendor-advisory
- github.com product
- github.com
- lists.apache.org mailing-list vendor-advisory
- security.netapp.com third-party-advisory