GLSA 202511-07: librnp: Weak random number generation
| Severity: | high |
| Title: | librnp: Weak random number generation |
| Date: | 11/26/2025 |
| Bugs: | |
| ID: | 202511-07 |
Synopsis
librnp uses weak random number generation such that generated keys can be easily cracked.Background
librnp is a high performance C++ OpenPGP library.
Affected packages
| Package | Vulnerable | Unaffected | Architecture(s) |
|---|---|---|---|
| dev-util/librnp | == 0.18.0 | >= 0.18.1 | All supported architectures |
Description
The affected librnp version generated weak session keys for its public key encryption (PKESK) mode.
Impact
Messages encrypted using the affected librnp version might be readable by an attacker with just the public key.
Workaround
There is no known workaround at this time.
Resolution
All librnp users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-util/librnp-0.18.1"
If sensitive information was sent using e.g. Thunderbird (with USE=system-librnp, the default), it should be considered potentially viewable by an attacker.
References
Availability
This GLSA and any updates to it are available for viewing at the Gentoo Security Website:
Concerns?
Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.
License
Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.