nday
CVE-2024-36039 GHSA-v9hf-5j83-6xpp

PyMySQL SQL Injection vulnerability

揭露 909 天後出現修補紀錄。已於 pymysql 1.1.1 修補。四個 PoC 來源皆未收錄。目前未列入 CISA KEV。

tags weakness typeSQL injection accessnetworkno user interaction ecosystemPyPI
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

SQL injection
CWE-89, stated by the ADP CISA-ADP、NVD, republishing 134c704f-9b21-4f2e-91b3-4a467353bcc0 與 GitHub advisory GHSA-v9hf-5j83-6xpp
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L (CVSS 3.1) from the ADP CISA-ADP
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L (CVSS 3.1) from the ADP CISA-ADP
PyPI
GHSA-v9hf-5j83-6xpp: pip packages pymysql
目前階段
PAT
揭露時間
揭露 → 修補
T+909d
CVSS
6.3 MEDIUM v3.1

生命週期

橫軸 UTC;點=精確到分鐘,寬條=僅日期,空心=不明或推斷。
時間不明
DIS揭露
2024-05-21T00:00Z
PAT修補
2026-11-16T17:01Z
ANA分析
尚無紀錄
POCPoC
尚無紀錄
ITW遭利用
尚無紀錄
KEVKEV
尚無紀錄

摘要

PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:L
Low: ordinary user privileges
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

CVSS 3.1 vector from the CVE record, added by the ADP CISA-ADP.

事件紀錄

+DIS揭露

CVE 紀錄由 mitre 發布。CVSS 6.3,屬中風險等級。

來源 cvelist · nday 於 批次匯入 · 原始
{
  "id": 334274,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2024-36039",
  "occurred_at": "2024-05-21T00:00:00Z",
  "observed_at": "2026-11-13T05:38:34.075966Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "adp:CISA-ADP",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L",
      "version": "3.1",
      "base_score": 6.3,
      "base_severity": "MEDIUM"
    },
    "ssvc": {
      "timestamp": "2024-06-12T15:05:27.823630Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2024-05-21T00:00:00.000Z",
    "assigner_short_name": "mitre"
  }
}
來源無時間;nday 即時觀測
+PAT已有修補

公告列出的修補版本:pymysql 1.1.1。公告附有修補 commit。公告發布於 ;修補本身的釋出時間沒有紀錄。

來源 ghsa GHSA-v9hf-5j83-6xpp · nday 於 即時觀測 · 原始
{
  "id": 473093,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-v9hf-5j83-6xpp",
  "occurred_at": null,
  "observed_at": "2026-11-16T17:01:02.573287Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-v9hf-5j83-6xpp",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 9.8,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Improper Neutralization of Special Elements used in an SQL Command",
        "cwe_id": "CWE-89"
      }
    ],
    "ghsa_id": "GHSA-v9hf-5j83-6xpp",
    "packages": [
      {
        "name": "pymysql",
        "ecosystem": "pip",
        "first_patched_version": "1.1.1",
        "vulnerable_version_range": "< 1.1.1"
      }
    ],
    "severity": "critical",
    "references": [
      "https://nvd.nist.gov/vuln/detail/CVE-2024-36039",
      "https://github.com/PyMySQL/PyMySQL/releases/tag/v1.1.1",
      "https://github.com/PyMySQL/PyMySQL/commit/521e40050cb386a499f68f483fefd144c493053c",
      "https://lists.debian.org/debian-lts-announce/2024/05/msg00017.html",
      "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35VOJS3SRJNLQIO7YTZFNM6RWHIHWTMK",
      "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/23VXBV34GFRICCVYZ6KFMSSWY5UEXCF5",
      "https://github.com/pypa/advisory-database/tree/main/vulns/pymysql/PYSEC-2026-502.yaml",
      "https://pypi.org/project/pymysql",
      "https://github.com/advisories/GHSA-v9hf-5j83-6xpp"
    ],
    "fix_commit_urls": [
      "https://github.com/PyMySQL/PyMySQL/commit/521e40050cb386a499f68f483fefd144c493053c"
    ],
    "github_reviewed_at": "2024-05-21T19:23:15Z",
    "advisory_updated_at": "2026-11-16T16:07:59Z",
    "source_code_location": "https://github.com/PyMySQL/PyMySQL",
    "advisory_published_at": "2024-05-21T18:31:23Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

研究員討論

近 7 天有 0 位研究員提及

名單內研究員在 X 上提及此 CVE 的貼文,照原文呈現,nday 不查核。

尚未收錄名單內研究員在 X 上提及此 CVE 的貼文。

Discussion

0 comments

No comments yet.