CVE-2023-38698
.eth registrar controller can shorten the duration of registered names
Also known as GHSA-rrxv-q8m4-wch3
Mitigation
- Upgrade @ensdomains/ens-contracts to 0.0.22 or later.
Who should check
- Projects that depend on npm package @ensdomains/ens-contracts (< 0.0.22)
- Anyone running ensdomains ens-contracts <= 0.0.21
Vulnerability facts
- Affected
- @ensdomains/ens-contracts < 0.0.22
- Fixed in
- 0.0.22
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 4.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.86% chance of exploitation in 30 days (percentile 56, 2026-11-26)
- CWE
- CWE-190
- Modified
Description
Ethereum Name Service (ENS) is a distributed, open, and extensible naming system based on the Ethereum blockchain. According to the documentation, controllers are allowed to register new domains and extend the expiry of existing domains, but they cannot change the ownership or reduce the expiration time of existing domains. However, a preliminary analysis suggests that an attacker-controlled controller may be able to reduce the expiration time of existing domains due to an integer overflow in the renew function. The vulnerability resides `@ensdomains/ens-contracts` prior to version 0.0.22. If successfully exploited, this vulnerability would enable attackers to force the expiration of any ENS record, ultimately allowing them to claim the affected domains for themselves. Currently, it would require a malicious DAO to exploit it. Nevertheless, any vulnerability present in the controllers could potentially render this issue exploitable in the future. An additional concern is the possibility of renewal discounts. Should ENS decide to implement a system that offers unlimited .eth domains for a fixed fee in the future, the vulnerability could become exploitable by any user due to the reduced attack cost. Version 0.0.22 contains a patch for this issue. As long as registration cost remains linear or superlinear based on registration duration, or limited to a reasonable maximum (eg, 1 million years), this vulnerability could only be exploited by a malicious DAO. The interim workaround is thus to take no action.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @ensdomains/ens-contracts | < 0.0.22 | 0.0.22 | osv |
| ensdomains ens-contracts | <= 0.0.21 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-38698. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-38698.md Affected: @ensdomains/ens-contracts < 0.0.22 Fixed in: 0.0.22 Steps: 1. Search this machine and project for @ensdomains/ens-contracts (npm), ensdomains ens-contracts: 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.
References
Vendor advisories
FAQ
Is CVE-2023-38698 being exploited?
There is no confirmed exploitation: CVE-2023-38698 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-38698?
Medium: CVSS 4.9 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2023-38698?
@ensdomains/ens-contracts < 0.0.22.
Is there a fix for CVE-2023-38698?
Yes. Fixed in 0.0.22. Upgrade @ensdomains/ens-contracts to 0.0.22 or later.
How do I check if I'm affected by CVE-2023-38698?
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.