{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-6245","id":"CVE-2023-6245","title":"Infinite decoding loop through specially crafted payload","description":"The Candid library causes a Denial of Service while \nparsing a specially crafted payload with 'empty' data type. For example,\n if the payload is `record { * ; empty }` and the canister interface expects `record { * }` then the Rust candid decoder treats empty as an extra field required by the type.  The problem with the type empty is that the candid Rust library wrongly categorizes empty as a reco","descriptionLong":"The Candid library causes a Denial of Service while \nparsing a specially crafted payload with 'empty' data type. For example,\n if the payload is `record { * ; empty }` and the canister interface expects `record { * }` then the Rust candid decoder treats empty as an extra field required by the type.  The problem with the type empty is that the candid Rust library wrongly categorizes empty as a recoverable error when skipping the field and thus causing an infinite decoding loop.\n\n\nCanisters using affected versions of candid\n are exposed to denial of service by causing the decoding to run \nindefinitely until the canister traps due to reaching maximum \ninstruction limit per execution round. Repeated exposure to the payload \nwill result in degraded performance of the canister. Note: Canisters written in Motoko are unaffected.\n\n\n\n","published":"2023-12-08T14:26:09.331Z","updated":"2026-06-17T06:50:23.063Z","reserved":"2023-11-21T16:28:51.715Z","status":"Modified","rejected":false,"assigner":"Dfinity","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"Dfinity"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"Dfinity"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"6b35d637-e00f-4228-858c-b20ad6e1d07b"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Internet Computer Candid"],"affectedProducts":[{"vendor":"Internet Computer","product":"Candid","defaultStatus":"unaffected","versions":[{"lessThan":"0.9.10","status":"affected","version":"0.9.0","versionType":"0.0.0"}],"platforms":[]}],"packages":[],"cwes":["CWE-835","CWE-1288","CWE-168","CWE-20"],"aliases":[],"references":[{"url":"https://github.com/dfinity/candid/pull/478","tags":["x_transferred","Patch"]},{"url":"https://internetcomputer.org/docs/current/references/candid-ref","tags":["x_transferred","Product"]},{"url":"https://github.com/dfinity/candid/blob/master/spec/Candid.md","tags":["x_transferred","Product"]},{"url":"https://github.com/dfinity/candid/security/advisories/GHSA-7787-p7x6-fq3j","tags":["x_transferred","Patch","Third Party Advisory"]},{"url":"https://internetcomputer.org/docs/current/references/ic-interface-spec","tags":["x_transferred","Product"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.01212,"epssPercentile":0.69143,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-6245","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6245","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-6245","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-6245","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}