# CVE-2021-41581: x509constraintsparsemailbox in lib/libcrypto/x509/x509constraints.c in LibreSSL through 3.4.0 has a stack-based buffer over-read.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/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): 0.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-24T02:12:33.000Z
- Modified: 2026-06-17T04:08:40.973Z
- Weaknesses: CWE-125
- Assigned by: mitre

## Description

x509_constraints_parse_mailbox in lib/libcrypto/x509/x509_constraints.c in LibreSSL through 3.4.0 has a stack-based buffer over-read. When the input exceeds DOMAIN_PART_MAX_LEN, the buffer lacks '\0' termination.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- openbsd libressl: up to 3.4.0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/libressl-portable/openbsd/issues/126> (exploit, issue-tracking, patch, third-party-advisory)

## Sources

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

---

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