Skip to main content
VulnerabilityPublished Updated

CVE-2025-29157: petstore · Command Injection

Source CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium.

Data as of 26 Oct 2026, 13:47 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

AI-suggested

  1. Immediate mitigation should include restricting access to the petstore application endpoints, especially from untrusted networks, using network-level controls such as firewalls or VPNs.
  2. Implement custom error handling to avoid disclosing sensitive server information in error messages; configure the server to return generic error pages without revealing internal details.
  3. Apply input validation and sanitization on all endpoints to prevent command injection vulnerabilities, ensuring that user input cannot be interpreted as commands.
  4. Monitor logs for unusual access patterns to non-existent endpoints like /cart, which may indicate probing attempts.
  5. If possible, isolate the petstore application in a segmented network zone to limit potential lateral movement in case of compromise.
  6. Stay alert for official patches or updates from the petstore vendor and apply them promptly once available.
  7. Conduct a thorough security review of the application codebase focusing on command execution functions and error handling mechanisms.
  8. Employ runtime application self-protection (RASP) or web application firewalls (WAF) with rules to detect and block command injection attempts targeting the application.

Description

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

References

Community reviews

Loading reviews…