glog - Security Vulnerability Report

181 views
Skip to first unread message

Marco Arboleda

unread,
Dec 6, 2022, 6:44:37 PM12/6/22
to golan...@googlegroups.com

Good afternoon,

 

My company is using the glog library as a dependency in some of our code.

 

However, one of my pipelines for a project I’m working on started failing today. It was due to a security issue flagged by our static code analysis tool.

The relevant lines of code were lines 117 & 118 in glog_file.go of the glog package.

 

Could someone take a look at this and look into fixing the security vulnerability?

 

Here are some more details about the security issue:

 

Unsanitized input from a CLI argument flows into os.Remove, where it is used as a path. This may result in a Path Traversal vulnerability and allow an attacker to delete arbitrary files.

Found in: vendor/github.com/golang/glog/glog_file.go (line : 117)

 

Unsanitized input from a CLI argument flows into os.Symlink, where it is used as a path. This may result in a Path Traversal vulnerability and allow an attacker to create arbitrary symlinks.

Found in: vendor/github.com/golang/glog/glog_file.go (line : 118)

 

And here’s an article I found about the security issue in more detail (code CWE-23): https://cwe.mitre.org/data/definitions/23.html

 

Marco Arboleda  | Developer 1

Applied Systems Canada

marb...@appliedsystems.com

24/7 Customer Support: 800.617.4666 |sup...@appliedsystems.com

Applied Net 2022

This message is for the designated recipient only and may contain confidential, proprietary, or
otherwise private information. If you have received this message in error, please notify the sender
immediately and delete the original. Any other use or distribution of this information is prohibited.

 

peterGo

unread,
Dec 6, 2022, 10:25:10 PM12/6/22
to golang-nuts
Please follow the Go Security Policy: https://go.dev/security/policy

All security bugs in the Go distribution should be reported by email to secu...@golang.org. This mail is delivered to the Go Security team.

Marco Arboleda

unread,
Dec 8, 2022, 8:55:45 AM12/8/22
to golan...@googlegroups.com

Good morning,

I’d like to follow up on the below email and whether the code that was flagged as a security issue will be looked into and fixed.

 

I looked around at how another Go library fixed the issue, and this function may help

Reply all
Reply to author
Forward
0 new messages