ISC BIND 9
DNS message with invalid TSIG causes an assertion failure
When an incoming DNS protocol message includes a Transaction Signature (TSIG), BIND always checks it. If the TSIG contains an invalid value in the algorithm field, BIND immediately aborts with an assertion failure. This issue affects BIND 9 versions 9.20.0 through 9.20.8 and 9.21.0 through 9.21.7.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9.20.0, <= 9.20.8
- >= 9.21.0, <= 9.21.7
Mitigation
Upgrade to the patched release most closely related to your current version of BIND 9: 9.20.9 or 9.21.8.
Workaround
No workarounds known.
References
- Vendor advisory kb.isc.org/docs/cve-2025-40775
Timeline
Days relative to CVE publicationFirst public PoC 1.5 days after publication; not in CISA KEV. First PoC: AlexSvobo/nhi-zero-trust-bypass (created 23 May 2025, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| AlexSvobo/nhi-zero-trust-bypass | 23 May 2025 +1.5 d | 6 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /get_secret
- Ports
- 5000, 8200
- Seen in
- 1 repo: AlexSvobo/nhi-zero-trust-bypass
- Evidence
- AlexSvobo/nhi-zero-trust-bypass/client_nhi_rotation.py:27
GET /v1/secrets
- Key headers
Authorization: Bearer {var}- Ports
- 5000
- Seen in
- 1 repo: AlexSvobo/nhi-zero-trust-bypass
- Evidence
- AlexSvobo/nhi-zero-trust-bypass/bypass_demo.py:10
POST /rotate_secret
- Ports
- 5000, 8200
- Seen in
- 1 repo: AlexSvobo/nhi-zero-trust-bypass
- Evidence
- AlexSvobo/nhi-zero-trust-bypass/client_nhi_rotation.py:17
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/get_secret(?:[?#].*)?$
(?i)^/v1/secrets(?:[?#].*)?$
(?i)^/rotate_secret(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5000,8200] (msg:"GG PoC-Monitor CVE-2025-40775 ISC BIND 9 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/get_secret"; reference:url,poc.griffinguard.io/cve/CVE-2025-40775; classtype:web-application-attack; sid:9217861; rev:1;)
alert http any any -> $HOME_NET [5000] (msg:"GG PoC-Monitor CVE-2025-40775 ISC BIND 9 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/v1/secrets"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2025-40775; classtype:web-application-attack; sid:9850027; rev:1;)
alert http any any -> $HOME_NET [5000,8200] (msg:"GG PoC-Monitor CVE-2025-40775 ISC BIND 9 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/rotate_secret"; reference:url,poc.griffinguard.io/cve/CVE-2025-40775; classtype:web-application-attack; sid:9111372; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: ISC BIND 9 exploit attempt (CVE-2025-40775)
id: gg-pocmon-cve-2025-40775-9217861
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-40775. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-40775
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/get_secret'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.40775
title: ISC BIND 9 exploit attempt (CVE-2025-40775)
id: gg-pocmon-cve-2025-40775-9850027
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-40775. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-40775
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/v1/secrets'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.40775
title: ISC BIND 9 exploit attempt (CVE-2025-40775)
id: gg-pocmon-cve-2025-40775-9111372
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-40775. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-40775
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/rotate_secret'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.40775