Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-20120

ThinkPHP v3.2.3 and below contains a SQL injection vulnerability which is triggered when the array is not passed to the "where" and "query" methods.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-20120
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:53 UTC · Revision 1

Source evidence

CVE-2020-20120

core-osv · Original source

Published 28 Sept 2021, 23:15 UTC

ThinkPHP v3.2.3 and below contains a SQL injection vulnerability which is triggered when the array is not passed to the "where" and "query" methods.

osv:CVE-2020-20120
Complete source record
{
  "id": "f6185e70a1dcd3d554a0c294466328028b06f362ab97f4ee35137823388a6c6e",
  "url": "https://osv.dev/vulnerability/CVE-2020-20120",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-20120",
    "summary": "ThinkPHP v3.2.3 and below contains a SQL injection vulnerability which is triggered when the array is not passed to the \"where\" and \"query\" methods.",
    "evidence": "osv:CVE-2020-20120",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2020-20120",
      "aliases": [
        "CVE-2020-20120",
        "GHSA-m7h5-fjjq-559f"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/top-think/thinkphp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "94d5c5ef980be6a3f31d6938e5cbf997f6cdb4a2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.2.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.2.3",
            "3.2.2",
            "3.2.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-20120.json"
          }
        }
      ],
      "modified": "2026-10-24T10:50:37.971528081Z",
      "provider": "osv",
      "references": [
        "https://github.com/top-think/thinkphp/issues/553"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "thinkphp:thinkphp",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "3.2.3"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-20120",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 442369,
  "published_at": "2021-09-28T23:15:07.007+00:00"
}