---
id: CVE-2026-62362
title: >-
  PeerBanHelper: SQL injection via ${field} interpolation in MyBatis mapper for
  analysis endpoint
summary: >-
  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 …
severity: medium
cvss: 4.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-89
vendor: PBH-BTN
product: PeerBanHelper
affected:
  - 'PeerBanHelper >= 5.0.0, < 9.3.15'
published: '2026-10-16'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T16:43:52.058Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-62362'
references:
  - url: >-
      https://github.com/PBH-BTN/PeerBanHelper/security/advisories/GHSA-pc89-mfwm-hj9x
    label: >-
      https://github.com/PBH-BTN/PeerBanHelper/security/advisories/GHSA-pc89-mfwm-hj9x
  - url: >-
      https://github.com/PBH-BTN/PeerBanHelper/commit/bec34c8b93c6ea3a3bc2ad992aedd41b95cd400a
    label: >-
      https://github.com/PBH-BTN/PeerBanHelper/commit/bec34c8b93c6ea3a3bc2ad992aedd41b95cd400a
  - url: 'https://github.com/PBH-BTN/PeerBanHelper/releases/tag/v9.3.15'
    label: 'https://github.com/PBH-BTN/PeerBanHelper/releases/tag/v9.3.15'
tags:
  - cve.org
ingestedAt: '2026-10-16T17:24:46.893Z'
---

## Overview

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.

## Affected

- `PeerBanHelper >= 5.0.0, < 9.3.15`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
