netty-incubator-codec-ohttp's HPKEContext operations may produce empty byte[] on failures
Moderate severity
GitHub Reviewed
Published
May 20, 2026
in
netty/netty-incubator-codec-ohttp
•
Updated Jun 9, 2026
Package
Affected versions
< 0.0.21.Final
Patched versions
0.0.21.Final
Description
Published to the GitHub Advisory Database
May 26, 2026
Reviewed
May 26, 2026
Published by the National Vulnerability Database
Jun 4, 2026
Last updated
Jun 9, 2026
HKDF_expand: returns non-NULL on failure. The byte[] is filled with zeros and has no way to distinguish success from failure. Since this output is used as HKDF key material for the response AEAD, a failure silently produces an all-zero key.
When EVP_HPKE_CTX_export fails it also returns an empty byte[] array filled with zeros. This byte[] feeds directly into OHttpCrypto.createResponseAEAD(...). A silent all-zero export secret would produce a deterministic, attacker-predictable AEAD key.
References