Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-34704

published medium CVSS 3.1 · 5.9

era-compiler-solidity contains a `xor(zext(cmp), -1)` misoptimization

Published
13 May 2024, 19:13:27 UTC
Updated
02 Aug 2024, 02:59:21 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
matter-labs — era-compiler-solidity>= 1.2.0, <= 1.4.0 Affected Not stated GitHub_M
matter-labs — era-compiler-solidity1.2.0 to < 1.4.1 · Other versions: unknown Affected Not stated CISA-ADP

Description

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
5.9 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
matter-labs era-compiler-solidity >= 1.2.0, <= 1.4.0 (affected) GitHub_M · cna
matter-labs era-compiler-solidity 1.2.0 to < 1.4.1 (affected · custom)Default: unknown CISA-ADP · adp

Weaknesses

1
  • CWE-682 CWE-682: Incorrect Calculation (GitHub_M · cna)

References

1

Provider assertions

3

GitHub_M · cna

era-compiler-solidity contains a `xor(zext(cmp), -1)` misoptimization

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
16803c67abce44296c99b908781f1658346b51958f87ed9a752284b1e73df46a
Ingested
23 Sep 2026, 08:23:37 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected