{"id":"CVE-2020-11958","aliases":["ALPINE-CVE-2020-11958","BELL-CVE-2020-11958","DEBIAN-CVE-2020-11958","EUVD-2020-4295","GHSA-qvw2-729q-g92x","UBUNTU-CVE-2020-11958","USN-4338-2"],"status":"published","title":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","description":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","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-10","score":0.01698,"percentile":0.77376,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2020-04-21T00:37:45Z","modified":"2026-10-26T12:01:25Z","fixes":[{"ecosystem":"Alpine:v3.11","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"re2c","fixed_in":["1.3-r1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"re2c","fixed_in":["1.3-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"re2c","fixed_in":["1.3-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"re2c","fixed_in":["1.3-2"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"re2c","fixed_in":["1.3-1ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.11","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-r1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-2"}]}]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-1ubuntu0.1"}]}],"versions":["1.2.1-1","1.3-1","1.3-1build1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"re2c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-1ubuntu0.1"}]}],"versions":["1.2.1-1","1.3-1","1.3-1build1"]}],"products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"re2c","product":"re2c"}],"references":[{"url":"https://blogs.gentoo.org/ago/2020/04/19/re2c-heap-overflow-in-scannerfill-scanner-cc/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2020/04/19/1","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://github.com/skvadrik/re2c/commit/c4603ba5ce229db83a2a4fb93e6d4b4e3ec3776a","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2020/04/21/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://usn.ubuntu.com/4338-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"https://usn.ubuntu.com/4338-2/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"https://security.gentoo.org/glsa/202007-28","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11958"},{"url":"https://github.com/advisories/GHSA-qvw2-729q-g92x"},{"url":"https://security.alpinelinux.org/vuln/CVE-2020-11958","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2020-11958","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-11958","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-11958","tags":["report"]},{"url":"http://blogs.gentoo.org/ago/2020/04/19/re2c-heap-overflow-in-scannerfill-scanner-cc/","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4338-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4338-2","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-11958","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-11958","description":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","status":"published","published":"2020-04-21T00:37:45Z","modified":"2024-08-04T11:42:00.539Z","updated_at":"2026-11-02T14:35:57.352161Z"}],"euvd":[{"id":"EUVD-2020-4295","description":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","status":"published","published":"2020-04-21T00:37:45Z","modified":"2024-08-04T11:42:00Z","updated_at":"2026-11-03T03:07:41.956166Z"}],"ghsa":[{"id":"GHSA-qvw2-729q-g92x","title":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","description":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","status":"published","published":"2022-05-24T17:15:55Z","modified":"2023-02-04T05:06:28Z","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-787"],"updated_at":"2026-11-02T14:53:58.500745Z"}],"nvd":[{"id":"CVE-2020-11958","description":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","status":"published","published":"2020-04-21T01:15:11.57Z","modified":"2026-06-17T02:51:08.167Z","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-787"],"updated_at":"2026-11-02T14:05:59.718774Z"}],"osv":[{"id":"ALPINE-CVE-2020-11958","description":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","status":"published","published":"2020-04-21T01:15:11.57Z","modified":"2026-10-26T11:17:55.10190651Z","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:27:48.11886Z"},{"id":"BELL-CVE-2020-11958","title":"CVE-2020-11958 does not affect BellSoft software","status":"withdrawn","published":"2023-08-31T12:15:23.865277Z","modified":"2026-01-26T09:48:04.778276Z","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:28:15.340685Z"},{"id":"CVE-2020-11958","description":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","status":"published","published":"2020-04-21T01:15:11.57Z","modified":"2026-10-20T13:43:59.219474134Z","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:14.034736Z"},{"id":"DEBIAN-CVE-2020-11958","description":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","status":"published","published":"2020-04-21T01:15:11.57Z","modified":"2026-10-26T12:01:25.388725308Z","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:45:32.862554Z"},{"id":"UBUNTU-CVE-2020-11958","description":"re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.","status":"published","published":"2020-04-21T01:15:00Z","modified":"2026-02-04T03:48:54.505114Z","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:22.804634Z"},{"id":"USN-4338-2","title":"re2c vulnerability","description":"USN-4338-1 fixed vulnerabilities in re2c. This update provides\nthe corresponding update for Ubuntu 20.04 LTS.\n\nOriginal advisory details:\n\n Agostino Sarubbo discovered that re2c incorrectly handled certain files.\n An attacker could possibly use this issue to execute arbitrary code.\n","status":"published","published":"2020-04-28T12:18:14Z","modified":"2026-02-10T04:41:48Z","updated_at":"2026-11-02T16:58:14.547547Z"}]}}
