{"id":"CVE-2023-27590","state":"PUBLISHED","title":"Rizin has stack-based buffer overflow when parsing GDB registers profile files","description":"Rizin is a UNIX-like reverse engineering framework and command-line toolset. In version 0.5.1 and prior, converting a GDB registers profile file into a Rizin register profile can result in a stack-based buffer overflow when the `name`, `type`, or `groups` fields have longer values than expected. Users opening untrusted GDB registers files (e.g. with the `drpg` or `arpg` commands) are affected by this flaw. Commit d6196703d89c84467b600ba2692534579dc25ed4 contains a patch for this issue. As a workaround, review the GDB register profiles before loading them with `drpg`/`arpg` commands.","publishedAt":"2023-03-14T20:37:59.269Z","updatedAt":"2025-02-25T14:57:31.008Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["rizinorg rizin"],"affected":[{"vendor":"rizinorg","product":"rizin","versions":[{"version":"<= 0.5.1","status":"affected"}]}],"references":["https://github.com/rizinorg/rizin/security/advisories/GHSA-rqcp-m8m2-jcqf","https://github.com/rizinorg/rizin/pull/3422","https://github.com/rizinorg/rizin/commit/d6196703d89c84467b600ba2692534579dc25ed4","https://github.com/rizinorg/rizin/blob/3a7d5116244beb678ad9950bb9dd27d28ed2691f/librz/reg/profile.c#L514","https://github.com/rizinorg/rizin/blob/3a7d5116244beb678ad9950bb9dd27d28ed2691f/librz/reg/profile.c#L545","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WW3JXI4TIJIR7PGFP74SN7GQYHW2F46Y/"],"weaknesses":["CWE-121","CWE-120"],"ingestedAt":"2026-10-29T20:05:52.290Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/27xxx/CVE-2023-27590.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-27590","state":"PUBLISHED","datePublished":"2023-03-14T20:37:59.269Z","dateUpdated":"2025-02-25T14:57:31.008Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-03-04T01:03:53.635Z"},"containers":{"cna":{"title":"Rizin has stack-based buffer overflow when parsing GDB registers profile files","descriptions":[{"lang":"en","value":"Rizin is a UNIX-like reverse engineering framework and command-line toolset. In version 0.5.1 and prior, converting a GDB registers profile file into a Rizin register profile can result in a stack-based buffer overflow when the `name`, `type`, or `groups` fields have longer values than expected. Users opening untrusted GDB registers files (e.g. with the `drpg` or `arpg` commands) are affected by this flaw. Commit d6196703d89c84467b600ba2692534579dc25ed4 contains a patch for this issue. As a workaround, review the GDB register profiles before loading them with `drpg`/`arpg` commands."}],"affected":[{"vendor":"rizinorg","product":"rizin","versions":[{"version":"<= 0.5.1","status":"affected"}]}],"references":[{"url":"https://github.com/rizinorg/rizin/security/advisories/GHSA-rqcp-m8m2-jcqf","name":"https://github.com/rizinorg/rizin/security/advisories/GHSA-rqcp-m8m2-jcqf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rizinorg/rizin/pull/3422","name":"https://github.com/rizinorg/rizin/pull/3422","tags":["x_refsource_MISC"]},{"url":"https://github.com/rizinorg/rizin/commit/d6196703d89c84467b600ba2692534579dc25ed4","name":"https://github.com/rizinorg/rizin/commit/d6196703d89c84467b600ba2692534579dc25ed4","tags":["x_refsource_MISC"]},{"url":"https://github.com/rizinorg/rizin/blob/3a7d5116244beb678ad9950bb9dd27d28ed2691f/librz/reg/profile.c#L514","name":"https://github.com/rizinorg/rizin/blob/3a7d5116244beb678ad9950bb9dd27d28ed2691f/librz/reg/profile.c#L514","tags":["x_refsource_MISC"]},{"url":"https://github.com/rizinorg/rizin/blob/3a7d5116244beb678ad9950bb9dd27d28ed2691f/librz/reg/profile.c#L545","name":"https://github.com/rizinorg/rizin/blob/3a7d5116244beb678ad9950bb9dd27d28ed2691f/librz/reg/profile.c#L545","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WW3JXI4TIJIR7PGFP74SN7GQYHW2F46Y/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-121","lang":"en","description":"CWE-121: Stack-based Buffer Overflow","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-120","lang":"en","description":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-07-12T02:06:16.810Z"},"source":{"advisory":"GHSA-rqcp-m8m2-jcqf","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/rizinorg/rizin/security/advisories/GHSA-rqcp-m8m2-jcqf","name":"https://github.com/rizinorg/rizin/security/advisories/GHSA-rqcp-m8m2-jcqf","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/rizinorg/rizin/pull/3422","name":"https://github.com/rizinorg/rizin/pull/3422","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/rizinorg/rizin/commit/d6196703d89c84467b600ba2692534579dc25ed4","name":"https://github.com/rizinorg/rizin/commit/d6196703d89c84467b600ba2692534579dc25ed4","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/rizinorg/rizin/blob/3a7d5116244beb678ad9950bb9dd27d28ed2691f/librz/reg/profile.c#L514","name":"https://github.com/rizinorg/rizin/blob/3a7d5116244beb678ad9950bb9dd27d28ed2691f/librz/reg/profile.c#L514","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/rizinorg/rizin/blob/3a7d5116244beb678ad9950bb9dd27d28ed2691f/librz/reg/profile.c#L545","name":"https://github.com/rizinorg/rizin/blob/3a7d5116244beb678ad9950bb9dd27d28ed2691f/librz/reg/profile.c#L545","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WW3JXI4TIJIR7PGFP74SN7GQYHW2F46Y/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T12:16:35.898Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-25T14:29:22.987138Z","id":"CVE-2023-27590","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-25T14:57:31.008Z"}}]}}}