question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bump dependency System.Configuration.ConfigurationManager to 6.0.0 to avoid vulnerability issues with System.Drawing.Common 4.7.0

See original GitHub issue

Currently this project has a dependency on System.Configuration.ConfigurationManager version 4.7.0

In a project I work on we use Trivy for container scanning purposes. This reported issue CVE-2021-24112 because of a dependency on System.Drawing.Common version 4.7.0.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚        Library        β”‚ Vulnerability  β”‚ Severity β”‚ Installed Version β”‚ Fixed Version β”‚                    Title                    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ System.Drawing.Common β”‚ CVE-2021-24112 β”‚ CRITICAL β”‚ 4.7.0             β”‚ 5.0.3, 4.7.2  β”‚ dotnet: Remote Code Execution Vulnerability β”‚
β”‚                       β”‚                β”‚          β”‚                   β”‚               β”‚ https://avd.aquasec.com/nvd/cve-2021-24112  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

After a while, I figured out that we had this dll because of Quartz. Quartz has this dependency because of System.Configuration.ConfigurationManager

This issue is fixed in 5.0.3, 4.7.2 (or 6.x.x).

I recommend updating SYstem.ConfigurationManager to the latest 6.x.x version so this vulnerability will be fixed.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lahmacommented, Nov 26, 2022

Wow, that’s a weird dependency tree. Thanks for sharing!

0reactions
lahmacommented, Nov 27, 2022

OK now we’re at version 6.0.1 at 3.x branch I’ll remove the whole dependency on main (4.x).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix the security vulnerability in system.drawing. ...
I had the same issue. Just add the latest System.Drawing.Common package to your project which uses Microsoft.EntityFrameworkCore.SqlServer.
Read more >
Dependency on System.Drawing.Common that has a ...
ConfigurationManager >= 5.0.0 System. ... Drawing.Common ... Common 5.0.0 which as the following security vulnerability: GHSA-rxg9-xrhp-64gj.
Read more >
System.Drawing.Common only supported on Windows - .NET
Learn about the .NET 6 breaking change where the System.Drawing.Common package is no longer supported on non-Windows operating systems.
Read more >
System.Drawing.Common 4.7.0
This package has at least one vulnerability with critical severity. It may lead to specific problems in your project. Try updating the packageΒ ......
Read more >
Could not load file or assembly 'System.DirectoryServices. ...
net7 and you're trying to use System.DirectoryServices.AccountManagement , then NuGet will pull in: System.Configuration.ConfigurationManager.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found