CVE-2026-31070

Privilege Escalation via Unauthenticated Role Assignment in Pharmacy Management System

Published May 19, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
The LalanaChami Pharmacy Management System (commit 5c3d028) allows unauthenticated remote attackers to escalate privileges by self-assigning an administrative role during registration. The /api/user/signup endpoint fails to validate the role parameter in the request body

Analysis

AI-generated

Technical impact

Unauthenticated remote attackers can create an account that claims administrative authority by supplying a privileged role during the signup process. The /api/user/signup endpoint does not verify the role field, allowing an attacker to assign an administrator role without prior authentication. This flaw is a classic privilege escalation weakness and is consistent with identified weaknesses in privilege control and authorization.

Affected Systems

The vulnerability exists in LalanaChami Pharmacy Management System, affecting any deployment running commit 5c3d028 or earlier before the patch. All instances that expose the signup API to the public internet are susceptible, regardless of other security controls.

Risk and Exploitability

An attacker can send a simple HTTP POST request to the public signup route, embed an administrative role value, and register successfully. No authentication or special credentials are required, making the attack trivial and automated. The CVSS score of 9.8 denotes severe impact, but the EPSS score below 1% indicates a relatively low likelihood of exploitation in the field. The vulnerability is not currently listed in the CISA KEV catalog, yet the potential for uncontrolled administrative access remains high.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Modify the signup route to enforce strict role validation, permitting only the default non‑admin role for new accounts.
  • Remove the client‑supplied role field from the registration payload or treat any supplied role as a server‑generated value based on a predefined user type.
  • Introduce logging and alerting for account creation events, and flag any new account with administrative privileges for manual review.

Generated by OpenCVE AI on May 20, 2026 at 18:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Privilege Escalation via Unauthenticated Role Assignment in Pharmacy Management System
Type Values Removed Values Added
Title Unauthenticated Administrator Role Assignment in LalanaChami Pharmacy Management System
Weaknesses CWE-284
CWE-285
Type Values Removed Values Added
Weaknesses CWE-269
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Lalanachami
Lalanachami pharmacy Management System
Vendors & Products Lalanachami
Lalanachami pharmacy Management System
Type Values Removed Values Added
Title Unauthenticated Administrator Role Assignment in LalanaChami Pharmacy Management System
Weaknesses CWE-284
CWE-285
Type Values Removed Values Added
Description The LalanaChami Pharmacy Management System (commit 5c3d028) allows unauthenticated remote attackers to escalate privileges by self-assigning an administrative role during registration. The /api/user/signup endpoint fails to validate the role parameter in the request body
References
Weaknesses
  • CWE-269

    Improper Privilege Management

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 20, 2026, 1:55 PM
Reserved
Mar 9, 2026, 12:00 AM
Status
Deferred
Published
May 19, 2026, 4:16 PM
Modified
Jul 24, 2026, 12:10 PM