The mixing functions in the random number generator in Libgcrypt before 1.5.6, 1.6.x before 1.6.6, and 1.7.x before 1.7.3 and GnuPG before 1
The mixing functions in the random number generator in Libgcrypt before 1.5.6, 1.6.x before 1.6.6, and 1.7.x before 1.7.3 and GnuPG before 1.4.21 make it easier for attackers to obtain the values of 160 bits by leveraging knowledge of the previous 4640 bits.
- Published
- Dec 13, 2016
- Updated
- Jun 16, 2026
- EPSS
- 3.6% · 89th percentile
- CWE
- CWE-200
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
22
Monitor
Low priority for now.
- CVSS
- 21 / 40 · 5.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.6%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| gnupg | libgcrypt | cpe:2.3:a:gnupg:libgcrypt |
| gnupg | gnupg | cpe:2.3:a:gnupg:gnupg |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux12.04
- canonical ubuntu linux14.04
- canonical ubuntu linux16.04
- debian debian linux8.0
- gnupg gnupgup to 1.4.14 inclusive
- gnupg libgcryptup to 1.5.3 inclusive
- gnupg libgcrypt1.6.0
- gnupg libgcrypt1.6.1
- gnupg libgcrypt1.6.2
- gnupg libgcrypt1.6.3
- gnupg libgcrypt1.6.4
- gnupg libgcrypt1.6.5
- gnupg libgcrypt1.7.0
- gnupg libgcrypt1.7.1
- gnupg libgcrypt1.7.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.4 | libgcrypt | before 1.7.0-r1 | 1.7.0-r1 |
| Debian:12 | gnupg1 | before 1.4.21-1 | 1.4.21-1 |
| Debian:12 | libgcrypt20 | before 1.7.3-1 | 1.7.3-1 |
| Debian:7 | gnupg | before 1.4.12-7+deb7u8 | 1.4.12-7+deb7u8 |
| Debian:7 | libgcrypt11 | before 1.5.0-5+deb7u5 | 1.5.0-5+deb7u5 |
| Debian:8 | gnupg | before 1.4.18-7+deb8u2 | 1.4.18-7+deb8u2 |
| Debian:8 | libgcrypt20 | before 1.6.3-2+deb8u2 | 1.6.3-2+deb8u2 |
| openSUSE:Tumbleweed | libgcrypt | before 1.7.3-1.3 | 1.7.3-1.3 |
| Red Hat:enterprise_linux:6::client | libgcrypt | before 0:1.4.5-12.el6_8 | 0:1.4.5-12.el6_8 |
| Red Hat:enterprise_linux:6::client | libgcrypt-debuginfo | before 0:1.4.5-12.el6_8 | 0:1.4.5-12.el6_8 |
| Red Hat:enterprise_linux:6::client | libgcrypt-devel | before 0:1.4.5-12.el6_8 | 0:1.4.5-12.el6_8 |
| Red Hat:enterprise_linux:7::client | libgcrypt | before 0:1.5.3-13.el7_3.1 | 0:1.5.3-13.el7_3.1 |
| Red Hat:enterprise_linux:7::client | libgcrypt-debuginfo | before 0:1.5.3-13.el7_3.1 | 0:1.5.3-13.el7_3.1 |
| Red Hat:enterprise_linux:7::client | libgcrypt-devel | before 0:1.5.3-13.el7_3.1 | 0:1.5.3-13.el7_3.1 |
| SUSE:Linux Enterprise Desktop 12 SP1 | libgcrypt | before 1.6.1-16.33.1 | 1.6.1-16.33.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | libgcrypt | before 1.5.0-0.22.1 | 1.5.0-0.22.1 |
Same product
gnupg: all recordsOther highest-scoring records for the same primary product.
- CVE-2021-33560Libgcrypt before 1.8.8 and 1.9.x before 1.9.3 mishandles ElGamal encryption because it lacks exponent blinding to address a side-channel att31Monitor
- CVE-2021-3345_gcry_md_block_write in cipher/hash-common.c in Libgcrypt version 1.9.0 has a heap-based buffer overflow when the digest final function sets31Monitor
- CVE-2018-6829cipher/elgamal.c in Libgcrypt through 1.8.2, when used to encrypt messages directly, improperly encodes plaintexts, which allows attackers t31Monitor
- CVE-2017-0379Libgcrypt before 1.8.1 does not properly consider Curve25519 side-channel attacks, which makes it easier for attackers to discover a secret 31Monitor
- CVE-2017-7526libgcrypt before version 1.7.8 is vulnerable to a cache side-channel attack resulting into a complete break of RSA-1024 while using the left28Monitor
- CVE-2026-41989Libgcrypt before 1.12.2 sometimes allows a heap-based buffer overflow and denial of service via crafted ECDH ciphertext to gcry_pk_decrypt.26Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:libgcrypt | 1.7.0-r1 · Alpine:v3.4 | Package registry (OSV) |
| debian:gnupg | 1.4.12-7+deb7u8 · Debian:7 | Package registry (OSV) |
| debian:gnupg1 | 1.4.21-1 · Debian:12 | Package registry (OSV) |
| debian:libgcrypt11 | 1.5.0-5+deb7u5 · Debian:7 | Package registry (OSV) |
| debian:libgcrypt20 | 1.7.3-1 · Debian:12 | Package registry (OSV) |
| opensuse:libgcrypt | 1.7.3-1.3 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:libgcrypt | 0:1.4.5-12.el6_8 · Red Hat:enterprise_linux:6::client | Package registry (OSV) |
| red hat:libgcrypt-debuginfo | 0:1.4.5-12.el6_8 · Red Hat:enterprise_linux:6::client | Package registry (OSV) |
| red hat:libgcrypt-devel | 0:1.4.5-12.el6_8 · Red Hat:enterprise_linux:6::client | Package registry (OSV) |
| suse:libgcrypt | 1.6.1-16.33.1 · SUSE:Linux Enterprise Desktop 12 SP1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-200 · Exposure of Sensitive Information to an Unauthorized ActorCVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
nvd-primary
Root cause
The extension requests broader permissions than its function needs and sends the data it collects out for purposes beyond its stated function.
The bug in code
The whole CWE-200 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
{ "permissions": ["tabs", "<all_urls>"], "background": { "service_worker": "analytics.js" }}Fixed
{ "permissions": ["activeTab"], "host_permissions": ["https://yildiz.example/*"]}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- ExcavationCAPEC-116likelihood: High · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
- FootprintingCAPEC-169likelihood: High · Very Low
- Exploiting Trust in ClientCAPEC-22likelihood: High · High
- FingerprintingCAPEC-224likelihood: High · Very Low
- ICMP Echo Request PingCAPEC-285likelihood: Medium · Low
- TCP SYN ScanCAPEC-287Low
- Enumerate Mail Exchange (MX) RecordsCAPEC-290Low
ATT&CK techniques
- System Service DiscoveryT1007
- System Network Configuration DiscoveryT1016
- Remote System DiscoveryT1018
- System Owner/User DiscoveryT1033
- Masquerading: Match Legitimate Name or LocationT1036.005
- Network Service ScanningT1046
- System Network Connections DiscoveryT1049
- Process DiscoveryT1057
- Permission Groups DiscoveryT1069
- System Information DiscoveryT1082
- File and Directory DiscoveryT1083
- Account DiscoveryT1087
- Multi-Factor Authentication InterceptionT1111
- Peripheral Device DiscoveryT1120
- System Time DiscoveryT1124
- Access Token Manipulation:Token Impersonation/TheftT1134.001
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- rhn.redhat.com/errata/RHSA-2016-2674.html
- www.debian.org/security/2016/dsa-3649
- www.debian.org/security/2016/dsa-3650
- www.securityfocus.com/bid/92527
- www.securitytracker.com/id/1036635
- www.ubuntu.com/usn/USN-3064-1
- www.ubuntu.com/usn/USN-3065-1
- git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=blob_plain%3Bf=NEWS
- lists.gnupg.org/pipermail/gnupg-announce/2016q3/000395.html
- security.gentoo.org/glsa/201610-04
- security.gentoo.org/glsa/201612-01
Vendor advisories and official records. Exploit/PoC links are deliberately left out.