{"id":"CVE-2022-26477","state":"PUBLISHED","title":"Denial of service in readExternal method","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.","publishedAt":"2022-06-27T17:15:18.000Z","updatedAt":"2024-08-03T05:03:32.880Z","severity":null,"assigner":"apache","products":["Apache Software Foundation Apache SystemDS"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache SystemDS","versions":[{"version":"unspecified","status":"affected","lessThan":"2.2.2","versionType":"custom"}]}],"references":["https://lists.apache.org/thread/r4x2d2r6d4zykdrrx6s2l4qbxgzws0z3","https://security.netapp.com/advisory/ntap-20220812-0003/"],"weaknesses":["CWE-400"],"ingestedAt":"2026-10-29T19:49:49.689Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/26xxx/CVE-2022-26477.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-26477","state":"PUBLISHED","datePublished":"2022-06-27T17:15:18.000Z","dateUpdated":"2024-08-03T05:03:32.880Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2022-03-04T00:00:00.000Z"},"containers":{"cna":{"title":"Denial of service in readExternal method","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache SystemDS","versions":[{"version":"unspecified","status":"affected","lessThan":"2.2.2","versionType":"custom"}]}],"references":[{"url":"https://lists.apache.org/thread/r4x2d2r6d4zykdrrx6s2l4qbxgzws0z3","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20220812-0003/","tags":["x_refsource_CONFIRM"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","description":"CWE-400 Uncontrolled Resource Consumption","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","dateUpdated":"2022-08-12T16:11:21.000Z","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09"},"credits":[{"lang":"en","value":"Apache SystemDS is like to thank Apache Security Team for reporting this issue."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@apache.org","ID":"CVE-2022-26477","STATE":"PUBLIC","TITLE":"Denial of service in readExternal method"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Apache SystemDS","version":{"version_data":[{"version_affected":"<","version_value":"2.2.2"}]}}]},"vendor_name":"Apache Software Foundation"}]}},"credit":[{"lang":"eng","value":"Apache SystemDS is like to thank Apache Security Team for reporting this issue."}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":[{}],"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-400 Uncontrolled Resource Consumption"}]}]},"references":{"reference_data":[{"name":"https://lists.apache.org/thread/r4x2d2r6d4zykdrrx6s2l4qbxgzws0z3","refsource":"MISC","url":"https://lists.apache.org/thread/r4x2d2r6d4zykdrrx6s2l4qbxgzws0z3"},{"name":"https://security.netapp.com/advisory/ntap-20220812-0003/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20220812-0003/"}]},"source":{"discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.apache.org/thread/r4x2d2r6d4zykdrrx6s2l4qbxgzws0z3","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20220812-0003/","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T05:03:32.880Z"}}]}}}