{"answers":{"affected":"2 open source packages ship an affected version, including @ensdomains/ens-contracts. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-38698 exists.","fix":"Upgrade @ensdomains/ens-contracts to 0.0.22 or later.","what":"CVE-2023-38698 is a medium-severity vulnerability in ensdomains ens-contracts, published on 4 Aug 2023. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-38698 and fix it if it is affected.\n\nWhat it is: CVE-2023-38698 is a medium-severity vulnerability in ensdomains ens-contracts, published on 4 Aug 2023. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-38698 exists.\n\nAffected packages and fixed versions:\n- @ensdomains/ens-contracts (npm): affected all versions; fixed in 0.0.22\n- @ensdomains/ens-contracts (npm): affected all versions; fixed in 0.0.22\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-38698/ (Markdown: https://insights.sbomify.com/CVE-2023-38698/index.md)","id":"CVE-2023-38698","markdown":"https://insights.sbomify.com/CVE-2023-38698/index.md","name":"CVE-2023-38698","record":{"aliases":["GHSA-rrxv-q8m4-wch3"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"ENS smart contracts","requires_auth":"high_privilege","summary":"An integer overflow in the ENS registrar controller allows attackers to prematurely expire domains, enabling them to claim ownership of affected names.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ethereum_name_service","vendor":"ens.domains"}],"cvss":{"score":4.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"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.\n\nIf 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.\n\nVersion 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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":".eth registrar controller can shorten the duration of registered names","id":"CVE-2023-38698","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"integer_overflow","year":"2023"},"n_packages":2,"n_references":3,"next":{"headline":"MindsDB 'Call to requests with verify=False disabling SSL certificate checks, security issue.' issue","id":"CVE-2023-38699"},"packages":[{"ecosystem":"npm","fixed":["0.0.22"],"introduced":["0"],"last_affected":[],"package":"@ensdomains/ens-contracts","purl":null,"source":"GHSA-rrxv-q8m4-wch3"},{"ecosystem":"npm","fixed":["0.0.22"],"introduced":["0"],"last_affected":[],"package":"@ensdomains/ens-contracts","purl":"pkg:npm/%40ensdomains/ens-contracts","source":"GHSA-rrxv-q8m4-wch3"}],"prev":{"headline":"protocol-http1 HTTP Request/Response Smuggling vulnerability","id":"CVE-2023-38697"},"products":["ens-contracts"],"published":"2023-08-04","related":[{"cvss_score":8.7,"headline":"Ethereum Name Service - Malicious takeover of previously owned ENS names","id":"CVE-2020-5232","kev_date_added":null,"published":"2020-01-30"},{"cvss_score":2.7,"headline":"ENS DNSSEC Oracle Vulnerable to RSA Signature Forgery via Missing PKCS#1 v1.5 Padding Validation","id":"CVE-2026-22866","kev_date_added":null,"published":"2026-02-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-03","vendors":["ensdomains"]},"summary":"An integer overflow in the ENS registrar controller allows attackers to prematurely expire domains, enabling them to claim ownership of affected names.","url":"https://insights.sbomify.com/CVE-2023-38698/"}