Fix CVE vulnerabilities in transitive NuGet dependencies (#1204)#1205
Draft
pm7y wants to merge 1 commit intoOctopusDeploy:mainfrom
Draft
Fix CVE vulnerabilities in transitive NuGet dependencies (#1204)#1205pm7y wants to merge 1 commit intoOctopusDeploy:mainfrom
pm7y wants to merge 1 commit intoOctopusDeploy:mainfrom
Conversation
…oy#1204) Pin vulnerable transitive dependencies to their fixed versions: - System.Formats.Asn1 6.0.0 -> 6.0.1 (CVE-2024-38095) - System.Security.Cryptography.Pkcs 6.0.1 -> 6.0.3 (CVE-2023-29331) - System.Security.Cryptography.X509Certificates 4.1.0 -> 4.3.2 (CVE-2017-11770) - System.Net.Http 4.1.0 -> 4.3.4 (CVE-2018-8292) - System.Private.Uri 4.3.0 -> 4.3.2 (CVE-2019-0657, CVE-2019-0980, CVE-2019-0981) - System.Text.RegularExpressions 4.3.0 -> 4.3.1 (CVE-2019-0820)
|
|
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Are you a customer of Octopus Deploy? Please contact our support team so we can triage your PR, so that we can make sure it's handled appropriately.
Background
#1204
The
octopusdeploy/tentaclecontainer image bundles transitive NuGet dependencies with known CVEs in/opt/octopus/tentacle/Tentacle.deps.json. These are flagged by container vulnerability scanners (Azure Defender for Cloud, Trivy, Snyk, etc.) and cannot be remediated by image consumers.This PR pins 6 vulnerable transitive dependencies to their fixed versions by adding explicit
PackageReferenceentries toOctopus.Tentacle.csproj.Results
Before
Container vulnerability scanners flag 8 CVEs (3 High, 5 Medium) from
/opt/octopus/tentacle/Tentacle.deps.json.After
All 8 CVEs resolved. No functional changes — only transitive dependency version pins.
How to review this PR
This is a low-risk dependency pin change. The packages are already present as transitive dependencies; we are only overriding their versions to pick up security fixes.
Key points to verify:
System.Formats.Asn1andSystem.Security.Cryptography.Pkcsare conditioned on'$(TargetFrameworkIdentifier)' != '.NETFramework'because they only target netstandard2.1/net6.0+ and would break the net48 buildSystem.Security.Cryptography.X509Certificatesis pinned to 4.3.2 (not the NVD-listed 4.1.2) becauseSystem.Net.Http 4.3.4depends on>= 4.3.0Quality ✔️
Build all target frameworks (net48, net8.0, net8.0-windows) and run the existing test suite.
Pre-requisites