-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Upgrade org.apache.logging.log4j:log4j-api from 2.13.3 to 2.25.1 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Snyk has created this PR to upgrade org.apache.logging.log4j:log4j-api from 2.13.3 to 2.25.1. See this package in maven: org.apache.logging.log4j:log4j-api See this project in Snyk: https://app.snyk.io/org/venuvasu/project/ab3272c3-714e-4cea-9d67-8c06a10ba3cd?utm_source=github&utm_medium=referral&page=upgrade-pr
|
⏳ Code review in progress. Analyzing for code quality issues and best practices. Detailed findings will be posted upon completion. Using Amazon Q Developer for GitHubAmazon Q Developer1 is an AI-powered assistant that integrates directly into your GitHub workflow, enhancing your development process with intelligent features for code development, review, and transformation. Slash Commands
FeaturesAgentic Chat Code Review CustomizationYou can create project-specific rules for Amazon Q Developer to follow:
Example rule: FeedbackTo provide feedback on Amazon Q Developer, create an issue in the Amazon Q Developer public repository. For more detailed information, visit the Amazon Q for GitHub documentation. Footnotes
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Security Upgrade Review Summary
This PR addresses a critical security vulnerability by upgrading Log4j API from 2.13.3 to 2.25.1, which resolves the infamous Log4Shell vulnerability (CVE-2021-44228) and other serious security issues. This upgrade should be merged as a high priority.
Critical Issues to Address:
-
Incomplete Log4j Upgrade: The
log4j-coredependency remains at the vulnerable version 2.13.3 and must also be updated to 2.25.1 for complete security remediation. -
Additional Security Vulnerabilities: Several other dependencies are outdated and contain known vulnerabilities, including JUnit 4.13.1 and the extremely outdated Spring Boot 2.0.5.RELEASE.
Recommendations:
- Immediate: Update
log4j-coreto 2.25.1 to match thelog4j-apiversion - Short-term: Update JUnit to 4.13.2+ and the JSON library to a recent version
- Long-term: Plan a comprehensive dependency upgrade, especially Spring Boot, which requires more extensive testing
The Log4j upgrade is essential for security, but the incomplete nature of the upgrade leaves the application partially vulnerable. Please ensure all Log4j components are updated together.
| <groupId>org.apache.logging.log4j</groupId> | ||
| <artifactId>log4j-api</artifactId> | ||
| <version>2.13.3</version> | ||
| <version>2.25.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Security Enhancement: This Log4j upgrade is critical for security. Version 2.13.3 contains multiple severe vulnerabilities including Log4Shell (CVE-2021-44228), Log4j2 JNDI features (CVE-2021-45046), and other RCE vulnerabilities123. The upgrade to 2.25.1 addresses these security issues and brings the dependency up to date with 22 versions of improvements and security patches.
Footnotes
-
CVE-2021-44228 (Log4Shell): Remote Code Execution - https://cwe.mitre.org/data/definitions/502.html ↩
-
CVE-2021-45046: Information Disclosure and RCE - https://cwe.mitre.org/data/definitions/20.html ↩
-
CVE-2021-45105: Denial of Service - https://cwe.mitre.org/data/definitions/400.html ↩
| <groupId>org.apache.logging.log4j</groupId> | ||
| <artifactId>log4j-api</artifactId> | ||
| <version>2.13.3</version> | ||
| <version>2.25.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛑 Incomplete Security Upgrade: While this PR updates log4j-api to 2.25.1, the log4j-core dependency (line 65 in the full file) remains at the vulnerable version 2.13.31. Both Log4j dependencies must be updated together to ensure security and compatibility. Consider updating log4j-core to 2.25.1 as well to complete the security remediation.
Footnotes
-
CVE-2021-44228 (Log4Shell): Remote Code Execution - https://cwe.mitre.org/data/definitions/502.html ↩
| <groupId>org.apache.logging.log4j</groupId> | ||
| <artifactId>log4j-api</artifactId> | ||
| <version>2.13.3</version> | ||
| <version>2.25.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outdated Dependencies: Several other dependencies in this project are significantly outdated and may contain security vulnerabilities. The JUnit version 4.13.1 (line 60) should be updated to 4.13.2 or later to address CVE-2020-152501. The JSON library version 20200518 (line 43) is also quite old and should be updated to a more recent version for security and bug fixes.
Footnotes
-
CVE-2020-15250: Temporary file information disclosure - https://cwe.mitre.org/data/definitions/200.html ↩
| <groupId>org.apache.logging.log4j</groupId> | ||
| <artifactId>log4j-api</artifactId> | ||
| <version>2.13.3</version> | ||
| <version>2.25.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outdated Spring Boot Version: The Spring Boot parent version 2.0.5.RELEASE (line 13) is extremely outdated and contains numerous security vulnerabilities1. This version was released in 2018 and is no longer supported. Consider upgrading to a supported Spring Boot 2.7.x or 3.x version, though this will require more extensive testing due to potential breaking changes.
Footnotes
-
Multiple CVEs affect Spring Boot 2.0.x including CVE-2021-22118, CVE-2021-22119 - https://cwe.mitre.org/data/definitions/20.html ↩



Snyk has created this PR to upgrade org.apache.logging.log4j:log4j-api from 2.13.3 to 2.25.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 22 versions ahead of your current version.
The recommended version was released 2 months ago.
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: