# CVE-2021-33481: A stack-based buffer overflow vulnerability was discovered in gocr through 0.53-20200802 in trytodivideboxes() in pgm2asc.c.

- 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.22%, higher than 69% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-11-17T00:00:00.000Z
- Modified: 2026-06-17T03:54:39.103Z
- Weaknesses: CWE-119, CWE-787
- Assigned by: fedora

## Description

A stack-based buffer overflow vulnerability was discovered in gocr through 0.53-20200802 in try_to_divide_boxes() in pgm2asc.c.

(As written by CVE List.)

## Affected

- gocr: gocr 0.53-20200802
- optical_character_recognition_project optical_character_recognition: up to 0.53-20200802

## 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://bugzilla.redhat.com/show_bug.cgi?id=1962865> (exploit, issue-tracking, third-party-advisory)
- <https://sourceforge.net/p/jocr/bugs/42/> (exploit, third-party-advisory)
- <https://security.gentoo.org/glsa/202401-28> (vendor-advisory)

## Sources

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

---

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