# CVE-2026-61798: netty-incubator-codec-ohttp: BoringSSL HPKE private key bytes exposed through toString() and exception messages

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- 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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-08-20T18:43:17.000Z
- Modified: 2026-11-20T14:17:53.310Z
- Also known as: GHSA-2mc4-j865-9q4r
- Weaknesses: CWE-200, CWE-312, CWE-532
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

netty-incubator-codec-ohttp implements Oblivious HTTP (OHTTP) gateway and client functionality using Netty. Prior to 0.0.23.Final, BoringSSLAsymmetricCipherKeyPair.toString in codec-ohttp-hpke-classes-boringssl/src/main/java/io/netty/incubator/codec/hpke/boringssl/BoringSSLAsymmetricCipherKeyPair.java includes its private parameter, BoringSSLAsymmetricKeyParameter.toString in codec-ohttp-hpke-classes-boringssl/src/main/java/io/netty/incubator/codec/hpke/boringssl/BoringSSLAsymmetricKeyParameter.java renders the complete private-key byte array when isPrivate is true, and BoringSSL.EVP_HPKE_KEY_init_or_throw in codec-ohttp-hpke-classes-boringssl/src/main/java/io/netty/incubator/codec/hpke/boringssl/BoringSSL.java includes rejected privateKeyBytes in an exception message. Applications that log affected key-pair objects or initialization exceptions can persist complete HPKE private key material in logs or telemetry. Anyone who can read those records can recover the key and may compromise OHTTP message confidentiality or authenticity expectations while the key remains usable. This issue is fixed in version 0.0.23.Final.

(As written by CVE List.)

## Affected

- netty netty-incubator-codec-ohttp: < 0.0.23.Final
- io.netty.incubator:netty-incubator-codec-ohttp-hpke-classes-boringssl (Maven): before 0.0.23.Final

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/netty/netty-incubator-codec-ohttp/security/advisories/GHSA-2mc4-j865-9q4r> (web)
- <https://github.com/netty/netty-incubator-codec-ohttp/commit/2ad8eed90e3e47a23e46589b5c68463b4741c04c>
- <https://github.com/netty/netty-incubator-codec-ohttp/releases/tag/netty-incubator-codec-parent-ohttp-0.0.23.Final> (web)
- <https://github.com/netty/netty-incubator-codec-ohttp> (package)

## Sources

- CVE List: [CVE-2026-61798](https://www.cve.org/CVERecord?id=CVE-2026-61798), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-2mc4-j865-9q4r](https://github.com/advisories/GHSA-2mc4-j865-9q4r), CC-BY-4.0, modified 2026-08-20
- NVD: [CVE-2026-61798](https://nvd.nist.gov/vuln/detail/CVE-2026-61798), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-61798 · Whole record: https://cve.day/CVE-2026-61798.json · Rebuilt by cve.day 2026-11-25T22:59:52.244Z
