{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-34704","published":"2024-05-14T15:39:29.560000Z","last_modified":"2026-06-17T07:33:54.620000Z","status":"Deferred","cvss":{"version":"3.1","score":5.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-682"],"cpes":[],"cpes_truncated":false,"vendors":["matter-labs"],"products":["matter-labs/era-compiler-solidity"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00521,"percentile":0.37634,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":50,"links":{"html_es":"/es/cve/CVE-2024-34704/","html_en":"/en/cve/CVE-2024-34704/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-34704","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-34704"},"untrusted":{"vendor_name":"matter-labs","product_name":"era-compiler-solidity","desc_en":"era-compiler-solidity is the ZKsync compiler for Solidity.  The problem occurred during instruction selection in the `DAGCombine` phase while visiting the XOR operation. The issue arises when attempting to fold the expression `!(x cc y)` into `(x !cc y)`. To perform this transformation, the second operand of XOR should be a constant representing the true value. However, it was incorrectly assumed that -1 represents the true value, when in fact, 1 is the correct representation, so this transformation for this case should be skipped. This vulnerability is fixed in 1.4.1.","affected":[{"untrusted_vendor":"matter-labs","untrusted_product":"era-compiler-solidity","versions":[]}],"references":[{"url":"https://github.com/matter-labs/era-compiler-solidity/security/advisories/GHSA-22pj-7cvw-r3gc","tags":[]}]}}