CVE-2026-6878: verl's math_equal() Vulnerable to Arbitrary Code Execution via Unsafe eval()
A vulnerability was identified in ByteDance verl up to 0.7.1. Affected is the function mathequal of the file primemath/grader.py. The manipulation leads to a sandbox issue. It is possible to initiate the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit is publicly available and may be used.
Published Apr 23, 2026 · Updated Apr 30, 2026
Affected packages
verl
- Ecosystem
- PyPI
- Affected
- <= 0.7.1
- Fixed in
- No patched version yet
- Check
pip show verl
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability was identified in ByteDance verl up to 0.7.1. Affected is the function math_equal of the file prime_math/grader.py. The manipulation leads to a sandbox issue. It is possible to initiate the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit is publicly available and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-6878
- https://github.com/zast-ai/vulnerability-reports/blob/main/bytedance/verl_rce.md
- https://vuldb.com/submit/795257
- https://vuldb.com/vuln/359040
- https://vuldb.com/vuln/359040/cti
- https://github.com/verl-project/verl/blob/v0.7.1/verl/utils/reward_score/prime_math/grader.py
- https://github.com/advisories/GHSA-h57c-v2v3-5v3v
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
