CVE-2018-18546

Source
https://cve.org/CVERecord?id=CVE-2018-18546
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18546.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-18546
Aliases
Published
2018-10-21T01:29:00Z
Modified
2026-10-24T10:47:39Z
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 3.2.4 has SQL Injection via the order parameter because the Library/Think/Db/Driver.class.php parseOrder function mishandles the key variable.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:a:thinkphp:thinkphp:3.2.4:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "3.2.4"
                        },
                        {
                            "last_affected":  "3.2.4"
                        }
                    ],
                    "source":  "CPE_STRING"
                }
            ],
            "vendor_product":  "thinkphp:thinkphp"
        }
    ]
}
References

Affected packages

Git / github.com/top-think/thinkphp

Affected ranges

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

Affected versions

3.*
3.2.4

Database specific

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