Skip to main content

CVE-2021-4248 — Vulnerability in DNS — CVE Details

CRITICAL

DNS NuGet package uses insufficiently random values

Published December 18, 2022Updated November 8, 2023Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.83%). Schedule for your next planned update.

Does your project use an affected DNS version?

Paste your packages.lock.json to check it for CVE-2021-4248 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my packages.lock.json

Summary

A vulnerability was found in kapetan dns up to 6.1.0. It has been rated as problematic. Affected by this issue is some unknown functionality of the file DNS/Protocol/Request.cs. The manipulation leads to insufficient entropy in prng. The attack may be launched remotely. Upgrading to version 7.0.0 can address this issue. The name of the patch is cf7105aa2aae90d6656088fe5a8ee1d5730773b6. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216188.

Advisory Timeline

  • First published December 18, 2022 (1439 days ago).
  • Last revised November 8, 2023 — 325 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update DNS to 7.0.0 or later
dotnet add package DNS --version 7.0.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: NuGet (1).

PackageFixed In
DNS NuGet · Affected: 1.0.0, 1.0.1, 1.2.0, 1.2.1 (+12 more)7.0.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-330
    Use of Insufficiently Random ValuesMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2021-4248?
DNS NuGet package uses insufficiently random values. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2021-4248?
CVE-2021-4248 affects DNS. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-4248 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.83%
EPSS percentile: 54.7

This is an above-median EPSS score — 54.7% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-g3wc-xv93-445q

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my packages.lock.json