Skip to main content
EPSS 0.7%top 51%

CVE-2026-39892: CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer in pyca cryptography

0
Medium
VulnerabilityCVE-2026-39892cvecve-2026-39892cwe-119gcvecwe-131
Published: 04/08/2026 (04/08/2026, 20:49:41 UTC)
Source: CVE Database V5
Vendor/Project: pyca
Product: cryptography

Description

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. From 45.0.0 to before 46.0.7, if a non-contiguous buffer was passed to APIs which accepted Python buffers (e.g. Hash.update()), this could lead to buffer overflows. This vulnerability is fixed in 46.0.7.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Affected software

pyca

cryptography

Affected versions
>=45.0.0 <46.0.7
cryptography
pkg:pypi/cryptography
Affected versions
>=45.0.0 <46.0.7

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 14:42:44 UTC

Technical Analysis

The pyca cryptography package versions >=45.0.0 and <46.0.7 contain a buffer overflow vulnerability (CWE-119, CWE-131) triggered by passing non-contiguous buffers to APIs that accept Python buffers (e.g., Hash.update()). This improper restriction of operations within memory buffer bounds can lead to out-of-bounds reads or writes, potentially causing crashes or denial of service. The issue is resolved in version 46.0.7. Red Hat advisories confirm the vulnerability and note that mitigation options are limited, but the impact is constrained by service process isolation. The CVSS v3.1 base score is 7.3 (Red Hat) and 9.8 (NVD), indicating a medium to high severity depending on the environment.

Potential Impact

Exploitation of this vulnerability can cause a denial of service via application crash due to buffer overflow. There is potential for arbitrary code execution or memory disclosure if the buffer overflow is leveraged further, but the primary confirmed impact is denial of service. In Red Hat environments, the impact is limited to the compromised service account due to process isolation. No active exploits have been reported in the wild.

Mitigation Recommendations

A fixed version 46.0.7 of the pyca cryptography package is available and should be applied to remediate this vulnerability. Red Hat has released security advisories and updated packages for affected products including Red Hat Ansible Automation Platform 2.5. No effective mitigations other than upgrading are currently available or meet Red Hat's criteria. Users should upgrade to version 46.0.7 or later to resolve this issue.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-07T20:32:03.011Z
Cvss Version
4.0
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-39892","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24761","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24762","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30089","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30088","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24866","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:20338","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7295","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22629","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21017","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24853","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19375","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22465","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22840","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:23361","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24483","vendor":"Red Hat"}]

Threat ID: 69d6c32c1cc7ad14dab1ab4d

Added to database: 04/08/2026, 21:05:48 UTC

Last enriched: 08/14/2026, 14:42:44 UTC

Last updated: 09/12/2026, 22:13:36 UTC

Views: 294

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses