Vulnerability in libretls
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as ALPINE-CVE-2022-0778 has been found in libretls.
Risk of unauthorized operations or information disclosure.
What to do: upgrade libretls to 3.3.3p1-r3 or later.
If unsure, ask your IT team or search "libretls ALPINE-CVE-2022-0778" on the vendor's site.
ALPINE-CVE-2022-0778 (libretls)
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Affected: 1.1.1 - 1.1.1m
Patched: 3.3.3p1-r3 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (unclassified) exists in libretls.
Affected versions of libretls: 1.1.1 - 1.1.1m.
Severity: ?. Risk of unauthorized operations or information disclosure.
Update to 3.3.3p1-r3. (If a vulnerable version 1.1.1 - 1.1.1m is in production, plan an immediate maintenance window.)
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'libretls' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'libretls' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
libretlsを grep し、稼働しているサービス・バージョンを把握する。 -
2
Match against affected rangeverify
Confirm if version satisfies `1.1.1 - 1.1.1m`Step 1 で見つかったバージョンが影響範囲
1.1.1 - 1.1.1mに該当するか照合。本番で稼働中ならインシデント扱い。 -
3
Apply patchpatch
Upgrade libretls to 3.3.3p1-r3ステージング環境で 3.3.3p1-r3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Alpine:v3.14libretls |
< 3.3.3p1-r3→ 3.3.3p1-r3 |
3.3.3p1-r3 |
| Alpine:v3.15libretls |
< 3.3.4-r3→ 3.3.4-r3 |
3.3.4-r3 |
| Alpine:v3.16libretls |
< 3.5.1-r0→ 3.5.1-r0 |
3.5.1-r0 |
| Alpine:v3.17libretls |
< 3.5.1-r0→ 3.5.1-r0 |
3.5.1-r0 |
| Alpine:v3.18libretls |
< 3.5.1-r0→ 3.5.1-r0 |
3.5.1-r0 |
| Alpine:v3.19libretls |
< 3.5.1-r0→ 3.5.1-r0 |
3.5.1-r0 |
| Alpine:v3.20libretls |
< 3.5.1-r0→ 3.5.1-r0 |
3.5.1-r0 |
| Alpine:v3.21libretls |
< 3.5.1-r0→ 3.5.1-r0 |
3.5.1-r0 |
| Alpine:v3.22libretls |
< 3.5.1-r0→ 3.5.1-r0 |
3.5.1-r0 |
| Alpine:v3.12openssl |
≥ 1.1.0, < 1.1.1n-r0→ 1.1.1n-r0 |
1.1.1n-r0 |
| Alpine:v3.13openssl |
≥ 1.1.0, < 1.1.1n-r0→ 1.1.1n-r0 |
1.1.1n-r0 |
| Alpine:v3.14openssl |
≥ 1.1.0, < 1.1.1n-r0→ 1.1.1n-r0 |
1.1.1n-r0 |
| Alpine:v3.15openssl |
≥ 1.1.0, < 1.1.1n-r0→ 1.1.1n-r0 |
1.1.1n-r0 |
| Alpine:v3.16openssl |
≥ 1.1.0, < 1.1.1n-r0→ 1.1.1n-r0 |
1.1.1n-r0 |
| Alpine:v3.17openssl |
≥ 3.0.0, < 3.0.2-r0→ 3.0.2-r0 |
3.0.2-r0 |
| Alpine:v3.18openssl |
≥ 3.0.0, < 3.0.2-r0→ 3.0.2-r0 |
3.0.2-r0 |
| Alpine:v3.19openssl |
≥ 3.0.0, < 3.0.2-r0→ 3.0.2-r0 |
3.0.2-r0 |
| Alpine:v3.20openssl |
≥ 3.0.0, < 3.0.2-r0→ 3.0.2-r0 |
3.0.2-r0 |
| Alpine:v3.21openssl |
≥ 3.0.0, < 3.0.2-r0→ 3.0.2-r0 |
3.0.2-r0 |
| Alpine:v3.22openssl |
≥ 3.0.0, < 3.0.2-r0→ 3.0.2-r0 |
3.0.2-r0 |
| Alpine:v3.23openssl |
≥ 3.0.0, < 3.0.2-r0→ 3.0.2-r0 |
3.0.2-r0 |
| Alpine:v3.24openssl |
≥ 3.0.0, < 3.0.2-r0→ 3.0.2-r0 |
3.0.2-r0 |
| Alpine:v3.15openssl3 |
< 3.0.2-r0→ 3.0.2-r0 |
3.0.2-r0 |
| Alpine:v3.16openssl3 |
< 3.0.2-r0→ 3.0.2-r0 |
3.0.2-r0 |
| Alpine:v3.14libressl |
< 3.3.6-r0→ 3.3.6-r0 |
3.3.6-r0 |
| Alpine:v3.15libressl |
< 3.4.3-r0→ 3.4.3-r0 |
3.4.3-r0 |
| Alpine:v3.16libressl |
< 3.4.3-r0→ 3.4.3-r0 |
3.4.3-r0 |
| Alpine:v3.17libressl |
< 3.4.3-r0→ 3.4.3-r0 |
3.4.3-r0 |
| Alpine:v3.18libressl |
< 3.4.3-r0→ 3.4.3-r0 |
3.4.3-r0 |
| Alpine:v3.19libressl |
< 3.4.3-r0→ 3.4.3-r0 |
3.4.3-r0 |
| Alpine:v3.20libressl |
< 3.4.3-r0→ 3.4.3-r0 |
3.4.3-r0 |
| Alpine:v3.21libressl |
< 3.4.3-r0→ 3.4.3-r0 |
3.4.3-r0 |
| Alpine:v3.22libressl |
< 3.4.3-r0→ 3.4.3-r0 |
3.4.3-r0 |
| Alpine:v3.23libressl |
< 3.4.3-r0→ 3.4.3-r0 |
3.4.3-r0 |
| Alpine:v3.24libressl |
< 3.4.3-r0→ 3.4.3-r0 |
3.4.3-r0 |
| Alpine:v3.23libretls |
< 3.5.1-r0→ 3.5.1-r0 |
3.5.1-r0 |
| Alpine:v3.24libretls |
< 3.5.1-r0→ 3.5.1-r0 |
3.5.1-r0 |
| Alpine:v3.19lighthouse |
< 2.2.0-r0→ 2.2.0-r0 |
2.2.0-r0 |
| Alpine:v3.20lighthouse |
< 2.2.0-r0→ 2.2.0-r0 |
2.2.0-r0 |
| Alpine:v3.21lighthouse |
< 2.2.0-r0→ 2.2.0-r0 |
2.2.0-r0 |
| Alpine:v3.22lighthouse |
< 2.2.0-r0→ 2.2.0-r0 |
2.2.0-r0 |
| Alpine:v3.23lighthouse |
< 2.2.0-r0→ 2.2.0-r0 |
2.2.0-r0 |
| Alpine:v3.24lighthouse |
< 2.2.0-r0→ 2.2.0-r0 |
2.2.0-r0 |
| Alpine:v3.15openjdk11 |
< 11.0.15_p10-r0→ 11.0.15_p10-r0 |
11.0.15_p10-r0 |
| Alpine:v3.16openjdk11 |
< 11.0.15_p10-r0→ 11.0.15_p10-r0 |
11.0.15_p10-r0 |
| Alpine:v3.17openjdk11 |
< 11.0.15_p10-r0→ 11.0.15_p10-r0 |
11.0.15_p10-r0 |
| Alpine:v3.18openjdk11 |
< 11.0.15_p10-r0→ 11.0.15_p10-r0 |
11.0.15_p10-r0 |
| Alpine:v3.19openjdk11 |
< 11.0.15_p10-r0→ 11.0.15_p10-r0 |
11.0.15_p10-r0 |
| Alpine:v3.20openjdk11 |
< 11.0.15_p10-r0→ 11.0.15_p10-r0 |
11.0.15_p10-r0 |
| Alpine:v3.21openjdk11 |
< 11.0.15_p10-r0→ 11.0.15_p10-r0 |
11.0.15_p10-r0 |
| Alpine:v3.22openjdk11 |
< 11.0.15_p10-r0→ 11.0.15_p10-r0 |
11.0.15_p10-r0 |
| Alpine:v3.23openjdk11 |
< 11.0.15_p10-r0→ 11.0.15_p10-r0 |
11.0.15_p10-r0 |
| Alpine:v3.24openjdk11 |
< 11.0.15_p10-r0→ 11.0.15_p10-r0 |
11.0.15_p10-r0 |
| Alpine:v3.17openssl1.1-compat |
< 1.1.1n-r0→ 1.1.1n-r0 |
1.1.1n-r0 |
| Alpine:v3.18openssl1.1-compat |
< 1.1.1n-r0→ 1.1.1n-r0 |
1.1.1n-r0 |
Original description The description as published by the source.
The BN_mod_sqrt() function, which computes a modular square root, contains a bug that can cause it to loop forever for non-prime moduli. Internally this function is used when parsing certificates that contain elliptic curve public keys in compressed form or explicit elliptic curve parameters with a base point encoded in compressed form. It is possible to trigger the infinite loop by crafting a certificate that has invalid explicit curve parameters. Since certificate parsing happens prior to verification of the certificate signature, any process that parses an externally supplied certificate may thus be subject to a denial of service attack. The infinite loop can also be reached when parsing crafted private keys as they can contain explicit elliptic curve parameters. Thus vulnerable situations include: - TLS clients consuming server certificates - TLS servers consuming client certificates - Hosting providers taking certificates or private keys from customers - Certificate authorities parsing certification requests from subscribers - Anything else which parses ASN.1 elliptic curve parameters Also any other applications that use the BN_mod_sqrt() where the attacker can control the parameter values are vulnerable to this DoS issue. In the OpenSSL 1.0.2 version the public key is not parsed during initial parsing of the certificate which makes it slightly harder to trigger the infinite loop. However any operation which requires the public key from the certificate will trigger the i…
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security.alpinelinux.org