GHSA-369h-pjr2-6wrh

Suggest an improvement
Source
https://github.com/advisories/GHSA-369h-pjr2-6wrh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-369h-pjr2-6wrh/GHSA-369h-pjr2-6wrh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-369h-pjr2-6wrh
Aliases
Published
2021-08-25T20:43:16Z
Modified
2023-11-08T04:00:13.553878Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-674"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T21:24:41Z"
}
References

Affected packages

crates.io / trust-dns-proto

Package

Name
trust-dns-proto
View open source insights on deps.dev
Purl
pkg:cargo/trust-dns-proto

Affected ranges

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