diff --git a/advisories/github-reviewed/2024/02/GHSA-4hwq-4cpm-8vmx/GHSA-4hwq-4cpm-8vmx.json b/advisories/github-reviewed/2024/02/GHSA-4hwq-4cpm-8vmx/GHSA-4hwq-4cpm-8vmx.json index dd9a8c99e28..d0f413f0125 100644 --- a/advisories/github-reviewed/2024/02/GHSA-4hwq-4cpm-8vmx/GHSA-4hwq-4cpm-8vmx.json +++ b/advisories/github-reviewed/2024/02/GHSA-4hwq-4cpm-8vmx/GHSA-4hwq-4cpm-8vmx.json @@ -1,7 +1,7 @@ { "schema_version": "1.4.0", "id": "GHSA-4hwq-4cpm-8vmx", - "modified": "2024-02-26T20:11:35Z", + "modified": "2024-02-26T22:06:39Z", "published": "2024-02-26T20:11:35Z", "aliases": [ "CVE-2024-24564" @@ -9,7 +9,10 @@ "summary": "Vyper's `extract32` can ready dirty memory", "details": "### Summary\n\nWhen using the built-in `extract32(b, start)`, if the `start` index provided has for side effect to update `b`, the byte array to extract `32` bytes from, it could be that some dirty memory is read and returned by `extract32`.\n\n### Details\n\nBefore evaluating `start`, the function `Extract32.build_IR` caches only:\n\n- The pointer in memory/storage to `b`: https://github.com/vyperlang/vyper/blob/10564dcc37756f3d3684b7a91fd8f4325a38c4d8/vyper/builtins/functions.py#L916-L918\n- The length of `b`: https://github.com/vyperlang/vyper/blob/10564dcc37756f3d3684b7a91fd8f4325a38c4d8/vyper/builtins/functions.py#L920-L922\n\nbut do not cache the actual content of `b`. This means that if the evaluation of `start` changes `b`'s content and length, an outdated length will be used with the new content when extracting 32 bytes from `b`.\n\n### PoC\n\nCalling the function `foo` of the following contract returns `b'uuuuuuuuuuuuuuuuuuuuuuuuuuu\\x00\\x00789'` meaning that `extract32` accessed some dirty memory.\n\n```Vyper\nvar:Bytes[96]\n\n@internal\ndef bar() -> uint256:\n self.var = b'uuuuuuuuuuuuuuuuuuuuuuuuuuuuuu'\n self.var = b''\n return 3\n\n@external\ndef foo() -> bytes32:\n self.var = b'abcdefghijklmnopqrstuvwxyz123456789'\n return extract32(self.var, self.bar(), output_type=bytes32)\n # returns b'uuuuuuuuuuuuuuuuuuuuuuuuuuu\\x00\\x00789'\n```\n\n### Impact\n\nFor contracts that are affected, it means that calling `extract32` returns dirty memory bytes instead of some expected output.", "severity": [ - + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N" + } ], "affected": [ { @@ -37,6 +40,10 @@ "type": "WEB", "url": "https://github.com/vyperlang/vyper/security/advisories/GHSA-4hwq-4cpm-8vmx" }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-24564" + }, { "type": "PACKAGE", "url": "https://github.com/vyperlang/vyper" @@ -57,6 +64,6 @@ "severity": "LOW", "github_reviewed": true, "github_reviewed_at": "2024-02-26T20:11:35Z", - "nvd_published_at": null + "nvd_published_at": "2024-02-26T20:19:05Z" } } \ No newline at end of file diff --git a/advisories/github-reviewed/2024/02/GHSA-9p8r-4xp4-gw5w/GHSA-9p8r-4xp4-gw5w.json b/advisories/github-reviewed/2024/02/GHSA-9p8r-4xp4-gw5w/GHSA-9p8r-4xp4-gw5w.json index dd0850250a2..e36226671fa 100644 --- a/advisories/github-reviewed/2024/02/GHSA-9p8r-4xp4-gw5w/GHSA-9p8r-4xp4-gw5w.json +++ b/advisories/github-reviewed/2024/02/GHSA-9p8r-4xp4-gw5w/GHSA-9p8r-4xp4-gw5w.json @@ -1,7 +1,7 @@ { "schema_version": "1.4.0", "id": "GHSA-9p8r-4xp4-gw5w", - "modified": "2024-02-26T20:11:07Z", + "modified": "2024-02-26T22:06:28Z", "published": "2024-02-26T20:11:07Z", "aliases": [ "CVE-2024-26149" @@ -9,7 +9,10 @@ "summary": "Vyper's `_abi_decode` vulnerable to Memory Overflow", "details": "## Summary\n\nIf an excessively large value is specified as the starting index for an array in `_abi_decode`, it can cause the read position to overflow. This results in the decoding of values outside the intended array bounds, potentially leading to bugs in contracts that use arrays within `_abi_decode`. The advisory has been assigned low severity, because it is only observable if there is a memory write between two invocations of `abi_decode` on the same input.\n\n## Proof of Concept\n\n```vyper\nevent Pwn:\n pass\n\n@external\ndef f(x: Bytes[32 * 3]):\n a: Bytes[32] = b\"foo\"\n y: Bytes[32 * 3] = x\n\n decoded_y1: Bytes[32] = _abi_decode(y, Bytes[32])\n a = b\"bar\"\n decoded_y2: Bytes[32] = _abi_decode(y, Bytes[32])\n\n if decoded_y1 != decoded_y2:\n log Pwn()\n```\n\nSending the following calldata results in `Pwn` being emitted. \n\n```\n0xd45754f8\n0000000000000000000000000000000000000000000000000000000000000020\n0000000000000000000000000000000000000000000000000000000000000060\nffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0\n```", "severity": [ - + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N" + } ], "affected": [ { @@ -37,6 +40,10 @@ "type": "WEB", "url": "https://github.com/vyperlang/vyper/security/advisories/GHSA-9p8r-4xp4-gw5w" }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-26149" + }, { "type": "PACKAGE", "url": "https://github.com/vyperlang/vyper" @@ -44,11 +51,12 @@ ], "database_specific": { "cwe_ids": [ + "CWE-119", "CWE-120" ], "severity": "LOW", "github_reviewed": true, "github_reviewed_at": "2024-02-26T20:11:07Z", - "nvd_published_at": null + "nvd_published_at": "2024-02-26T20:19:05Z" } } \ No newline at end of file diff --git a/advisories/github-reviewed/2024/02/GHSA-pwr2-4v36-6qpr/GHSA-pwr2-4v36-6qpr.json b/advisories/github-reviewed/2024/02/GHSA-pwr2-4v36-6qpr/GHSA-pwr2-4v36-6qpr.json index 7ec181b57f7..e6fbf8d0d1a 100644 --- a/advisories/github-reviewed/2024/02/GHSA-pwr2-4v36-6qpr/GHSA-pwr2-4v36-6qpr.json +++ b/advisories/github-reviewed/2024/02/GHSA-pwr2-4v36-6qpr/GHSA-pwr2-4v36-6qpr.json @@ -1,7 +1,7 @@ { "schema_version": "1.4.0", "id": "GHSA-pwr2-4v36-6qpr", - "modified": "2024-02-26T21:31:06Z", + "modified": "2024-02-26T22:06:16Z", "published": "2024-02-26T18:30:31Z", "aliases": [ "CVE-2024-27454" @@ -56,6 +56,10 @@ "type": "WEB", "url": "https://github.com/ijl/orjson/blob/master/CHANGELOG.md#3915" }, + { + "type": "WEB", + "url": "https://github.com/pypa/advisory-database/tree/main/vulns/orjson/PYSEC-2024-40.yaml" + }, { "type": "WEB", "url": "https://monicz.dev/CVE-2024-27454"