CNVD-2022-08370

Vulnerability from cnvd - Published: 2022-02-05
VLAI
Title
Apache Log4j SQL注入漏洞
Description
Apache Log4j是美国阿帕奇(Apache)基金会的一款基于Java的开源日志记录工具。 Apache Log4j 存在SQL注入漏洞,该漏洞源于Log4j 1.2.x中的JDBCAppender接受SQL语句作为配置参数,其中要插入的值是来自 PatternLayout 的转换器。 消息转换器 \\%m 可能总是包含在内。 攻击者可利用该漏洞通过将精心制作的字符串输入到记录的应用程序的输入字段或标题中来操纵SQL,从而允许执行意外的SQL查询。
Severity
中
Patch Name
Apache Log4j SQL注入漏洞的补丁
Patch Description
Apache Log4j是美国阿帕奇(Apache)基金会的一款基于Java的开源日志记录工具。 Apache Log4j 存在SQL注入漏洞,该漏洞源于Log4j 1.2.x中的JDBCAppender接受SQL语句作为配置参数,其中要插入的值是来自 PatternLayout 的转换器。 消息转换器 \\%m 可能总是包含在内。 攻击者可利用该漏洞通过将精心制作的字符串输入到记录的应用程序的输入字段或标题中来操纵SQL,从而允许执行意外的SQL查询。目前,供应商发布了安全公告及相关补丁信息,修复了此漏洞。
Formal description

目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: https://logging.apache.org/log4j/2.x/download.html

Reference
https://nvd.nist.gov/vuln/detail/CVE-2022-23305
Impacted products
Name
Apache Log4j >=1.2,<=1.2.17
Show details on source website

{
  "cves": {
    "cve": {
      "cveNumber": "CVE-2022-23305",
      "cveUrl": "https://nvd.nist.gov/vuln/detail/CVE-2022-23305"
    }
  },
  "description": "Apache Log4j\u662f\u7f8e\u56fd\u963f\u5e15\u5947\uff08Apache\uff09\u57fa\u91d1\u4f1a\u7684\u4e00\u6b3e\u57fa\u4e8eJava\u7684\u5f00\u6e90\u65e5\u5fd7\u8bb0\u5f55\u5de5\u5177\u3002\n\nApache Log4j \u5b58\u5728SQL\u6ce8\u5165\u6f0f\u6d1e\uff0c\u8be5\u6f0f\u6d1e\u6e90\u4e8eLog4j 1.2.x\u4e2d\u7684JDBCAppender\u63a5\u53d7SQL\u8bed\u53e5\u4f5c\u4e3a\u914d\u7f6e\u53c2\u6570\uff0c\u5176\u4e2d\u8981\u63d2\u5165\u7684\u503c\u662f\u6765\u81ea PatternLayout \u7684\u8f6c\u6362\u5668\u3002 \u6d88\u606f\u8f6c\u6362\u5668 \\\\%m \u53ef\u80fd\u603b\u662f\u5305\u542b\u5728\u5185\u3002 \u653b\u51fb\u8005\u53ef\u5229\u7528\u8be5\u6f0f\u6d1e\u901a\u8fc7\u5c06\u7cbe\u5fc3\u5236\u4f5c\u7684\u5b57\u7b26\u4e32\u8f93\u5165\u5230\u8bb0\u5f55\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u8f93\u5165\u5b57\u6bb5\u6216\u6807\u9898\u4e2d\u6765\u64cd\u7eb5SQL\uff0c\u4ece\u800c\u5141\u8bb8\u6267\u884c\u610f\u5916\u7684SQL\u67e5\u8be2\u3002",
  "formalWay": "\u76ee\u524d\u5382\u5546\u5df2\u7ecf\u53d1\u5e03\u4e86\u5347\u7ea7\u8865\u4e01\u4ee5\u4fee\u590d\u8fd9\u4e2a\u5b89\u5168\u95ee\u9898\uff0c\u8bf7\u5230\u5382\u5546\u7684\u4e3b\u9875\u4e0b\u8f7d\uff1a\r\nhttps://logging.apache.org/log4j/2.x/download.html",
  "isEvent": "\u901a\u7528\u8f6f\u786c\u4ef6\u6f0f\u6d1e",
  "number": "CNVD-2022-08370",
  "openTime": "2022-02-05",
  "patchDescription": "Apache Log4j\u662f\u7f8e\u56fd\u963f\u5e15\u5947\uff08Apache\uff09\u57fa\u91d1\u4f1a\u7684\u4e00\u6b3e\u57fa\u4e8eJava\u7684\u5f00\u6e90\u65e5\u5fd7\u8bb0\u5f55\u5de5\u5177\u3002\r\n\r\nApache Log4j \u5b58\u5728SQL\u6ce8\u5165\u6f0f\u6d1e\uff0c\u8be5\u6f0f\u6d1e\u6e90\u4e8eLog4j 1.2.x\u4e2d\u7684JDBCAppender\u63a5\u53d7SQL\u8bed\u53e5\u4f5c\u4e3a\u914d\u7f6e\u53c2\u6570\uff0c\u5176\u4e2d\u8981\u63d2\u5165\u7684\u503c\u662f\u6765\u81ea PatternLayout \u7684\u8f6c\u6362\u5668\u3002 \u6d88\u606f\u8f6c\u6362\u5668 \\\\%m \u53ef\u80fd\u603b\u662f\u5305\u542b\u5728\u5185\u3002 \u653b\u51fb\u8005\u53ef\u5229\u7528\u8be5\u6f0f\u6d1e\u901a\u8fc7\u5c06\u7cbe\u5fc3\u5236\u4f5c\u7684\u5b57\u7b26\u4e32\u8f93\u5165\u5230\u8bb0\u5f55\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u8f93\u5165\u5b57\u6bb5\u6216\u6807\u9898\u4e2d\u6765\u64cd\u7eb5SQL\uff0c\u4ece\u800c\u5141\u8bb8\u6267\u884c\u610f\u5916\u7684SQL\u67e5\u8be2\u3002\u76ee\u524d\uff0c\u4f9b\u5e94\u5546\u53d1\u5e03\u4e86\u5b89\u5168\u516c\u544a\u53ca\u76f8\u5173\u8865\u4e01\u4fe1\u606f\uff0c\u4fee\u590d\u4e86\u6b64\u6f0f\u6d1e\u3002",
  "patchName": "Apache Log4j SQL\u6ce8\u5165\u6f0f\u6d1e\u7684\u8865\u4e01",
  "products": {
    "product": "Apache Log4j \u003e=1.2\uff0c\u003c=1.2.17"
  },
  "referenceLink": "https://nvd.nist.gov/vuln/detail/CVE-2022-23305",
  "serverity": "\u4e2d",
  "submitTime": "2022-01-20",
  "title": "Apache Log4j SQL\u6ce8\u5165\u6f0f\u6d1e"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.