{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-40014",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2023-08-08T13:46:25.241Z",
        "datePublished": "2023-08-10T19:52:55.699Z",
        "dateUpdated": "2024-10-03T14:58:56.494Z"
    },
    "containers": {
        "cna": {
            "title": "OpenZeppelin Contracts's ERC2771Context with custom forwarder may lead to zero-valued _msgSender",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-116",
                            "lang": "en",
                            "description": "CWE-116: Improper Encoding or Escaping of Output",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "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"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-g4vp-m682-qqmp",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-g4vp-m682-qqmp"
                },
                {
                    "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4481",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4481"
                },
                {
                    "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4484",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4484"
                },
                {
                    "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/commit/9445f96223041abf2bf08daa56f8da50b674cbcd",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/commit/9445f96223041abf2bf08daa56f8da50b674cbcd"
                },
                {
                    "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/commit/e4435eed757d4309436b1e06608e97b6d6e2fdb5",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/commit/e4435eed757d4309436b1e06608e97b6d6e2fdb5"
                },
                {
                    "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.3",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.3"
                }
            ],
            "affected": [
                {
                    "vendor": "OpenZeppelin",
                    "product": "openzeppelin-contracts",
                    "versions": [
                        {
                            "version": ">= 4.0.0, < 4.9.3",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-08-10T19:52:55.699Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "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"
                }
            ],
            "source": {
                "advisory": "GHSA-g4vp-m682-qqmp",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T18:24:54.263Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-g4vp-m682-qqmp",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-g4vp-m682-qqmp"
                    },
                    {
                        "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4481",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4481"
                    },
                    {
                        "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4484",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4484"
                    },
                    {
                        "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/commit/9445f96223041abf2bf08daa56f8da50b674cbcd",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/commit/9445f96223041abf2bf08daa56f8da50b674cbcd"
                    },
                    {
                        "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/commit/e4435eed757d4309436b1e06608e97b6d6e2fdb5",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/commit/e4435eed757d4309436b1e06608e97b6d6e2fdb5"
                    },
                    {
                        "name": "https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.3",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.3"
                    }
                ]
            },
            {
                "affected": [
                    {
                        "vendor": "openzeppelin",
                        "product": "openzeppelin_contracts",
                        "cpes": [
                            "cpe:2.3:a:openzeppelin:openzeppelin_contracts:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "4.0.0",
                                "status": "affected",
                                "lessThan": "4.9.3",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-10-03T14:57:45.818565Z",
                                "id": "CVE-2023-40014",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-10-03T14:58:56.494Z"
                }
            }
        ]
    }
}