Vulnerability in nss package: CVE-2020-12402

nss Updated 02 Oct 2025

Summary

09/07/2020
N/A
Yes i
Medium
4.4

CVE-2020-12402: During RSA key generation, bignum implementations used a variation of the Binary Extended Euclidean Algorithm which entailed significantly input-dependent flow. Affects nss versions < 3.53.1-r0. Fixed in 3.53.1-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The nss package is a cryptographic library that provides support for SSL/TLS protocols, as well as certificate handling and cryptographic algorithms. It is commonly used in various applications and products built on top of it. However, a vulnerability has been discovered in versions prior to 3.53.1-r0, which could lead to the recovery of secret primes during RSA key generation. This vulnerability affects Firefox versions prior to 78, although an unmodified Firefox browser is not affected.

Vulnerability Detail

The vulnerability (CVE-2020-12402) arises from the use of a variation of the Binary Extended Euclidean Algorithm in the bignum implementations during RSA key generation. This algorithm introduces input-dependent flow, making it susceptible to electromagnetic-based side channel attacks. An attacker with the ability to perform such attacks can record traces that can be used to recover the secret primes. While an unmodified Firefox browser is not affected, products built on top of it may be vulnerable.

How To Fix

Minimum fixed version

3.53.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade nss

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, users are advised to ensure that they are using an unmodified version of the Firefox browser, as it is not affected by this vulnerability.

Conclusion

In conclusion, the nss package prior to version 3.53.1-r0 is vulnerable to CVE-2020-12402, which can lead to the recovery of secret primes during RSA key generation. While an unmodified Firefox browser is not affected, products built on top of it may be vulnerable. It is recommended to update the nss package to the fixed version and keep all software up to date to mitigate potential risks. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for nss →

Share this vulnerability

FAQ

Versions prior to 3.53.1-r0 of the nss package are affected.

No, an unmodified Firefox browser is not affected by this vulnerability.

There are no known exploits for this vulnerability at the moment.

Yes, this vulnerability can be exploited remotely by an attacker with the ability to perform electromagnetic-based side channel attacks.

There is no evidence of this vulnerability being actively exploited at the moment.

Related vulnerabilities

Recent vulnerabilities recorded for nss.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.53.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade nss

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback