{"id":"CVE-2026-48513","published":"2026-06-22T21:12:43Z","modified":"2026-06-25T15:17:24Z","title":"MessagePack-CSharp: DynamicUnionResolver generated deserializers miss depth enforcement","vendor":"MessagePack-CSharp","product":"MessagePack-CSharp","tier":"tail","description":{"text":"MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, runtime-generated union deserializers emitted by DynamicUnionResolver do not call MessagePackSecurity.DepthStep(ref reader) and do not decrement reader.Depth around recursive deserialization and skip paths. This means union deserialization does not consistently participate in the maximum object graph depth enforcement that protects other recursive formatter paths. For unknown union keys, the emitted deserializer calls reader.Skip() on attacker-controlled data without an enclosing depth step. This vulnerability is fixed in 2.5.301 and 3.1.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00405,"percentile":0.35636,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-wfr3-xj75-pfwh","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":7.13},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"messagepack-csharp","affectedVersions":[{"vendor":"MessagePack-CSharp","product":"MessagePack-CSharp","versions":[">= 3.0, < 3.1.7","< 2.5.301"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-06-23T14:25:43.764541Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"MessagePack","vulnerableRanges":["<2.5.301",">=3.0, <3.1.7"],"patched":["2.5.301","3.1.7"],"from":["GHSA-wfr3-xj75-pfwh"],"provenance":"source"}],"summary":{"text":"MessagePack-CSharp's DynamicUnionResolver generates union deserializers that do not enforce the maximum object graph depth limit during recursive deserialization and skip paths, which leaves that protection inconsistently applied to union types. An attacker able to supply serialized data to a service that deserializes union types, with no authentication or user interaction required and a non-default-hardened configuration assumed, can send deeply nested input that triggers uncontrolled recursion and may cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:03Z"},"euvd":{"id":"EUVD-2026-38383","exploited":false,"provenance":"source"}}