CVE-2023-28452: Github.com/coredns/coredns CoreDNS Vulnerable To TuDoor Attacks Vulnerability

HIGH
Advisory Identifier: GHSA-hfmw-7g3m-gj6q
CVSS 5.9
CWE-290
Published
Advisory Summary

CVE-2023-28452 is a HIGH (CVSS 5.9) coredns vulnerable to tudoor attacks vulnerability (CWE-290: Authentication Bypass by Spoofing) affecting Github.com/coredns/coredns libraries in the Go ecosystem. The issue involves coredns vulnerable to tudoor attacks. Remediation is available by upgrading affected packages to version 1.11.0.

CVE-2023-28452 at a Glance

CVE Identifier CVE-2023-28452
GHSA Identifier GHSA-hfmw-7g3m-gj6q
Severity HIGH
CVSS v3.1 Base Score 5.9
CWE Classification CWE-290: Authentication Bypass by Spoofing
Affected Product Github.com/coredns/coredns
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-28452

To remediate this vulnerability, upgrade all affected Github.com/coredns/coredns dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/coredns/coredns fixed: 1.11.0
Upgrade github.com/coredns/coredns to 1.11.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/coredns/coredns

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-28452, inspect your project dependencies for Github.com/coredns/coredns:

inspect dependencies for github.com/coredns/coredns

Analyze the terminal output to locate any version of Github.com/coredns/coredns in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.11.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-290: Authentication Bypass by Spoofing, where this attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks. In Github.com/coredns/coredns, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue was discovered in CoreDNS through 1.10.1. There is a vulnerability in DNS resolving software, which triggers a resolver to ignore valid responses, thus causing denial of service for normal resolution. In an exploit, the attacker could just forge a response targeting the source port of a vulnerable resolver without the need to guess the correct TXID.

CVE-2023-28452 Affected Github.com/coredns/coredns Versions

1 component(s)
Fixed Versions:
1.11.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/coredns/coredns
Go
< 1.11.0
1.11.0

References

Frequently Asked Questions

What is CVE-2023-28452?
CVE-2023-28452 is a security vulnerability in Github.com/coredns/coredns involving CoreDNS vulnerable to TuDoor Attacks under CWE-290: Authentication Bypass by Spoofing.
Which Github.com/coredns/coredns versions are affected?
Affected versions include releases prior to 1.11.0 across affected packages: github.com/coredns/coredns.
What version fixes CVE-2023-28452?
Upgrading to 1.11.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/coredns/coredns affected?
Yes, github.com/coredns/coredns is affected in releases prior to 1.11.0. Upgrade your dependency to 1.11.0 or later.
What is the CVSS score of CVE-2023-28452?
CVE-2023-28452 has a CVSS v3.1 base score of 5.9 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-28452?
CVE-2023-28452 is classified under CWE-290: Authentication Bypass by Spoofing (This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.).
How can I check Go dependencies for CVE-2023-28452?
Run the dependency tree command: 'inspect dependencies for github.com/coredns/coredns'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hfmw-7g3m-gj6q",
  "modified" : "2024-09-25T19:27:57Z",
  "published" : "2024-09-18T15:30:52Z",
  "aliases" : [ "CVE-2023-28452" ],
  "summary" : "CoreDNS vulnerable to TuDoor Attacks",
  "details" : "An issue was discovered in CoreDNS through 1.10.1. There is a vulnerability in DNS resolving software, which triggers a resolver to ignore valid responses, thus causing denial of service for normal resolution. In an exploit, the attacker could just forge a response targeting the source port of a vulnerable resolver without the need to guess the correct TXID.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/coredns/coredns"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-28452"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coredns/coredns/commit/604a902e2c7e0317aecaa3666124079c75a31573"
  }, {
    "type" : "WEB",
    "url" : "https://coredns.io"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/idealeer/e41c7fb3b661d4262d0b6f21e12168ba"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-hfmw-7g3m-gj6q"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/coredns/coredns"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-290" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-18T17:38:50Z",
    "nvd_published_at" : "2024-09-18T15:15:13Z"
  }
}