GHSA-44r7-7p62-q3fr

Suggest an improvement
Source
https://github.com/advisories/GHSA-44r7-7p62-q3fr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-44r7-7p62-q3fr/GHSA-44r7-7p62-q3fr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-44r7-7p62-q3fr
Aliases
Published
2021-05-18T21:09:13Z
Modified
2023-11-08T04:01:29.591612Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
miekg/dns insecurely generates random numbers
Details

The miekg Go DNS package before 1.1.25, as used in CoreDNS before 1.6.6 and other products, improperly generates random numbers because math/rand is used. The TXID becomes predictable, leading to response forgeries.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-330",
        "CWE-338"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-18T20:42:52Z"
}
References

Affected packages

Go / github.com/miekg/dns

Package

Name
github.com/miekg/dns
View open source insights on deps.dev
Purl
pkg:golang/github.com/miekg/dns

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.25