CVE-2026-63634
Calldata decoding leniency lets padded bytes inflate gas, draining fee‑payer.
- CVSS 6.9
- CWE-20
- Input Validation and Sanitization
- Remote
pympp is a Python SDK for the Machine Payments Protocol. Prior to version 0.9.1, when the server acts as the fee_payer, pympp validates calldata using eth_abi decoding, which is lenient about trailing bytes. The FeePayerPolicy caps gas_limit (≤ 2 M) and max_fee_per_gas (≤ 100 Gwei) but does not check calldata length. Tempo uses legacy calldata gas pricing: 16 gas per non-zero byte. Appending N bytes of 0x01 padding inflates actual gas used by N × 16 while keeping gas_limit and max_fee_per_gas within policy caps. The server cosigns and broadcasts the padded transaction, draining its fee-payer wallet. This issue has been patched in version 0.9.1.
- CWE
- CWE-20
- CVSS base score
- 6.9
- Published
- 2026-11-09
- OWASP
- A08 Software and Data Integrity Failures
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Affected component
- pympp
- Fixed by upgrading
- Yes
Solution
Upgrade pympp to version 0.9.1 or later.
Vulnerable code sample
import eth_abi
MAX_GAS_LIMIT = 2_000_000
MAX_FEE_PER_GAS = 100_000_000_000 # 100 Gwei in wei
def validate_and_process(calldata: bytes, gas_limit: int, max_fee_per_gas: int):
# VULNERABLE: does not verify calldata length, allowing trailing bytes
decoded = eth_abi.decode_abi(['uint256', 'address'], calldata)
amount, recipient = decoded
if gas_limit > MAX_GAS_LIMIT or max_fee_per_gas > MAX_FEE_PER_GAS:
raise ValueError("Policy limits exceeded")
# ... further processing, e.g., create transaction ...Patched code sample
import eth_abi
MAX_GAS_LIMIT = 2_000_000
MAX_FEE_PER_GAS = 100_000_000_000 # 100 Gwei in wei
def validate_and_process(calldata: bytes, gas_limit: int, max_fee_per_gas: int):
# FIX: enforce exact calldata length by re‑encoding and comparing sizes
decoded = eth_abi.decode_abi(['uint256', 'address'], calldata)
amount, recipient = decoded
if eth_abi.encode_abi(['uint256', 'address'], (amount, recipient)) != calldata:
raise ValueError("Calldata contains trailing bytes")
if gas_limit > MAX_GAS_LIMIT or max_fee_per_gas > MAX_FEE_PER_GAS:
raise ValueError("Policy limits exceeded")
# ... further processing, e.g., create transaction ...Published fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- fix: reject padded Tempo calldata (#160) (tempoxyz/pympp)
src/mpp/methods/tempo/intents.py,src/mpp/methods/tempo/intents.py · _match_single_transfer_calldata,src/mpp/methods/tempo/intents.py · _match_transfer_calldata,src/mpp/methods/tempo/intents.py · _validate_call_scope
Cite this entry
@misc{vaitp:cve202663634,
title = {{Calldata decoding leniency lets padded bytes inflate gas, draining fee‑payer.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-63634},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-63634/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
