# CVE-2020-11958: re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.70%, higher than 77% of CVEs (2026-12-01)
- Published: 2020-04-21T00:37:45.000Z
- Modified: 2026-06-17T02:51:08.167Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

re2c 1.3 has a heap-based buffer overflow in Scanner::fill in parse/scanner.cc via a long lexeme.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- re2c re2c: 1.3
- canonical ubuntu_linux: 19.10; 20.04

## Every score

- NVD: 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`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://blogs.gentoo.org/ago/2020/04/19/re2c-heap-overflow-in-scannerfill-scanner-cc/> (third-party-advisory)
- <https://www.openwall.com/lists/oss-security/2020/04/19/1> (mailing-list, third-party-advisory)
- <https://github.com/skvadrik/re2c/commit/c4603ba5ce229db83a2a4fb93e6d4b4e3ec3776a> (patch, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2020/04/21/1> (mailing-list, third-party-advisory)
- <https://usn.ubuntu.com/4338-1/> (third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/4338-2/> (third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202007-28> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2020-11958](https://www.cve.org/CVERecord?id=CVE-2020-11958), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-11958](https://nvd.nist.gov/vuln/detail/CVE-2020-11958), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-11958 · Whole record: https://cve.day/CVE-2020-11958.json · Rebuilt by cve.day 2026-11-25T22:57:52.132Z
