Skip to main content

Frappe HR CVE-2026-54524

| EUVDEUVD-2026-82390 HIGH
SQL Injection (CWE-89)
2026-09-17 security-advisories@github.com
7.1
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with HR User role
  2. Delivery
    Open Salary Payments Based on Payment Mode report
  3. Exploit
    Inject SQL via report filter value
  4. Execution
    Malicious clause interpolated into query
  5. Impact
    Extract arbitrary database records

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated Frappe HR account holding the HR User role (PR:L) with access to the payroll reporting feature. The attacker must reach the Salary Payments Based on Payment Mode report and control one of its filter inputs, which get_conditions concatenates into a string-formatted SQL query in get_data. No user interaction by a victim is needed (UI:N) and no non-default configuration is required - the vulnerable report ships in Frappe HR prior to 16.7.0. Limiting factors: the HR User role requirement means this is an insider or compromised-privileged-account vector rather than open unauthenticated access, and impact is limited to reading database data (no write or denial of service).

Impact

This is a genuine but access-gated confidentiality risk, not a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N, score 7.1) is internally consistent with the description: exploitation is over the network with low complexity, but requires an authenticated user holding the HR User role (PR:L), and impact is confidentiality-only - arbitrary read of database contents via SQL injection, with no integrity or availability impact claimed (VI:N/VA:N). No EPSS score, CISA KEV listing, or public proof-of-concept was provided in the intelligence set; the references are limited to the vendor patch commit, the fixing PR (#4515), the v16.7.0 release, and the GitHub Security Advisory (GHSA-2gv7-x4h2-3737). Exploitation status is therefore: no public exploit identified at time of analysis. The realistic priority is moderate: the SQL injection is real and the fix is confirmed in source, but the PR:L gate (an insider or a compromised HR-privileged account) plus the confidentiality-only impact keep this below the profile of an unauthenticated RCE. One data-consistency caveat worth flagging: the CVE description names hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.py, but the supplied commit diff shows the identical string-formatted-SQL pattern being remediated in professional_tax_deductions.py and provident_fund_deductions.py - indicating a class of sibling report vulnerabilities fixed together in the same commit, so defenders should treat the whole payroll report family as affected rather than a single file.

Exploit ScenarioDerived

An authenticated user with the HR User role (for example a disgruntled HR staffer or an attacker who has phished/compromised such an account) opens the Salary Payments Based on Payment Mode report and supplies a crafted value in one of the report filters. Because get_conditions builds filter clauses from these user-controlled values and get_data interpolates them into a string-formatted SQL query, the attacker injects SQL to read arbitrary tables - salaries, PII, credentials, or other tenant data - well beyond what their role should expose. No public exploit code was identified, but the fix commit publicly reveals the vulnerable string-formatting pattern, lowering the bar to reproduce.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 17, 2026

SQL injection in the 'Salary Payments Based on Payment Mode' payroll report in Frappe HR (HRMS) before 16.7.0 allows an authenticated user holding the HR User role to read arbitrary data from the underlying database. The report builds its WHERE clause by concatenating user-controlled filter values into a string-formatted SQL query, so a payroll-privileged account - or an attacker who has compromised one - can extract records far outside the reporting scope, while leaving data integrity and availability intact. No public exploit code has been identified at time of analysis and there is no evidence of active exploitation; the vendor-released fix lands in 16.7.0.

RemediationAI

Vendor-released patch: 16.7.0 - upgrade Frappe HR (hrms) to v16.7.0 or later, which replaces the string-formatted SQL in the Salary Payments Based on Payment Mode report (and the professional tax and provident fund deduction reports) with parameterized frappe.query_builder calls; apply the update through the normal bench update workflow and restart the services, and verify the pinned app version afterwards. See the release notes at https://github.com/frappe/hrms/releases/tag/v16.7.0, the fix in https://github.com/frappe/hrms/pull/4515 and commit https://github.com/frappe/hrms/commit/b16148531954531a448dafdff20dc61882430ee9, and the advisory https://github.com/frappe/hrms/security/advisories/GHSA-2gv7-x4h2-3737. If upgrading cannot be done immediately, the practical compensating controls are to audit and strip the HR User role from accounts that do not genuinely require payroll reporting (trade-off: reduced reporting capability for legitimate staff, but it removes the PR:L prerequisite entirely), to narrow the report's role restrictions through Frappe Role Permission Manager or a permission query condition (trade-off: payroll staff lose the report, which may disrupt operations), and to temporarily disable the report via a custom app or server script override of get_data (trade-off: the report becomes unusable rather than merely restricted). Because exploitation is read-only, also consider reviewing payroll report access logs for anomalous filter parameters as a detection measure; generic WAF SQLi signatures offer limited protection since the payload travels in authenticated application parameters and not in the URL path.

Affected VersionsENISA

hrms < 16.7.0

Affected Packages

euvd hrms fix: 16.7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Frappe HR (the 'hrms' app) is the open-source HR and payroll module for the Frappe/ERPNext platform, which stores doctypes such as Salary Slip, Salary Detail and Salary Component in a MariaDB/MySQL backend accessed through frappe.db.sql. CWE-89 (SQL Injection) arises here because the report's get_conditions helper in hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.py assembled filter fragments with '%s'-style string interpolation, and get_data then embedded the resulting string directly into a formatted query rather than binding parameters. Any filter value the HR User can supply therefore becomes executable SQL, enabling UNION/boolean-style extraction of arbitrary tables. The referenced upstream commit b16148531954531a448dafdff20dc61882430ee9 shows the root-cause class being eliminated by refactoring to the frappe.query_builder (DocType/qb) API with bound, structured where() clauses, and notably the same commit also converts the professional_tax_deductions and provident_fund_deductions payroll reports - evidence that the insecure string-formatting pattern was repeated across multiple report modules in the same release line, which is why a full upgrade rather than a single-file patch is the correct fix. Exploitation requires the HR User role (CVSS PR:L, authenticated) and the impact profile is read-only (C:H/I:N/A:N), consistent with classic data-exfiltration SQLi rather than code execution or tampering.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network-reachable authenticated report accessible to HR User role gives AV:N/AC:L/PR:L/UI:N; SQL injection allows arbitrary data read (C:H) with no integrity or availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 17, 2026 - 20:19 EUVD
CVE Published
Sep 17, 2026 - 19:16 cve.org
HIGH 7.1

DescriptionCVE.org

Frappe HR is an open-source human resources management solution (HRMS). Prior to 16.7.0, an authenticated user with the HR User role can inject SQL through filters in the Salary Payments Based on Payment Mode report. In hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.py, get_conditions constructs filter clauses from user-controlled values and get_data incorporates those clauses into a string-formatted SQL query, allowing extraction of arbitrary database data. This issue is fixed in 16.7.0.

Technical POC Analysis

CWE-89 (SQL injection).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A SQL injection flaw in Frappe HR (HRMS) - specifically the 'Salary Payments Based on Payment Mode' payroll report - could allow an account holding the HR User role to pull arbitrary records from the entire underlying database rather than only the payroll data that report is meant to display. Because the affected system holds employee, salary, and payment information, any successful misuse represents a broad confidentiality exposure of workforce and financial data, and remediation requires a version upgrade to Frappe HR (HRMS) 16.7.0. Leadership should care because the same weakness can be exercised by any compromised or over-provisioned HR account, turning a routine reporting function into a database-wide read channel.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
popular open-source Frappe/ERPNext HRMS module, common but not ubiquitous
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy