CVE-2026-9542

CodeAstro Leave Management System add_staff.php sql injection

Published May 26, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A weakness has been identified in CodeAstro Leave Management System 1.0. The affected element is an unknown function of the file /admin/add_staff.php. Executing a manipulation of the argument email_id can lead to sql injection. The attack can be launched remotely. The exploit has been made available to the public and could be used for attacks.

Analysis

AI-generated

Technical impact

The flaw resides in the administration script that processes the email_id field in add_staff.php. An attacker supplying crafted input can inject SQL code, enabling unauthorized database queries or modifications. This weakness permits data disclosure, alteration, or potential escalation of privileges if the injected commands succeed.

Affected Systems

The vulnerability affects CodeAstro Leave Management System version 1.0, specifically the add_staff.php module used by administrators to add staff members. The issue is present in the production or development installations where the script is deployed without input sanitization.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity, and the lack of an EPSS score means the exact exploitation probability is unknown. The vulnerability is not listed in CISA’s KEV catalog, suggesting no widespread exploitation has been documented. Nevertheless, the attack can be launched remotely, and publicly available exploits exist, raising the risk of credentialed or unauthenticated exploitation if the target system is exposed to the internet.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply any available vendor patch or update to a newer, secure version of the CodeAstro Leave Management System.
  • If a patch is not available, modify the add_staff.php script to use parameterized queries or prepared statements for processing email_id input.
  • Implement strict input validation to reject non-URI–encoded email addresses and escape special characters before database usage.
  • Restrict admin access to trusted IP ranges and enforce strong authentication mechanisms to limit exposure of the vulnerable endpoint.

Generated by OpenCVE AI on May 26, 2026 at 15:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A weakness has been identified in CodeAstro Leave Management System 1.0. The affected element is an unknown function of the file /admin/add_staff.php. Executing a manipulation of the argument email_id can lead to sql injection. The attack can be launched remotely. The exploit has been made available to the public and could be used for attacks.
Title CodeAstro Leave Management System add_staff.php sql injection
First Time appeared Codeastro
Codeastro leave Management System
Weaknesses CWE-74
CWE-89
CPEs cpe:2.3:a:codeastro:leave_management_system:*:*:*:*:*:*:*:*
Vendors & Products Codeastro
Codeastro leave Management System
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
May 28, 2026, 2:56 PM
Reserved
May 26, 2026, 5:54 AM
Status
Deferred
Published
May 26, 2026, 2:16 PM
Modified
Jul 23, 2026, 11:10 AM