---
id: CVE-2023-50781
title: A flaw was found in m2crypto
summary: >-
  A flaw was found in m2crypto. This issue may allow a remote attacker to
  decrypt captured messages in TLS servers that use RSA key exchanges, which may
  lead to exposure of confidential or sensitive data.
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-203
vendor: redhat
product: update_infrastructure
affected:
  - enterprise_linux = 8.0
  - enterprise_linux = 9.0
  - update_infrastructure = 4
  - m2crypto <= 0.40.1
published: '2024-02-05'
updated: '2026-09-16'
sourceUpdated: '2026-09-16T20:16:07.447'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-50781'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2023-50781'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2254426'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2023-50781'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2254426'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-50781'
  - url: 'https://gitlab.com/m2crypto/m2crypto'
  - url: 'https://gitlab.com/m2crypto/m2crypto/-/issues/342'
tags:
  - nvd
  - osv
  - pip
epss: 0.01124
epssPercentile: 0.64862
aliases:
  - GHSA-944j-8ch6-rf6x
  - PYSEC-2026-1595
ecosystem: pip
scores:
  nvd: 7.5
  osv: 5.9
ingestedAt: '2026-07-08T18:25:47.740Z'
---

## Overview

A flaw was found in m2crypto. This issue may allow a remote attacker to decrypt captured messages in TLS servers that use RSA key exchanges, which may lead to exposure of confidential or sensitive data.

## Affected

- `enterprise_linux = 8.0`
- `enterprise_linux = 9.0`
- `update_infrastructure = 4`
- `m2crypto <= 0.40.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2023-50781)

Affected packages:

- `m2crypto <= 0.40.1`

Source: https://osv.dev/vulnerability/GHSA-944j-8ch6-rf6x
