CVE-2026-62362

PeerBanHelper: SQL injection via ${field} interpolation in MyBatis mapper for analysis endpoint

Published Oct 16, 2026 CVSS 3.1 · 4.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 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
First Time appeared Pbh-btn
Pbh-btn peerbanhelper
Vendors & Products Pbh-btn
Pbh-btn peerbanhelper
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'}

Weaknesses
  • CWE-89

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 28, 2026, 6:05 PM
Reserved
Jul 13, 2026, 10:04 PM
Status
Deferred
Published
Oct 16, 2026, 5:17 PM
Modified
Oct 28, 2026, 7:17 PM