Junglewise Threat Intelligence

CVE-2026-91995: pig authentication bypass in password reset endpoint

CVE-2026-91995 · Severity: critical · CVSS 9.1 · Published 2026-09-15

Executive brief

pig is an RBAC permission management system used to control user access and roles in Spring Cloud applications. A critical flaw in the password reset feature allows attackers to reset any user's password—including the administrator account—without providing valid credentials. This enables complete takeover of the system and full administrative control.

Technical details

The vulnerability combines two flaws in SysRegisterController and SysUserServiceImpl: (1) the /register/password endpoint is exposed without authentication due to @Inner(value = false) configuration that adds it to Spring Security's permitAll() list, and (2) the checkPassword() method returns R.ok(false, msg) on password mismatch instead of R.failed(msg), causing isOk() to always return true regardless of the boolean data field. This causes the password verification guard in resetUserPassword() to never block the update, allowing any attacker with network access to reset any account's password by submitting a username with any incorrect password value. No authentication token is required. The fix requires replacing R.ok(false, msg) with R.failed(msg) and adding authentication requirements to the controller.

Affected products

  • pig-mesh pig before 4.1.0

Timeline

  • 2026-06-17: disclosed: Vulnerability opened as pig-mesh/pig#1249
  • 2026-07-20: other: Issue closed as completed
  • 2026-07-21: other: Reported to maintainers via email
  • 2026-09-14: disclosed: Public disclosure after 14 September (no maintainer response)
  • 2026-09-15: advisory: CVE-2026-91995 published

References

Related threats