Advisory

GHSA-369h-pjr2-6wrh

Also known as: CVE-2018-20994, RUSTSEC-2018-0007

Summary

Uncontrolled recursion in trust-dns-proto

Details

There's a stack overflow leading to a crash when Trust-DNS's parses a malicious DNS packet. Affected versions of this crate did not properly handle parsing of DNS message compression (RFC1035 section 4.1.4). The parser could be tricked into infinite loop when a compression offset pointed back to the same domain name to be parsed. This allows an attacker to craft a malicious DNS packet which when consumed with Trust-DNS could cause stack overflow and crash the affected software.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:43 UTC
Modified
2023-11-08 04:00 UTC

Affected packages and fixes

trust-dns-proto

crates.io · All systems

Affected

  • introduced 0, fixed 0.4.3 (semver)

Fixed versions

0.4.3

Fix

  • Fixed version 0.4.3
    cargo update -p trust-dns-proto --precise 0.4.3

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences