gosu: CVEs that do not apply to gosu

NOTE: this list is no longer actively maintained; see https://github.com/tianon/gosu/issues/104#issuecomment-1358424738:

With https://github.com/tianon/gosu/releases/tag/1.15, I’ve now got https://github.com/tianon/gosu/blob/master/SECURITY.md which makes it clear how to determine whether vulnerabilities apply to a released version/build of gosu (TLDR, the answer is now govulncheck, which checks for invocations of the actual vulnerable functionality).


CVEs that do not apply to builds of gosu:

If you use (or maintain) a security scanner which reports any of these against gosu, please report them to the security vendor as false positives.

(See also https://snarky.ca/the-social-contract-of-open-source/)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 29 (11 by maintainers)

Commits related to this issue

Most upvoted comments

I too totally understand your point. There is absolutely nothing wrong with it on a completely technical level. However we don’t live in a completely technical world.

What it does do is to shift the burden onto the end users - of which, a percentage will end up here - and you’ll waste even more time and brainpower in explaining all this to a newer set of users - again, and again, and again, and again. That’s a lot of effort just to maintain the moral high-ground.

That same shift of burden ripples down to thousands of tech folks and thousands of projects. They too have to field these questions - because, say, Postgres will show (at least) 52 security vulnerabilities because of your stance on things. I’m sure the postgres guys in this scenario would prefer they didn’t have to do this all the time as well.

The true cost and impact would be in the thousands of man hours - collectively, years of human effort to maintain this status quo. Myself? I’d rather be doing other things than trying to figure out which CVE relates to what component, if it matters for every one of the thousands of libraries that are present in modern day systems and be happier in life going “Yep, we’re looking good” instead of writing exceptions, explaining to management why it never says “No security vulnerabilities” - and essentially training other staff by these actions that security vulnerability lists are there to be ignored - the subtlety there is dangerous long term.

Now, I don’t have any skin in the game anymore - it was less effort for me personally to rip out gosu from my container and install a smaller, OS provided package that achieved the same end result as I needed - however mine was a VERY simple use case.

What I did do, was see what I saw to be a very strange stance that puzzled me as to why this was the case - and I’ve been grinding out code and systems for about 25 years now.

All that being said, I think you’re dead wrong to defend sticking to an EOL version of GO and really hope that you at least keep things within supported versions - as security reports very rarely end up being published / accepted on EOL software - so you could no longer guarantee that any other tools you use would be updated to reflect reality once that magic EOL date passes.

I don’t really expect any further replies - but would like @tianon to mull on these thoughts - as it does present somewhat of a mindset / culture shift on things. Just let it sit with you and peculate - like a good coffee 😃

Can I just ask if there is something about updating to a new version of golang that poses more effort than updating all of these vulnerability tools? I understand that this project doesn’t use the parts of the code that have the CVE at the moment, but I can’t help but wonder if it is less effort to just update the go version than it is to ask all of the tools to ignore the warnings for this tool.

I try to keep the main development branch up-to-date with newer package versions, but I have no plans to make a new release of gosu unless there is a compelling reason to do so (changes to/CVEs in the actual codepaths gosu invokes, changes to gosu itself, etc).

Let me get this straight. You’d rather maintain this growing list of false-positive CVEs and respond to continuing bug reports and requests rather than releasing a new incremental version that would clear most if not all of these reports?

Consumers of tools like this generally don’t build it from source. They consume released artifacts. The last release doesn’t include changes you’ve merged into master in the last 15 months. Those changes include dependency updates and even a new Go version. You’ve merged the changes why not release them?

I see your argument elsewhere that until there are “functional changes” you won’t release a new version. I can see that reasoning. Following that reasoning the update to Go 1.19 should justify a new release. There have been a number of changes to Go compiler and runtime since gosu 1.14 was built and released. While the gosu code hasn’t changed the build outputs and runtime behavior have. Based on your own comments that should be sufficient reason for a new release.

I understand your stance on this and appreciate it, but the end result here is that in the meantime everyone relying on this tool is having to constantly make security exceptions at their workplace. I do agree that the companies should fix their scanning(looking at you jfrog!), but this stance is involving everyone else here in the software politics, whether they like it or not.

At the end of the day this library is maintained by you and no one can force your hand, and you don’t owe it to any of us. However you are passing software politics off to users who are dealing with this transitively and can’t really opt out. In my case it’s through a docker image that uses this and I don’t have a good alternative to this library, so I’m stuck marking this as an exception.

As a thought of another way to approach this, updating the go libraries and making a new release is quite trivial to do and would make this vulnerability error go away for a large number of people for quite a while. If you want vulnerability scanning companies to make the exception and feel so strongly about it, I’d suggest that you yourself reach out to them with this suggestion. I promise you that jfrog does not care how many users complain about this issue, since at the end of the day they are just the most convenient solution for many people and have no reason to invest this effort into adding security scanning.

If we, as the userbase of these “security scanning” tools, continue to accept the frankly poor status quo in the face of information/tooling that can trivially improve their false positive rates (govulncheck), nothing will improve. I’m not asking anyone to mark them as ignored (nor suggesting that anyone should do so) – I’m asking you to actively report them to your scanner vendor as false positives and suggesting (demanding?) that they incorporate govulncheck into their tooling so that the situation can actually improve in a way that helps everyone using and writing Go-based tooling.

Thanks.

FYI:

# /gosu --version1.16 (go1.18.2 on linux/amd64; gc)
# govulncheck /gosu
govulncheck is an experimental tool. 
Share feedback at https://go.dev/s/govulncheck-feedback.
Scanning for dependencies with known vulnerabilities...
No vulnerabilities found.

# /gosu14 --version1.14 (go1.16.7 on linux/amd64; gc)
# govulncheck /gosu14
govulncheck is an experimental tool. 
Share feedback at https://go.dev/s/govulncheck-feedback.
Scanning for dependencies with known vulnerabilities...
govulncheck: vulncheck.Binary: binary built using unsupported Go Version: go1.16.7 

All fine - we will use redis 7.0.8 with gosu 1.16. (1.14 where where we had the CVEs), but we will upgrade to be sure.

similar to many of the CVEs that are listed, “does not use math/big” / “does not use net/http”

  • CVE-2022-30635: does not use encoding/gob