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)
EPSS: 0.005 (39.7th percentile) — read the EPSS interpretation.
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.
Affected products
- Smartbear Swagger_petstore — versions 1.0.7
- N/a — versions n/a
Weakness classification (CWE)
Public proof-of-concept exploits
References
- cve@mitre.org (Product)
- cve@mitre.org (Product)
- cve@mitre.org (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.