{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "24.11.17"
              },
              {
                "introduced": "25.11.00"
              },
              {
                "fixed": "25.11.06"
              },
              {
                "introduced": "26.05.00"
              },
              {
                "fixed": "26.05.01"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "926655c0a86da8f2255bfbaa0983a7b120a83bef"
            },
            {
              "introduced": "3f2987eb19f7ac1987591d8e9b01961c39405b39"
            },
            {
              "fixed": "ed96c9f656546909ce4c52b5eba2e74ab6e3b7e6"
            },
            {
              "introduced": "e4bb3afa5bc1a9951438c1963b12a27b5d16980c"
            },
            {
              "fixed": "dacce7d3fc15860d26d06444c1f5c9a2d0d6a4a9"
            }
          ],
          "repo": "https://gitlab.com/koha-community/Koha",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "TuranSec",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70372.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "25.05.00"
          },
          {
            "fixed": "25.05.12"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "Koha's reports/bor_issues_top.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Criteria parameter is only normalized by a table-name prefix and is never whitelisted, landing verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY); Filter values are concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments, and the Limit parameter is appended raw to a LIMIT clause. An authenticated staff user holding the reports module permission can inject arbitrary SQL and read any table reachable by the Koha database user, including borrowers (password hashes, two-factor secrets, personal data), api_keys, and sessions.",
  "id": "CVE-2026-70372",
  "modified": "2026-08-06T03:31:33.700804277Z",
  "published": "2026-08-04T13:00:12.836Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://download.koha-community.org/koha-25.05.12.tar.gz"
    },
    {
      "type": "WEB",
      "url": "https://koha-community.org/"
    },
    {
      "type": "WEB",
      "url": "https://koha-community.org/koha-25-05-12-released/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70372.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-70372"
    },
    {
      "type": "REPORT",
      "url": "https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42369"
    },
    {
      "type": "PACKAGE",
      "url": "https://gitlab.com/koha-community/Koha"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Koha: SQL Injection in reports/bor_issues_top.pl"
}