Skip to content

Red Hat Enterprise Linux

Golang-fips/openssl: memory leaks in code encrypting and decrypting rsa payloads

CVE-2024-1394Published 21 Mar 2024, 12:16 UTC

Real-world risk

3.4/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.5

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from redhat)

A memory leak flaw was found in Golang in the RSA encrypting/decrypting code, which might lead to a resource exhaustion vulnerability using attacker-controlled inputs​. The memory leak happens in github.com/golang-fips/openssl/openssl/rsa.go#L113. The objects leaked are pkey​ and ctx​. That function uses named return parameters to free pkey​ and ctx​ if there is an error initializing the context or setting the different properties. All return statements related to error cases follow the "return nil, nil, fail(...)" pattern, meaning that pkey​ and ctx​ will be nil inside the deferred function that should free them.

Am I affected?

ProductAffected versions (from the sources)Fixed in
Red Hat Enterprise LinuxUbiquitousnot stated—
Red Hat OpenShift Container PlatformWidespreadnot stated—
Red Hat Ansible Automation Platform 2Commonnot stated—
Red Hat OpenStack Platform 16.2Commonnot stated—
NBDE Tang ServerNichenot stated—
RHODF-4.14-RHEL-9Nichenot stated—
Red Hat Certification Program for Red Hat Enterprise Linux 9Nichenot stated—
Red Hat Certification for Red Hat Enterprise Linux 8Nichenot stated—
Red Hat Developer ToolsNichenot stated—
Red Hat Service Interconnect 1Nichenot stated—
Red Hat Software CollectionsNichenot stated—
Red Hat Storage 3Nichenot stated—

What to do

Check the vendor advisory in the references below for fixed versions and workarounds.

Why this score

FactorValueEvidence×
ImpactDenial of serviceCrash or resource exhaustion onlyFrom the CVSS vector0.40
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 1.5% chance of exploitation in 30 days (percentile 76), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together1.000
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.4 × prerequisites 1 × threat 0.853.400
  4. Rounded to one decimal between 0.1 and 103.4

How the score works

Exploitation and evidence timeline

  1. 21 Mar 2024 Published
  2. 3 Dec 2026 Risk 3.4 (cvss fallback)

Weakness

CWE-401

References

Get alerts for Red Hat Enterprise Linux

Free email or text alerts when a vulnerability in Red Hat Enterprise Linux reaches risk 8 or higher. Nothing else.