# CVE-2026-81928: Net::DNS versions before 1.57 for Perl allow memory exhaustion via unbounded recursion in sig\_data when re-encoding a message with a misplaced TSIG record

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.68% (percentile 48, 2026-11-28)
- **CWE:** CWE-674
- **Published:** 2026-09-01T23:14:52.133Z
- **Modified:** 2026-09-03T16:41:09.297Z

## Who should check

- Anyone running Net-DNS \< 1.57

## Description

Net::DNS versions before 1.57 for Perl allow memory exhaustion via unbounded recursion in sig\_data when re-encoding a message with a misplaced TSIG record.

sig\_data signs a message by re-encoding it, and removes TSIG records only from the additional section. A TSIG decoded into the answer or authority section survives that step and is signed again, so encoding re-enters sig\_data with no termination condition. Decoding does not reject such a message: a TSIG that is not the last record on the wire raises "misplaced or corrupt TSIG", but the error is caught, reported as a warning, and the record is left in the packet. RFC 8945 section 5.2 requires the message to be dropped.

The recursion is reached only when the decoded TSIG carries an empty MAC, since a MAC recovered from the wire short-circuits the signing step. It is reached only from code that re-encodes a message it decoded, such as a forwarder or a proxy. A decoded message that is never re-encoded is unaffected. Message direction does not matter: a query reaches the same path as a response.

Each cycle re-encodes the whole message, so fewer than 100 bytes on the wire exhaust available memory and terminate the process.

## Affected and fixed versions

- Net-DNS: \< 1.57 (cvelist)

## Mitigation

- Upgrade Net-DNS to 1.57 or later.
- Vendor workaround: For deployments that are not able to upgrade to Net-DNS 1.57, reject a decoded message before re-encoding it if a TSIG record appears anywhere but the final position of the additional section.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-81928. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-81928.md
Affected: Net-DNS < 1.57
Fixed in: Net-DNS 1.57

Steps:
1. Search this machine and project for Net-DNS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-81928 being exploited?

There is no confirmed exploitation: CVE-2026-81928 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.68% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-81928?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-81928?

Net-DNS \< 1.57.

### Is there a fix for CVE-2026-81928?

Yes. Fixed in Net-DNS 1.57. Upgrade Net-DNS to 1.57 or later. Vendor workaround: For deployments that are not able to upgrade to Net-DNS 1.57, reject a decoded message before re-encoding it if a TSIG record appears anywhere but the final position of the additional section.

### How do I check if I'm affected by CVE-2026-81928?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://metacpan.org/release/NLNETLABS/Net-DNS-1.56/source/lib/Net/DNS/RR/TSIG.pm#L245-262>
- other: <https://metacpan.org/release/NLNETLABS/Net-DNS-1.56/source/lib/Net/DNS/RR/TSIG.pm#L62-73>
- other: <https://datatracker.ietf.org/doc/html/rfc8945#section-5.2>
- other: <https://rt.cpan.org/Ticket/Display.html?id=181125>
- other: <https://metacpan.org/release/NLNETLABS/Net-DNS-1.57/changes>
- other: <http://www.openwall.com/lists/oss-security/2026/09/02/1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-81928>

HTML: <https://flawdb.com/CVE-2026-81928> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-81928>
