Description
PeerBanHelper automatically blocks unwanted, leeching, and abnormal BitTorrent peers using customizable and cloud rules. From 5.0.0 until 9.3.15, the /api/statistic/analysis/field endpoint accepts a crafted field query parameter from an authenticated user and passes it to countField or sumField. The mapField() method forwards unrecognized field names without sanitization, so unrecognized field names are interpolated into SQL through ${field} across the SQLite, MySQL, and PostgreSQL mappers. Successful exploitation can read all data in the PeerBanHelper database. This issue is fixed in version 9.3.15.
Published: 2026-10-16
Score: 4.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Database Disclosure
Action: Patch Immediately
AI Analysis

Impact

PeerBanHelper allows a crafted user-supplied field query parameter to the /api/statistic/analysis/field endpoint, which is forwarded unvalidated to the countField or sumField methods. The mapField() routine does not sanitize unknown field names, resulting in direct string interpolation into SQL commands via ${field} in the SQLite, MySQL, and PostgreSQL mappers. This flaw permits an authenticated user to run arbitrary SQL queries and read every table in the PeerBanHelper database. The vulnerability is a classic SQL injection (CWE-89) and can lead to full data exposure.

Affected Systems

The bug affects PeerBanHelper versions 5.0.0 through 9.3.15 released by PBH-BTN. Any deployment using the /api/statistic/analysis/field endpoint with a database backend – SQLite, MySQL, or PostgreSQL – is vulnerable to data disclosure until the release of v9.3.15 or later, which removes the unsanitized field interpolation.

Risk and Exploitability

The CVSS score of 4.9 indicates moderate severity; the EPSS score is not available, so current exploitation likelihood cannot be quantified. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires authenticated access to the API, suggesting that an attacker must first obtain valid credentials or compromise a legitimate user account. Once authenticated, the attacker can directly read all database contents, compromising confidentiality but not system availability.

Generated by OpenCVE AI on October 16, 2026 at 19:40 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PeerBanHelper to version 9.3.15 or later.
  • If an upgrade is not immediately possible, restrict the /api/statistic/analysis/field endpoint to administrators only or disable it entirely to prevent exploitation.
  • Monitor API logs for unusual field parameter usage and investigate any unauthorized activity.

Generated by OpenCVE AI on October 16, 2026 at 19:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Pbh-btn
Pbh-btn peerbanhelper
Vendors & Products Pbh-btn
Pbh-btn peerbanhelper

Fri, 16 Oct 2026 17:00:00 +0000

Type Values Removed Values Added
Description PeerBanHelper automatically blocks unwanted, leeching, and abnormal BitTorrent peers using customizable and cloud rules. From 5.0.0 until 9.3.15, the /api/statistic/analysis/field endpoint accepts a crafted field query parameter from an authenticated user and passes it to countField or sumField. The mapField() method forwards unrecognized field names without sanitization, so unrecognized field names are interpolated into SQL through ${field} across the SQLite, MySQL, and PostgreSQL mappers. Successful exploitation can read all data in the PeerBanHelper database. This issue is fixed in version 9.3.15.
Title PeerBanHelper: SQL injection via ${field} interpolation in MyBatis mapper for analysis endpoint
Weaknesses CWE-89
References
Metrics cvssV3_1

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


Subscriptions

Pbh-btn Peerbanhelper
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-28T18:05:25.124Z

Reserved: 2026-07-13T22:04:59.677Z

Link: CVE-2026-62362

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-16T17:17:35.720

Modified: 2026-10-28T19:17:37.147

Link: CVE-2026-62362

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T12:54:53Z

Weaknesses
  • CWE-89

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