Bug 2066887 - Dependabot alert: Path traversal in github.com/valyala/fasthttp
Summary: Dependabot alert: Path traversal in github.com/valyala/fasthttp
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Native Events
Version: 4.11
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.11.0
Assignee: Jack Ding
QA Contact: yliu1
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-22 16:56 UTC by Jack Ding
Modified: 2022-08-10 10:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2066889 2091106 (view as bug list)
Environment:
Last Closed: 2022-08-10 10:24:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:5070 0 None None None 2022-08-10 10:25:01 UTC

Description Jack Ding 2022-03-22 16:56:12 UTC
Description of problem:

There is an security warning on the fasthttp used by consumer example code. The version of fasthttp needs to be updated.

https://github.com/redhat-cne/cloud-event-proxy/security/dependabot/1

The package github.com/valyala/fasthttp before 1.34.0 is vulnerable to Directory Traversal via the ServeFile function, due to improper sanitization. It is possible to be exploited by using a backslash %5c character in the path. Note: This security issue impacts Windows users only.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jack Ding 2022-03-23 03:09:30 UTC
Note that this issue does not apply to production code.

Comment 2 Jack Ding 2022-03-24 02:25:12 UTC
Fix merged https://github.com/redhat-cne/cloud-event-proxy/pull/103

Comment 3 Jack Ding 2022-03-24 02:27:29 UTC
verified by Github Dependabot.

Comment 7 errata-xmlrpc 2022-08-10 10:24:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.11.0 extras and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5070


Note You need to log in before you can comment on or make changes to this bug.