RCE in Smartbear Swagger Petstore
CVE-2025-29157
An issue in petstore v.1.0.7 allows a remote attacker to execute arbitrary code via accessing a non-existent endpoint/cart, the server returns a 404-error page exposing sensitive information including the Servlet name (default) and server version
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.005 (42.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 43rd percentile — 42.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
- Smartbear Swagger Petstore — versions 1.0.7
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/swagger-api/swagger-petstore (Product)
- petstore3.swagger.io/ (Product)
- gist.github.com/HouqiyuA/3c36f78e8de9f6a3cfb0959477c07443 (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2025-29157?
- CVE-2025-29157 is a medium-severity vulnerability in Smartbear Swagger Petstore, classified under Command Injection. CVSS score: 6.5/10. Published 2025-09-25.
- How severe is CVE-2025-29157?
- Medium severity. CVSS v3 base score is 6.5 out of 10.
- Is CVE-2025-29157 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.