ITADN

Update golang.org/x/crypto to address security vulnerabilities

#5506Closedsebrandon1 创建于 2025-12-17
S
sebrandon1commented
## ⚠️ Outdated golang.org/x/crypto Dependency This repository is currently using **`golang.org/x/crypto v0.43.0`** but the latest version is **`v0.47.0`**. > **Last scanned:** 2026-01-13 15:18 UTC ### Why Update? Keeping cryptographic dependencies up-to-date is critical for security. Newer versions often include fixes for known vulnerabilities. ### 🔒 Security Vulnerabilities Fixed in Newer Versions The following CVEs have been addressed in versions after v0.43.0: - **CVE-2025-47914** (MODERATE): golang.org/x/crypto/ssh/agent vulnerable to panic if message is malformed due to out of bounds read - Fixed in `0.45.0` ([details](https://github.com/advisories/GHSA-f6x5-jh6r-wrfv)) - **CVE-2025-58181** (MODERATE): golang.org/x/crypto/ssh allows an attacker to cause unbounded memory consumption - Fixed in `0.45.0` ([details](https://github.com/advisories/GHSA-j5w8-q4qc-rx2x)) ### 🤖 Recommendation: Enable Dependabot This repository does not appear to have Dependabot configured. We recommend enabling Dependabot to automatically keep your `go.mod` dependencies up-to-date and receive security alerts. To enable Dependabot, create a `.github/dependabot.yml` file: ```yaml version: 2 updates: - package-ecosystem: "gomod" directory: "/" schedule: interval: "weekly" open-pull-requests-limit: 10 ``` See [GitHub Dependabot documentation](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates) for more details. ### 📋 How to Update Run the following command to update: ```bash go get golang.org/x/crypto@v0.47.0 go mod tidy ``` Then run your tests and submit a PR with the changes. ### 🔗 Central Tracking This issue is part of an organization-wide effort to keep `golang.org/x/crypto` dependencies up-to-date. **See the central tracking issue for a full overview:** [redhat-best-practices-for-k8s/telco-bot#59](https://github.com/redhat-best-practices-for-k8s/telco-bot/issues/59) --- *This issue is automatically managed by the [xcrypto-lookup.sh](https://github.com/redhat-best-practices-for-k8s/telco-bot/blob/main/scripts/xcrypto-lookup.sh) scanner.*
关闭于 2026-01-14 5 条评论