GHSA-7xfj-4jpg-58vf

Suggest an improvement
Source
https://github.com/advisories/GHSA-7xfj-4jpg-58vf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7xfj-4jpg-58vf/GHSA-7xfj-4jpg-58vf.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-7xfj-4jpg-58vf
Aliases
Published
2022-05-14T01:53:42Z
Modified
2023-11-01T04:49:13.326166Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
ThinkPHP SQLi Vulnerability
Details

ThinkPHP 5.1.25 has SQL Injection via the count parameter because the library/think/db/Query.php aggregate function mishandles the aggregate variable. NOTE: a backquote character is required in the attack URI.

Database specific
{
    "nvd_published_at": "2018-10-19T20:29:00Z",
    "cwe_ids": [
        "CWE-89"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2023-07-25T17:52:15Z"
}
References

Affected packages

Packagist / topthink/framework

Package

Name
topthink/framework
Purl
pkg:composer/topthink/framework

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
5.1.25

Affected versions

5.*

5.0-rc1
5.0-rc2
5.0-rc3
5.0-rc4
5.0

v5.*

v5.0.1
v5.0.2
v5.0.3
v5.0.4
v5.0.5
v5.0.6
v5.0.7
v5.0.8
v5.0.9
v5.0.10
v5.0.11
v5.0.12
v5.0.13
v5.0.14
v5.0.15
v5.0.16
v5.0.17
v5.0.18
v5.0.19
v5.0.20
v5.0.21
v5.0.22
v5.0.23
v5.0.24
v5.0.25
v5.1-beta.1
v5.1-rc.1
v5.1-rc.2
v5.1-rc.3
v5.1.0
v5.1.1
v5.1.2
v5.1.3
v5.1.4
v5.1.5
v5.1.6
v5.1.7
v5.1.8
v5.1.9
v5.1.10
v5.1.11
v5.1.12
v5.1.13
v5.1.14
v5.1.15
v5.1.16
v5.1.17
v5.1.18
v5.1.19
v5.1.20
v5.1.21
v5.1.22
v5.1.23
v5.1.24
v5.1.25