# GHSA-RVWG-W95P-XHWP: The buffer used in LDAPCodec had a limit on the maximum size of a BER element

- Database: GitHub
- Severity: CVSS 5.3 (Medium)
- Published: 2026-08-14
- Modified: 2026-08-14

## Affected versions

- ldap3\_proto (crates.io): through 0.8.0

## Description

The buffer used in LDAPCodec had a limit on the maximum size of a BER element. However this required the BER element to be processed *first* before the buffer size was checked. This allowed a large buffer to still be allocated which may lead to denial of service.

## References

- https://github.com/kanidm/ldap3/security/advisories/GHSA-rvwg-w95p-xhwp

Page: https://cve.now/GHSA-RVWG-W95P-XHWP

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
