CVE-2018-18530

Source
https://cve.org/CVERecord?id=CVE-2018-18530
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18530.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-18530
Aliases
Published
2018-10-19T20:29:00Z
Modified
2026-10-24T10:31:06Z
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
[none]
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
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:a:thinkphp:thinkphp:5.1.25:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "5.1.25"
                        },
                        {
                            "last_affected":  "5.1.25"
                        }
                    ],
                    "source":  "CPE_STRING"
                }
            ],
            "vendor_product":  "thinkphp:thinkphp"
        }
    ]
}
References

Affected packages

Git / github.com/top-think/framework

Affected ranges

Type
GIT
Repo
https://github.com/top-think/framework
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:thinkphp:thinkphp:5.1.25:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "5.1.25"
                },
                {
                    "last_affected":  "5.1.25"
                }
            ],
            "source":  "CPE_STRING"
        }
    ]
}

Affected versions

5.*
5.1.25
v5.*
v5.1.25

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18530.json"