Advisory

GO-2020-0008

Also known as: CVE-2019-19794, GHSA-44r7-7p62-q3fr

Summary

Insecure generation of random numbers in github.com/miekg/dns

Details

DNS message transaction IDs are generated using math/rand which makes them relatively predictable. This reduces the complexity of response spoofing attacks against DNS clients.

Severity

Not rated by the source.

Dates

Published
2021-04-14 20:04 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/miekg/dns

Go · All systems

Affected

  • introduced 0, fixed 1.1.25-0.20191211073109-8ebf2e419df7 (semver)

Fixed versions

1.1.25-0.20191211073109-8ebf2e419df7

Fix

  • Fixed version 1.1.25-0.20191211073109-8ebf2e419df7
    go get github.com/miekg/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences