# CVE-2023-34462: netty-handler SniHandler 16MB allocation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.84% (percentile 80, 2026-11-28)
- **CWE:** CWE-400
- **Aliases:** GHSA-6mjq-h674-j845
- **Published:** 2023-06-20T16:33:22.000Z
- **Modified:** 2026-09-10T03:50:02.086Z

## Who should check

- Projects that depend on Maven package io.netty:netty-handler (\< 4.1.94.Final)
- Anyone running netty \< 4.1.94.Final

## Description

Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. The \`SniHandler\` can allocate up to 16MB of heap for each channel during the TLS handshake. When the handler or the channel does not have an idle timeout, it can be used to make a TCP server using the \`SniHandler\` to allocate 16MB of heap. The \`SniHandler\` class is a handler that waits for the TLS handshake to configure a \`SslHandler\` according to the indicated server name by the \`ClientHello\` record. For this matter it allocates a \`ByteBuf\` using the value defined in the \`ClientHello\` record. Normally the value of the packet should be smaller than the handshake packet but there are not checks done here and the way the code is written, it is possible to craft a packet that makes the \`SslClientHelloHandler\`. This vulnerability has been fixed in version 4.1.94.Final.

## Affected and fixed versions

- Maven `io.netty:netty-handler`: affected \< 4.1.94.Final; fixed 4.1.94.Final (osv)
- netty: \< 4.1.94.Final (cvelist)

## Mitigation

- Upgrade io.netty:netty-handler to 4.1.94.Final or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-34462. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-34462.md
Affected: io.netty:netty-handler < 4.1.94.Final
Fixed in: 4.1.94.Final

Steps:
1. Search this machine and project for io.netty:netty-handler (Maven), netty: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-34462 being exploited?

There is no confirmed exploitation: CVE-2023-34462 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.84% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-34462?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2023-34462?

io.netty:netty-handler \< 4.1.94.Final.

### Is there a fix for CVE-2023-34462?

Yes. Fixed in 4.1.94.Final. Upgrade io.netty:netty-handler to 4.1.94.Final or later.

### How do I check if I'm affected by CVE-2023-34462?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/netty/netty/security/advisories/GHSA-6mjq-h674-j845>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-34462>
- patch: <https://github.com/netty/netty/commit/535da17e45201ae4278c0479e6162bb4127d4c32>
- other: <https://security.netapp.com/advisory/ntap-20230803-0001/>
- other: <https://www.debian.org/security/2023/dsa-5558>
- other: <https://security.netapp.com/advisory/ntap-20240621-0007/>
- other: <https://github.com/netty/netty>
- other: <https://security.netapp.com/advisory/ntap-20230803-0001>
- other: <https://security.netapp.com/advisory/ntap-20240621-0007>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-34462>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6mjq-h674-j845> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-34462> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-34462>
