Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2023-42460 — vyper

🟡 CVSS 5.3 — Medium ⚠️ Exploit Public CWE-682 OSV
5.3
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Vyper's _abi_decode input not validated in complex expressions

Impact

_abi_decode() does not validate input when it is nested in an expression. the following example gets correctly validated (bounds checked):

```vyper

x: int128 = _abi_decode(slice(msg.data, 4, 32), int128)

```

however, the following example is not bounds checked

```vyper

@external

def abi_decode(x: uint256) -> uint256:

a: uint256 = convert(_abi_decode(slice(msg.data, 4, 32), (uint8)), uint256) + 1

return a # abi_decode(256) returns: 257

```

the issue can be triggered by constructing an example where the output of _abi_decode is not internally passed to make_setter (an internal codegen routine) or other input validating routine.

Patches

https://github.com/vyperlang/vyper/pull/3626

Workarounds

_Is there a way for users to fix or remediate the vulnerability without upgrading?_

References

_Are there any links users can visit to find out more?_

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity high, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Attack requirements: Present — the target has to be in a particular state for the attack to work.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Confidentiality impact: None.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: None.

Weakness class

CVE-2023-42460 is classified as CWE-682: Incorrect Calculation. The product performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management.

Affected software

CVE-2023-42460 is recorded against 1 package.

  • vyper (from 0.3.4 up to 0.3.10)

Timeline and source

Published on 26 September 2023 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)

Other advisories for this package

vyper has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-682: Incorrect Calculation) in other software:

Details

Severity MEDIUM
CVSS Score 5.3
CVSS Vector CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
CWE CWE-682
Public Exploit ⚠️ Yes
Source OSV
Published 2023-09-26
Updated 2026-08-20
Modified 2026-06-17

Affected Packages

Software From version Fixed in
vyper 0.3.4 0.3.10

Similar Threats

Exploit Protection

Are you running vyper?

CVE-2023-42460 carries CVSS 5.3 Medium rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2023-42460 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2023
✓