openSUSE Security Update
openSUSE-SU-2025:20177-1
Security update for cheat
Details
This update for cheat fixes the following issues:
- Security:
- CVE-2025-47913: Fix client process termination (bsc#1253593)
- CVE-2025-58181: Fix potential unbounded memory consumption (bsc#1253922)
- CVE-2025-47914: Fix panic due to an out of bounds read (bsc#1254051)
- Replace golang.org/x/crypto=golang.org/x/[email protected]
- Replace golang.org/x/net=golang.org/x/[email protected]
- Replace golang.org/x/sys=golang.org/x/[email protected]
- Packaging improvements:
- Drop Requires: golang-packaging. The recommended Go toolchain
dependency expression is BuildRequires: golang(API) >= 1.x or optionally the metapackage BuildRequires: go
- Use BuildRequires: golang(API) >= 1.19 matching go.mod
- Build PIE with pattern that may become recommended procedure:
%%ifnarch ppc64 GOFLAGS="-buildmode=pie" %%endif go build A go toolchain buildmode default config would be preferable but none exist at this time.
- Drop mod=vendor, go1.14+ will detect vendor dir and auto-enable
- Remove go build -o output binary location and name. Default
binary has the same name as package of func main() and is placed in the top level of the build directory.
- Add basic %check to execute binary --help
- Packaging improvements:
- Service go_modules replace dependencies with CVEs
- Replace github.com/cloudflare/circl=github.com/cloudflare/[email protected]
Fix GO-2025-3754 GHSA-2x5j-vhc8-9cwm
- Replace golang.org/x/net=golang.org/x/[email protected]
Fixes GO-2025-3503 CVE-2025-22870
- Replace golang.org/x/crypto=golang.org/x/[email protected]
Fixes GO-2023-2402 CVE-2023-48795 GHSA-45x7-px36-x8w8 Fixes GO-2025-3487 CVE-2025-22869
- Replace github.com/go-git/go-git/v5=github.com/go-git/go-git/[email protected]
Fixes GO-2025-3367 CVE-2025-21614 GHSA-r9px-m959-cxf4 Fixes GO-2025-3368 CVE-2025-21613 GHSA-v725-9546-7q7m
- Service tar_scm set mode manual from disabled
- Service tar_scm create archive from git so we can exclude
vendor directory upstream committed to git. Committed vendor directory contents have build issues even after go mod tidy.
- Service tar_scm exclude dir vendor
- Service set_version set mode manual from disabled
- Service set_version remove param basename not needed
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| openSUSE:Leap 16.0 | cheat | All versions before 4.4.2-bp160.2.1 (fixed in 4.4.2-bp160.2.1) |
References
- https://bugzilla.suse.com/1247629
- https://bugzilla.suse.com/1253593
- https://bugzilla.suse.com/1253922
- https://bugzilla.suse.com/1254051
- https://www.suse.com/security/cve/CVE-2023-48795
- https://www.suse.com/security/cve/CVE-2025-21613
- https://www.suse.com/security/cve/CVE-2025-21614
- https://www.suse.com/security/cve/CVE-2025-22869
- https://www.suse.com/security/cve/CVE-2025-22870
- https://www.suse.com/security/cve/CVE-2025-47913
- https://www.suse.com/security/cve/CVE-2025-47914
- https://www.suse.com/security/cve/CVE-2025-58181