{"id":"CVE-2018-21232","aliases":["AZL-7337","DEBIAN-CVE-2018-21232","EUVD-2018-13750","GHSA-pgr8-gpgg-9j5m","MGASA-2021-0299","SUSE-SU-2023:3353-1","UBUNTU-CVE-2018-21232"],"status":"published","title":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","description":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01468,"percentile":0.73891,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-674"],"published":"2020-04-29T13:36:31Z","modified":"2026-11-03T21:00:04Z","fixes":[{"ecosystem":"Azure Linux:2","package":"re2c","fixed_in":["2.0-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"re2c","fixed_in":["3.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"re2c","fixed_in":["3.1-1"],"sources":["osv"]},{"ecosystem":"Mageia:7","package":"re2c","fixed_in":["2.0.3-1.mga7"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","package":"re2c","fixed_in":["1.0.3-150000.3.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","package":"re2c","fixed_in":["1.0.3-150000.3.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Manager Proxy 4.2","package":"re2c","fixed_in":["1.0.3-150000.3.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Manager Server 4.2","package":"re2c","fixed_in":["1.0.3-150000.3.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.4","package":"re2c","fixed_in":["1.0.3-150000.3.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.5","package":"re2c","fixed_in":["1.0.3-150000.3.3.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Azure Linux:2","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0-1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0-2","3.1-1","4.0.1-1","4.0.2-1","4.1-1","4.2-1","4.3-1","4.3-2","4.3.1-1","4.4-1","4.5.1-1","4.6-1"]},{"source":"osv","ecosystem":"Debian:13","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1-1"}]}]},{"source":"osv","ecosystem":"Mageia:7","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.3-1.mga7"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.3-150000.3.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.3-150000.3.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Manager Proxy 4.2","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.3-150000.3.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Manager Server 4.2","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.3-150000.3.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.4","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.3-150000.3.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.5","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.3-150000.3.3.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.1-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.1-1","1.3-1","1.3-1build1","1.3-1ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.3-1build1","2.2-1","3.0-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1-1","3.1-1build1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.1-1","4.3-2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3-2","4.3.1-1","4.4-1"]}],"products":[{"vendor":"re2c","product":"re2c"}],"references":[{"url":"https://github.com/skvadrik/re2c/issues/219","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","report"]},{"url":"https://www.openwall.com/lists/oss-security/2020/04/27/2","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"http://www.openwall.com/lists/oss-security/2020/05/14/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-21232","tags":["web"]},{"url":"https://github.com/advisories/GHSA-pgr8-gpgg-9j5m"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-21232","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0299.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=26549","tags":["report"]},{"url":"https://www.suse.com/support/update/announcement/2023/suse-su-20233353-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1170890","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2018-21232","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-21232","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-21232","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-21232","description":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","status":"published","published":"2020-04-29T13:36:31Z","modified":"2024-08-05T12:26:39.556Z","updated_at":"2026-11-02T14:35:02.289647Z"}],"euvd":[{"id":"EUVD-2018-13750","description":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","status":"published","published":"2020-04-29T13:36:31Z","modified":"2024-08-05T12:26:39Z","updated_at":"2026-11-03T02:39:27.875919Z"}],"ghsa":[{"id":"GHSA-pgr8-gpgg-9j5m","title":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","description":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","status":"published","published":"2022-05-24T17:16:48Z","modified":"2023-01-29T05:02:45Z","updated_at":"2026-11-02T14:45:09.48744Z"}],"nvd":[{"id":"CVE-2018-21232","description":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","status":"published","published":"2020-04-29T14:15:14.417Z","modified":"2026-06-17T01:54:26.017Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-674"],"updated_at":"2026-11-02T14:05:00.03074Z"}],"osv":[{"id":"AZL-7337","title":"CVE-2018-21232 affecting package re2c for versions less than 2.0-1","description":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","status":"published","published":"2020-04-29T14:15:14Z","modified":"2026-04-21T04:33:52.325764Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:28:09.201912Z"},{"id":"CVE-2018-21232","description":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","status":"published","published":"2020-04-29T14:15:14.417Z","modified":"2026-10-20T10:50:09.038677568Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:09.145458Z"},{"id":"DEBIAN-CVE-2018-21232","description":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","status":"published","published":"2020-04-29T14:15:14.417Z","modified":"2026-11-03T21:00:04.618685979Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-03T21:05:16.218603Z"},{"id":"UBUNTU-CVE-2018-21232","description":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.","status":"published","published":"2020-04-29T14:15:00Z","modified":"2026-05-20T16:03:38.520270569Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:17.91743Z"},{"id":"MGASA-2021-0299","title":"Updated re2c package fixes a security vulnerability","description":"re2c before 2.0 has uncontrolled recursion that causes stack consumption in\nfind_fixed_tags (CVE-2018-21232).\n","status":"published","published":"2021-06-29T17:31:40Z","modified":"2026-04-16T04:42:52.656804426Z","updated_at":"2026-11-02T15:49:41.509337Z"},{"id":"SUSE-SU-2023:3353-1","title":"Security update for re2c","description":"This update for re2c fixes the following issues:\n\n- CVE-2018-21232: Fixed excess stack consumption due to uncontrolled recursion in find_fixed_tags (bsc#1170890).\n","status":"published","published":"2023-08-18T07:54:30Z","modified":"2025-05-02T04:29:56.565416Z","updated_at":"2026-11-02T15:53:53.440387Z"}]}}
