# CVE-2021-27799: eanleadingzeroes in backend/upcean.c in Zint Barcode Generator 2.9.1 has a stack-based buffer overflow that is reachable from the C API thr…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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): 2.39%, higher than 84% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-26T21:31:44.000Z
- Modified: 2026-06-17T03:45:28.587Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

ean_leading_zeroes in backend/upcean.c in Zint Barcode Generator 2.9.1 has a stack-based buffer overflow that is reachable from the C API through an application that includes the Zint Barcode Generator library code.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- zint barcode_generator: 2.9.1

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://sourceforge.net/p/zint/tickets/218/> (exploit, third-party-advisory)
- <http://zint.org.uk/Manual.aspx?type=p&page=3> (vendor-advisory)
- <http://zint.org.uk/Manual.aspx?type=p&page=4> (vendor-advisory)
- <http://zint.org.uk/Manual.aspx?type=p&page=5> (vendor-advisory)
- <https://sourceforge.net/p/zint/code/ci/7f8c8114f31c09a986597e0ba63a49f96150368a/> (patch, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2021-27799 · Whole record: https://cve.day/CVE-2021-27799.json · Rebuilt by cve.day 2026-11-25T22:58:00.091Z
