Vulnerability in cryptography
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2023-0286 has been found in cryptography.
Attackers can target a specific entry point like GeneralName over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 7.4/10.
What to do: upgrade cryptography to 39.0.1 or later.
If unsure, ask your IT team or search "cryptography CVE-2023-0286" on the vendor's site.
CVE-2023-0286 (cryptography) — CWE-843 / CVSS v3 7.4
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: GeneralName / ASN1_STRING / GENERAL_NAME / x400Address
Patched: 39.0.1 — 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 (CWE-843) exists in cryptography. Attackers reach the vulnerable code path via GeneralName without authentication.
Check the vendor advisory for the affected versions of cryptography. Attack surface: GeneralName / ASN1_STRING / GENERAL_NAME / x400Address.
Severity: High (CVSS 7.4/10). Confidential information can be exposed externally.
Update to 39.0.1.
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 'cryptography' . 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 'cryptography' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
cryptographyを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade cryptography to 39.0.1ステージング環境で 39.0.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PyPIcryptography |
≥ 0.8.1, < 39.0.1→ 39.0.1 |
39.0.1 |
| crates.ioopenssl-src |
≥ 300.0.0, < 300.0.12→ 300.0.12 |
300.0.12 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2023-0286 openssl3, openssl1.1-compat, openssl Fix available
- Debian DEBIAN-CVE-2023-0286 openssl Fix available
- Ubuntu UBUNTU-CVE-2023-0286 openssl1.0, openssl, nodejs +1 more Fix available
Original description The description as published by the source.
There is a type confusion vulnerability relating to X.400 address processing
inside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING but
the public structure definition for GENERAL_NAME incorrectly specified the type
of the x400Address field as ASN1_TYPE. This field is subsequently interpreted by
the OpenSSL function GENERAL_NAME_cmp as an ASN1_TYPE rather than an
ASN1_STRING.
When CRL checking is enabled (i.e. the application sets the
X509_V_FLAG_CRL_CHECK flag), this vulnerability may allow an attacker to pass
arbitrary pointers to a memcmp call, enabling them to read memory contents or
enact a denial of service. In most cases, the attack requires the attacker to
provide both the certificate chain and CRL, neither of which need to have a
valid signature. If the attacker only controls one of these inputs, the other
input must already contain an X.400 address as a CRL distribution point, which
is uncommon. As such, this vulnerability is most likely to only affect
applications which have implemented their own functionality for retrieving CRLs
over a network.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory nvd.nist.gov
- advisory security.gentoo.org
- advisory openssl.org
- advisory github.com
- advisory github.com
- package github.com
- package pypi.org
- package crates.io
- patch git.openssl.org
- patch git.openssl.org
- patch git.openssl.org
- web github.com
- web access.redhat.com
- web ftp.openbsd.org
- web ftp.openbsd.org
- web psirt.global.sonicwall.com
- web rustsec.org
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com