# CVE-2021-33641: When processing files, malloc stores the data of the current line.

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `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): 0.28%, higher than 21% of CVEs (2026-12-02)
- Published: 2023-01-20T00:00:00.000Z
- Modified: 2026-06-17T03:54:55.340Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: openEuler

## Description

When processing files, malloc stores the data of the current line. When processing comments, malloc incorrectly accesses the released memory (use after free).

(As written by CVE List.)

## Affected

- byacc: <1.9.20200330 and <2.0.20210808
- openeuler byacc: before 1.9.20200330; from 2.0 before 2.0.20210808

## Every score

- CISA-ADP: 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:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://gitee.com/src-openeuler/byacc/commit/50225f48c6b53e9d7c936681a06682404cb8ec4d> (permissions-required, third-party-advisory)

## Sources

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

---

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