GHSA-v858-xh7w-8jr5

Suggest an improvement
Source
https://github.com/advisories/GHSA-v858-xh7w-8jr5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-v858-xh7w-8jr5/GHSA-v858-xh7w-8jr5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v858-xh7w-8jr5
Aliases
Published
2026-11-17T20:04:56Z
Modified
2026-11-17T20:15:05Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
pympp allows excessive sponsored transaction fees through padded calldata
Details

Details

When the server acts as the fee_payer, pympp 0.8.0 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.

Vulnerable code path: FeePayerPolicy in fee_payer_policy.py (pympp 0.8.0) enforces maxGas = 2_000_000 and maxFeePerGas = 100 Gwei but has no calldata.length bound. The policy check passes because the inflated gas comes from intrinsic calldata cost, not the declared gas_limit.

Note: In our experiment, we enforce an 16 KB max_header_length, which caps the maximum effective padding at roughly 5,500 bytes. The default padding in this PoC (5,500 bytes) is within that limit.

PoC

The PoC is provided below. It is configured to reproduce the attack on Tempo Moderate testnet within a Docker environment. Download the PoC and run:

unzip pympp_python_PoC.zip
cd pympp_python
docker build -t pympp-padding .
docker run --rm pympp-padding

There are more details in pympp_python/README.md

Impact

In our experiment, a malicious client can force the server to pay ~5x the normal transaction fee. This dramatically increases operational costs and completely destroys the profit margin on low-cost items.

Please provide a way to share the PoC in .zip format to you. Thank you!

Database specific
{
    "cwe_ids": [
        "CWE-1286",
        "CWE-20"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-17T20:04:56Z",
    "nvd_published_at": "2026-11-09T22:18:53Z",
    "severity": "MODERATE"
}
References

Affected packages

PyPI / pympp

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.9.1

Affected versions

0.*
0.0.1
0.1.0
0.1.3
0.1.4
0.1.5
0.2.0
0.3.0
0.4.0
0.4.1
0.4.2
0.5.0
0.5.2
0.5.3
0.5.4
0.6.0
0.7.0
0.8.0
0.8.1
0.8.2
0.9.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-v858-xh7w-8jr5/GHSA-v858-xh7w-8jr5.json"