cve.bz

CVE-2021-3580 Improper Input Validation

7.5 highEPSS 2.7%Fix available

High (7.5). EPSS 2.7% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in the way nettle's RSA decryption functions handled specially crafted ciphertext. An attacker could use this flaw to provide a manipulated ciphertext leading to application crash and denial of service.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.7% (unchanged from 2.7% a week ago; 2.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-11-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3580 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3580?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3580?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3580 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-3580

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-3580](https://cve.bz/cve/badge/CVE-2021-3580.svg)](https://cve.bz/cve/CVE-2021-3580)

HTML:

<a href="https://cve.bz/cve/CVE-2021-3580"><img src="https://cve.bz/cve/badge/CVE-2021-3580.svg" alt="CVE-2021-3580"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nettle_project:nettlebefore 3.7.3
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9nettle3.3-1+deb9u1DLA-2760-1
Debian10nettle3.4.1-1+deb10u1DSA-4933-1
Debian12, 13, 14nettle3.7.3-1DEBIAN-CVE-2021-3580
Ubuntu14.04:LTS, 16.04:LTSnettleno fix listedUBUNTU-CVE-2021-3580
Ubuntu18.04:LTSnettle3.4.1-0ubuntu0.18.04.1UBUNTU-CVE-2021-3580 USN-4990-1
Ubuntu20.04:LTSnettle3.5.1+really3.5.1-2ubuntu0.2UBUNTU-CVE-2021-3580 USN-4990-1
Red Hatenterprise_linux:8::appstreamgnutls-c++, gnutls-dane, gnutls-devel and 6 more0:3.6.16-4.el8RHSA-2021:4451
Red Hatenterprise_linux:8::appstreamnettle-devel, nettle-debuginfo, nettle-debugsource0:3.4.1-7.el8RHSA-2021:4451
Red Hatenterprise_linux:8::baseosgnutls, gnutls-debuginfo, gnutls-debugsource and 3 more0:3.6.16-4.el8RHSA-2021:4451
Red Hatenterprise_linux:8::baseosnettle, nettle-debuginfo, nettle-debugsource0:3.4.1-7.el8RHSA-2021:4451
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 morelibnettle3.4.1-4.18.1SUSE-SU-2021:2143-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 morelibnettle2.7.1-13.6.1SUSE-SU-2021:2135-1
openSUSELeap 15.2libnettle3.4.1-lp152.4.6.1openSUSE-SU-2021:0906-1
openSUSELeap 15.3libnettle3.4.1-4.18.1openSUSE-SU-2021:2143-1
AlmaLinux8gnutls, gnutls-c++, gnutls-dane and 2 more3.6.16-4.el8ALSA-2021:4451
AlmaLinux8nettle, nettle-devel3.4.1-7.el8ALSA-2021:4451
Rocky Linux8gnutls0:3.6.16-4.el8RLSA-2021:4451
Rocky Linux8nettle0:3.4.1-7.el8RLSA-2021:4451
Alpinev3.12nettle3.5.1-r2ALPINE-CVE-2021-3580
Alpinev3.13, v3.14, v3.15 and 9 morenettle3.7.3-r0ALPINE-CVE-2021-3580
Azure Linux2nettle3.7.3-1AZL-6741

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

As per upstream: For applications that want to support older versions of nettle, the bug can be worked around by adding a check that the RSA ciphertext is in the range 0 < ciphertext < n, before attempting to decrypt it.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8gnutls-0:3.6.16-4.el8Fixed 2021-11-09RHSA-2021:4451
Red Hat Enterprise Linux 8nettle-0:3.4.1-7.el8Fixed 2021-11-09RHSA-2021:4451
Red Hat Enterprise Linux 7nettleWill not fix
Red Hat Enterprise Linux 8mingw-nettleNot affected
Red Hat Enterprise Linux 9nettleNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3580.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON