CVE-2020-11958
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
- Record
CVE-2020-11958- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
- Record
CVE-2020-11958- Updated
- 2026-11-02
EUVDEUVD-2020-4295 No score
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
- Record
EUVD-2020-4295- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-qvw2-729q-g92x
7.8
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
- Record
GHSA-qvw2-729q-g92x- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2020-11958
7.8
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
- Record
ALPINE-CVE-2020-11958- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2020-11958
7.8
CVE-2020-11958 does not affect BellSoft software
- Record
BELL-CVE-2020-11958- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSV
7.8
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
- Record
CVE-2020-11958- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2020-11958
7.8
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
- Record
DEBIAN-CVE-2020-11958- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-11958
7.8
re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.
- Record
UBUNTU-CVE-2020-11958- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUSN-4338-2 No score
re2c vulnerability
USN-4338-1 fixed vulnerabilities in re2c. This update provides the corresponding update for Ubuntu 20.04 LTS.
Original advisory details:
Agostino Sarubbo discovered that re2c incorrectly handled certain files. An attacker could possibly use this issue to execute arbitrary code.
- Record
USN-4338-2- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
re2cAlpine:v3.11 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.12 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.13 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.14 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.15 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.16 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.17 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.18 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.19 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.20 |
before 1.3-r1 | 1.3-r1 |
Show 8 moreShow less
| Package | Affected | Fixed |
|---|---|---|
re2cAlpine:v3.21 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.22 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.23 |
before 1.3-r1 | 1.3-r1 |
re2cAlpine:v3.24 |
before 1.3-r1 | 1.3-r1 |
re2cDebian:12 |
before 1.3-2 | 1.3-2 |
re2cDebian:13 |
before 1.3-2 | 1.3-2 |
re2cDebian:14 |
before 1.3-2 | 1.3-2 |
re2cUbuntu:20.04:LTS |
before 1.3-1ubuntu0.1, plus listed versions 1.2.1-11.3-11.3-1build1 |
1.3-1ubuntu0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-11958 is a high vulnerability (CVSS 7.8) in Re2c, published April 21, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.70%, the 77th percentile. Fixed in re2c 1.3-r1.
References
blogs.gentoo.org/ago/2020/04/19/re2c-heap-overflow-in-scannerfill-scanner-cc
openwall.com/lists/oss-security/2020/04/19/1
github.com/skvadrik/re2c/commit/c4603ba5ce229db83a2a4fb93e6d4b4e3ec3776a
openwall.com/lists/oss-security/2020/04/21/1
usn.ubuntu.com/4338-1
usn.ubuntu.com/4338-2
Show 10 moreShow less
security.gentoo.org/glsa/202007-28
nvd.nist.gov/vuln/detail/CVE-2020-11958
github.com/advisories/GHSA-qvw2-729q-g92x
security.alpinelinux.org/vuln/CVE-2020-11958
docs.bell-sw.com/security/cves/CVE-2020-11958
security-tracker.debian.org/tracker/CVE-2020-11958
ubuntu.com/security/CVE-2020-11958
ubuntu.com/security/notices/USN-4338-1
ubuntu.com/security/notices/USN-4338-2
cve.org/CVERecord?id=CVE-2020-11958