{"id":"CVE-2019-12802","aliases":["ALPINE-CVE-2019-12802","EUVD-2019-4384","GHSA-hvf9-qhxq-6pcq","MGASA-2020-0024","UBUNTU-CVE-2019-12802"],"status":"published","title":"In radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c mishandles changing...","description":"In radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c mishandles changing context. This allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact (invalid memory access in r_egg_lang_parsechar; invalid free in rcc_pusharg).","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0161,"percentile":0.76101,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119","CWE-416"],"published":"2019-06-13T20:58:51Z","modified":"2026-11-03T06:32:34Z","fixes":[{"ecosystem":"Alpine:v3.11","package":"radare2","fixed_in":["3.9.0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"radare2","fixed_in":["3.9.0-r0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.11","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-r0"}]}]},{"source":"osv","ecosystem":"Mageia:7","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-1.mga7"}]}],"bundled":4},{"source":"osv","ecosystem":"Mageia:7","package":"radare2-cutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.0-1.1.mga7"}]}],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.6-3.1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.0+dfsg-1","2.0.0+dfsg-1","2.1.0+dfsg-1","2.3.0+dfsg-1","2.3.0+dfsg-2","2.3.0+dfsg-2ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.1+dfsg-5build1","4.0.0+dfsg-1","4.2.1+dfsg-1","4.2.1+dfsg-2","4.2.1+dfsg-2ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.5.0+dfsg-1ubuntu1","5.5.0+dfsg-1.1ubuntu2","5.5.0+dfsg-1.1ubuntu3","5.5.0+dfsg-1.1ubuntu3+esm1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.9.8+dfsg-2","5.9.8+dfsg-2ubuntu0.25.10.1","5.9.8+dfsg-2ubuntu0.25.10.2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.7+ds-1","6.1.6+ds-2","6.1.6+ds-3","6.1.8+ds-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.9.8+dfsg-2","6.0.4+dfsg-1","6.0.7+ds-1"]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"radare","product":"radare2"}],"references":[{"url":"https://github.com/radare/radare2/issues/14296","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SX4TLTE75VYUGSPYEKMYFPUZMRDIR7O2/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IEXZWAMVKGZKHALV4IVWQS2ORJKRH57U/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12802"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IEXZWAMVKGZKHALV4IVWQS2ORJKRH57U/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SX4TLTE75VYUGSPYEKMYFPUZMRDIR7O2/"},{"url":"https://github.com/advisories/GHSA-hvf9-qhxq-6pcq"},{"url":"https://security.alpinelinux.org/vuln/CVE-2019-12802","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2020-0024.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=25933","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/ED2UIZ5J7YYFFA2MPSMJ543U3DPEREVZ/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/IEXZWAMVKGZKHALV4IVWQS2ORJKRH57U/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/RQO7V37RGQEKZDLY2JYKDZTLNN2YUBC5/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/PXQ6KYP4UMNSCJYHFT4TBIXLR2325SNS/","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2019-12802","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-12802","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2019-12802","description":"In radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c mishandles changing context. This allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact (invalid memory access in r_egg_lang_parsechar; invalid free in rcc_pusharg).","status":"published","published":"2019-06-13T20:58:51Z","modified":"2024-08-04T23:32:55.48Z","updated_at":"2026-11-02T14:20:23.697579Z"}],"euvd":[{"id":"EUVD-2019-4384","description":"In radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c mishandles changing context. This allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact (invalid memory access in r_egg_lang_parsechar; invalid free in rcc_pusharg).","status":"published","published":"2019-06-13T20:58:51Z","modified":"2024-08-04T23:32:55Z","updated_at":"2026-11-03T02:40:44.884887Z"}],"ghsa":[{"id":"GHSA-hvf9-qhxq-6pcq","title":"In radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c mishandles changing...","description":"In radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c mishandles changing context. This allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact (invalid memory access in r_egg_lang_parsechar; invalid free in rcc_pusharg).","status":"published","published":"2022-05-24T16:48:00Z","modified":"2023-01-28T05:06:04Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-119","CWE-416"],"updated_at":"2026-11-02T14:44:23.854277Z"}],"nvd":[{"id":"CVE-2019-12802","description":"In radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c mishandles changing context. This allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact (invalid memory access in r_egg_lang_parsechar; invalid free in rcc_pusharg).","status":"published","published":"2019-06-13T21:29:16.27Z","modified":"2026-06-17T02:15:30.38Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:05:16.285679Z"}],"osv":[{"id":"ALPINE-CVE-2019-12802","description":"In radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c mishandles changing context. This allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact (invalid memory access in r_egg_lang_parsechar; invalid free in rcc_pusharg).","status":"published","published":"2019-06-13T21:29:16.27Z","modified":"2026-11-03T06:32:34.841994632Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T07:17:20.312441Z"},{"id":"CVE-2019-12802","description":"In radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c mishandles changing context. This allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact (invalid memory access in r_egg_lang_parsechar; invalid free in rcc_pusharg).","status":"published","published":"2019-06-13T21:29:16.27Z","modified":"2026-10-20T10:51:36.808277936Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:10.718934Z"},{"id":"UBUNTU-CVE-2019-12802","description":"In radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c mishandles changing context. This allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact (invalid memory access in r_egg_lang_parsechar; invalid free in rcc_pusharg).","status":"published","published":"2019-06-13T21:29:00Z","modified":"2026-10-17T12:52:38.832416962Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:19.202697Z"},{"id":"MGASA-2020-0024","title":"Updated radare2 packages fix security vulnerabilities","description":"Updated radare2 packages fix security vulnerabilities:\n\nIn radare2 through 3.5.1, there is a heap-based buffer over-read in the\nr_egg_lang_parsechar function of egg_lang.c. This allows remote attackers\nto cause a denial of service (application crash) or possibly have\nunspecified other impact because of missing length validation in\nlibr/egg/egg.c (CVE-2019-12790).\n\nIn radare2 through 3.5.1, the rcc_context function of libr/egg/egg_lang.c\nmishandles changing context. This allows remote attackers to cause a denial\nof service (application crash) or possibly have unspecified other impact\n(invalid memory access in r_egg_lang_parsechar; invalid free in rcc_pusharg)\n(CVE-2019-12802).\n\nIn radare2 through 3.5.1, cmd_mount in libr/core/cmd_mount.c has a double\nfree for the ms command (CVE-2019-12865).\n\nBy using a crafted executable file, it's possible to execute arbitrary\nshell commands with the permissions of the victim. This vulnerability is\ndue to improper handling of symbol names embedded in executables\n(CVE-2019-14745).\n\nThe radare2 package has been updated to version 3.9.0, fixing these issues\nand other bugs.\n\nAlso, the radare2-cutter package has been updated to version 1.9.0.\n","status":"published","published":"2020-01-07T21:19:56Z","modified":"2026-04-16T04:41:18.746002709Z","updated_at":"2026-11-02T15:49:41.151324Z"}]}}
