{"schemaVersion":3,"id":"CVE-2026-48512","aliases":["GHSA-cj9g-3mj2-g8vv"],"status":"published","duplicateOf":null,"title":null,"description":"MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, MessagePack-CSharp's JSON conversion helpers contain multiple recursion paths that do not consistently enforce a depth limit. These paths are in the JSON conversion component rather than normal typed MessagePack deserialization. MessagePackSerializer.ConvertFromJson recursively processes nested JSON arrays and objects in FromJsonCore() without consulting MessagePackSecurity.MaximumObjectGraphDepth. TinyJsonReader.ReadNextToken() recursively consumes comma and colon separator characters, allowing even malformed JSON with long separator runs to consume one stack frame per character. MessagePackSerializer.ConvertToJson applies depth checks to arrays and maps, but the typeless extension branch for ext-100 recursively calls ToJsonCore() without applying MessagePackSecurity.DepthStep(ref reader). Each path can allow attacker-controlled input to exhaust the process stack and trigger an uncatchable StackOverflowException instead of failing with a catchable parse or serialization exception.  This vulnerability is fixed in 2.5.301 and 3.1.7.","dates":{"published":"2026-06-22T21:14:20.241Z","modified":"2026-06-25T15:16:38.766Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Nuget","score":6.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.3,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00405,"percentile":0.33352,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00405},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00405,"percentile":0.33352}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00405,"percentile":0.33352}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-674","name":"Uncontrolled Recursion","description":"The product does not properly control the amount of recursion that takes place,  consuming excessive resources, such as allocated memory or the program stack.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/674.html"}],"affected":[{"vendor":"messagepack-csharp","product":"messagepack-csharp","name":"MessagePack-CSharp","label":"messagepack-csharp","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0, < 3.1.7","noFixRecorded":false,"fixedIn":null},{"text":"< 2.5.301","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0, < 3.1.7 | < 2.5.301","eol":null,"hubHref":"/vendor/messagepack-csharp/messagepack-csharp"},{"vendor":"messagepack","product":"messagepack","name":"messagepack","label":"messagepack","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.5.301","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.3, < 3.1.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.301 | ≥ 3.0.3, < 3.1.7","eol":null,"hubHref":"/vendor/messagepack/messagepack"},{"vendor":"NuGet","product":"MessagePack","name":"MessagePack","label":"MessagePack","ecosystem":"NuGet","cpePart":null,"purl":"pkg:nuget/MessagePack","purlType":"nuget","versions":[{"text":"< 2.5.301","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0, < 3.1.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.301 | ≥ 3.0, < 3.1.7","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-cj9g-3mj2-g8vv","label":"github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-cj9g-3mj2-g8vv","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Mitigation","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48512","label":"nvd.nist.gov/vuln/detail/CVE-2026-48512","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/MessagePack-CSharp/MessagePack-CSharp","label":"github.com/MessagePack-CSharp/MessagePack-CSharp","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-06-22T21:14:20.241Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-06-25T15:16:38.766Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T12:49:32.825Z","stale":false,"partial":false}}