Bug 2163603

Summary: CVE-2022-41717 caddy: golang: net/http: An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests [epel-7]
Product: [Fedora] Fedora EPEL Reporter: Carl George 🤠 <carl>
Component: caddyAssignee: Carl George 🤠 <carl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: ahanwate, carl, extras-qa, go-sig, ngompa13
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: caddy-1.0.5-1.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 2163600 Environment:
Last Closed: 2023-08-03 00:33:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2163038    
Bug Blocks: 2161274    

Description Carl George 🤠 2023-01-24 04:14:48 UTC
+++ This bug was initially created as a clone of Bug #2163600 +++

+++ This bug was initially created as a clone of Bug #2163063 +++


More information about this security flaw is available in the following bug:

http://bugzilla.redhat.com/show_bug.cgi?id=2161274

Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

--- Additional comment from Avinash Hanwate on 2023-01-23 05:41:31 UTC ---

Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# low, medium, high, urgent (required)
severity=medium

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=2161274,2163063

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 1 Carl George 🤠 2023-01-24 04:51:06 UTC
caddy-1.0.3-1.el7 was built with 1.13.1 [0].  The upstream notice [1] says this affects go before version 1.18.9.  I'm not sure if the vulnerability exists that far back, but we should assume so based on the upstream wording.  To fix this we'll need to rebuild the package, but currently we only have golang 1.18.4 available.

[0] https://kojipkgs.fedoraproject.org/packages/caddy/1.0.3/1.el7/data/logs/x86_64/root.log
[1] https://pkg.go.dev/vuln/GO-2022-1144

Comment 2 Fedora Update System 2023-07-25 05:48:51 UTC
FEDORA-EPEL-2023-284c34a6cc has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-284c34a6cc

Comment 3 Fedora Update System 2023-07-26 00:50:53 UTC
FEDORA-EPEL-2023-284c34a6cc has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-284c34a6cc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2023-08-03 00:33:06 UTC
FEDORA-EPEL-2023-284c34a6cc has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Carl George 🤠 2023-08-18 04:14:38 UTC
For posterity, this update ended up being broken and nobody (myself included) caught it while it was in the testing repo.  It's no longer possible to build caddy v1 with the golang that is in EPEL 7.  The choice was between an incompatible update to caddy v2 (major breaking changes with a new config file format) or retiring the package.  With only 10 months left until EPEL 7 is retired, I decided to go with the latter.  See this email for more details.

https://lists.fedoraproject.org/archives/list/epel-devel@lists.fedoraproject.org/thread/JZRLEWOCX5QX3XZ7INLUZIB7LPAMDUZC/