# CVE-2023-38698: .eth registrar controller can shorten the duration of registered names

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

- **Severity:** MEDIUM 4.9
- **CVSS:** 4.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.86% (percentile 56, 2026-11-26)
- **CWE:** CWE-190
- **Aliases:** GHSA-rrxv-q8m4-wch3
- **Published:** 2023-08-01T19:48:31.000Z
- **Modified:** 2026-09-10T03:49:57.769Z

## Who should check

- Projects that depend on npm package @ensdomains/ens-contracts (\< 0.0.22)
- Anyone running ensdomains ens-contracts \<= 0.0.21

## 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

- npm `@ensdomains/ens-contracts`: affected \< 0.0.22; fixed 0.0.22 (osv)
- ensdomains ens-contracts: \<= 0.0.21 (cvelist)

## Mitigation

- Upgrade @ensdomains/ens-contracts to 0.0.22 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/ensdomains/ens-contracts/security/advisories/GHSA-rrxv-q8m4-wch3>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-38698>
- patch: <https://github.com/ensdomains/ens-contracts/commit/e6b136e979084de3761c125142620304173990ca>
- other: <https://github.com/ensdomains/ens-contracts/blob/master/contracts/ethregistrar/BaseRegistrarImplementation.sol#L171>
- other: <https://github.com/ensdomains/ens-contracts>

## 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-2023-38698>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rrxv-q8m4-wch3> (license: <https://creativecommons.org/licenses/by/4.0/>)

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