{"api_version":"1","generated_at":"2026-04-08T12:44:42+00:00","cve":"CVE-2023-40014","urls":{"html":"https://cve.report/CVE-2023-40014","api":"https://cve.report/api/cve/CVE-2023-40014.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-40014","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-40014"},"summary":{"title":"CVE-2023-40014","description":"OpenZeppelin Contracts is a library for secure smart contract development. Starting in version 4.0.0 and prior to version 4.9.3, contracts using `ERC2771Context` along with a custom trusted forwarder may see `_msgSender` return `address(0)` in calls that originate from the forwarder with calldata shorter than 20 bytes. This combination of circumstances does not appear to be common, in particular it is not the case for `MinimalForwarder` from OpenZeppelin Contracts, or any deployed forwarder the team is aware of, given that the signer address is appended to all calls that originate from these forwarders. The problem has been patched in v4.9.3.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-08-10 20:15:00","updated_at":"2023-08-23 13:48:00"},"problem_types":["CWE-116"],"metrics":[],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/e4435eed757d4309436b1e06608e97b6d6e2fdb5","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/e4435eed757d4309436b1e06608e97b6d6e2fdb5","refsource":"MISC","tags":[],"title":"Adjust ERC2771Context._msgData for msg.data.length < 20 (#4484) · OpenZeppelin/openzeppelin-contracts@e4435ee · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.3","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.3","refsource":"MISC","tags":[],"title":"Release v4.9.3 · OpenZeppelin/openzeppelin-contracts · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4484","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4484","refsource":"MISC","tags":[],"title":"Adjust ERC2771Context._msgData for msg.data.length < 20 by frangio · Pull Request #4484 · OpenZeppelin/openzeppelin-contracts · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/9445f96223041abf2bf08daa56f8da50b674cbcd","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/9445f96223041abf2bf08daa56f8da50b674cbcd","refsource":"MISC","tags":[],"title":"Adjust ERC2771Context._msgData for msg.data.length < 20 (#4484) · OpenZeppelin/openzeppelin-contracts@9445f96 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4481","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4481","refsource":"MISC","tags":[],"title":"Make ERC2771Context return original sender address if `msg.data.length <= 20` by ernestognw · Pull Request #4481 · OpenZeppelin/openzeppelin-contracts · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-g4vp-m682-qqmp","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-g4vp-m682-qqmp","refsource":"MISC","tags":[],"title":"ERC2771Context with custom forwarder may lead to zero-valued _msgSender · Advisory · OpenZeppelin/openzeppelin-contracts · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-40014","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40014","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"40014","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"openzeppelin","cpe5":"openzeppelin_contracts","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"40014","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"openzeppelin","cpe5":"openzeppelin_contracts-upgradable","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-40014","qid":"994834","title":"NodeJs (Npm) Security Update for @openzeppelin/contracts (GHSA-g4vp-m682-qqmp)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-40014","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"OpenZeppelin Contracts is a library for secure smart contract development. Starting in version 4.0.0 and prior to version 4.9.3, contracts using `ERC2771Context` along with a custom trusted forwarder may see `_msgSender` return `address(0)` in calls that originate from the forwarder with calldata shorter than 20 bytes. This combination of circumstances does not appear to be common, in particular it is not the case for `MinimalForwarder` from OpenZeppelin Contracts, or any deployed forwarder the team is aware of, given that the signer address is appended to all calls that originate from these forwarders. The problem has been patched in v4.9.3.\n"}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-116: Improper Encoding or Escaping of Output","cweId":"CWE-116"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"OpenZeppelin","product":{"product_data":[{"product_name":"openzeppelin-contracts","version":{"version_data":[{"version_affected":"=","version_value":">= 4.0.0, < 4.9.3"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-g4vp-m682-qqmp","refsource":"MISC","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-g4vp-m682-qqmp"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4481","refsource":"MISC","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4481"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4484","refsource":"MISC","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4484"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/9445f96223041abf2bf08daa56f8da50b674cbcd","refsource":"MISC","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/9445f96223041abf2bf08daa56f8da50b674cbcd"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/e4435eed757d4309436b1e06608e97b6d6e2fdb5","refsource":"MISC","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/e4435eed757d4309436b1e06608e97b6d6e2fdb5"},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.3","refsource":"MISC","name":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.3"}]},"source":{"advisory":"GHSA-g4vp-m682-qqmp","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2023-08-10 20:15:00","lastModifiedDate":"2023-08-23 13:48:00","problem_types":["CWE-116"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":1.4}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:openzeppelin:openzeppelin_contracts-upgradable:*:*:*:*:*:node.js:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.9.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:openzeppelin:openzeppelin_contracts:*:*:*:*:*:node.js:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.9.3","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}