CVE-2026-13525

CodeAstro Human Resource Management System Update_Earn_Leave Endpoint Employee_model.php emselectByCode sql injection

Published Jun 29, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was detected in CodeAstro Human Resource Management System 1.0. This issue affects the function emselectByCode of the file application/models/Employee_model.php of the component Update_Earn_Leave Endpoint. The manipulation of the argument emid results in sql injection. The attack can be launched remotely. The exploit is now public and may be used.

Analysis

AI-generated

Technical impact

An input parameter named emid is passed to the emselectByCode function of the Update_Earn_Leave endpoint and is concatenated directly into a SQL statement. This allows an attacker to inject arbitrary SQL code, gaining the ability to read, modify, or delete employee records stored in the database. The vulnerability is a classic instance of CWE‑74 and CWE‑89, where untrusted input reaches a database query without proper sanitization. Compromise of the HRMS database would affect confidentiality, integrity, and availability of personnel information.

Affected Systems

The vulnerability impacts CodeAstro Human Resource Management System version 1.0. Any deployment of this product that incorporates the unsanitized emid input in the Update_Earn_Leave endpoint is susceptible, as no later releases are mentioned.

Risk and Exploitability

The CVSS score of 5.3 indicates medium severity, while the EPSS score is not available, leaving the exact exploitation likelihood uncertain. The public exploit code referenced in external resources demonstrates that a remote attacker possessing network access to the API can trigger the injection. Although the vulnerability is not listed in the CISA KEV catalog, the existence of a working exploit raises the risk that attacks may spread if the system remains unpatched.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the CodeAstro Human Resource Management System to a version that resolves the emselectByCode input handling, if a vendor patch is available.
  • Modify the emselectByCode function to employ parameterized queries or prepared statements so that the emid value is never concatenated into raw SQL.
  • Restrict the database user's privileges to the least amount required, such as only SELECT, INSERT, UPDATE, and DELETE on the relevant tables, to limit the impact of a successful injection.
  • Deploy application and database monitoring alerts to detect unusual query patterns that may indicate injection attempts.

Generated by OpenCVE AI on June 29, 2026 at 03:50 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 vulnerability was detected in CodeAstro Human Resource Management System 1.0. This issue affects the function emselectByCode of the file application/models/Employee_model.php of the component Update_Earn_Leave Endpoint. The manipulation of the argument emid results in sql injection. The attack can be launched remotely. The exploit is now public and may be used.
Title CodeAstro Human Resource Management System Update_Earn_Leave Endpoint Employee_model.php emselectByCode sql injection
First Time appeared Codeastro
Codeastro human Resource Management System
Weaknesses CWE-74
CWE-89
CPEs cpe:2.3:a:codeastro:human_resource_management_system:*:*:*:*:*:*:*:*
Vendors & Products Codeastro
Codeastro human Resource 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
Jun 29, 2026, 11:09 AM
Reserved
Jun 28, 2026, 7:51 AM
Status
Deferred
Published
Jun 29, 2026, 3:16 AM
Modified
Oct 25, 2026, 5:10 PM