GHSA-65fg-84f6-3jq3

Suggest an improvement
Source
https://github.com/advisories/GHSA-65fg-84f6-3jq3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-65fg-84f6-3jq3/GHSA-65fg-84f6-3jq3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-65fg-84f6-3jq3
Aliases
Published
2022-01-21T23:26:47Z
Modified
2024-02-16T08:18:09.971724Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
SQL Injection in Log4j 1.2.x
Details

By design, the JDBCAppender in Log4j 1.2.x accepts an SQL statement as a configuration parameter where the values to be inserted are converters from PatternLayout. The message converter, %m, is likely to always be included. This allows attackers to manipulate the SQL by entering crafted strings into input fields or headers of an application that are logged allowing unintended SQL queries to be executed. Note this issue only affects Log4j 1.x when specifically configured to use the JDBCAppender, which is not the default. Beginning in version 2.0-beta8, the JDBCAppender was re-introduced with proper support for parameterized SQL queries and further customization over the columns written to in logs. Apache Log4j 1.2 reached end of life in August 2015. Users should upgrade to Log4j 2 as it addresses numerous other issues from the previous versions.

Database specific
{
    "nvd_published_at": "2022-01-18T16:15:00Z",
    "cwe_ids": [
        "CWE-89"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-01-19T22:31:49Z"
}
References

Affected packages

Maven / log4j:log4j

Package

Name
log4j:log4j
View open source insights on deps.dev
Purl
pkg:maven/log4j/log4j

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.2.17

Affected versions

1.*

1.1.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.8
1.2.9
1.2.11
1.2.12
1.2.13
1.2.14
1.2.15
1.2.16
1.2.17

Maven / org.zenframework.z8.dependencies.commons:log4j-1.2.17

Package

Name
org.zenframework.z8.dependencies.commons:log4j-1.2.17
View open source insights on deps.dev
Purl
pkg:maven/org.zenframework.z8.dependencies.commons/log4j-1.2.17

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
2.0

Affected versions

2.*

2.0