CVE-2026-23940: Denial of Service via Oversized Package Upload

Published Mar 13, 2026
·
Updated

Summary

Uncontrolled Resource Consumption vulnerability in hexpm hexpm/hexpm allows Excessive Allocation.

Publishing an oversized package can cause Hex.pm to run out of memory while extracting the uploaded package tarball. This can terminate the affected application instance and result in a denial of service for package publishing and potentially other package-processing functionality.

This issue affects hex.pm: before 2026-03-10; hexpm/hexpm: from 82911daf5f8fb2ab44f298e3ba22b90bc1ae3746 before 495f01607d3eae4aed7ad09b2f54f31ec7a7df01.

Workarounds

Prevent large package uploads by enforcing upload size limits at the reverse proxy or load balancer level.

Affected Software

3 affected components
hexpm/hexpm<495f01607d3eae4aed7ad09b2f54f31ec7a7df01
hexpm/hex.pm<2026-03-10
Hex hexpm<2026-03-09

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Enforce package upload size limits at the reverse proxy or load balancer to prevent oversized package uploads.

Event History

Mar 13, 2026
CVE Published
via MITRE·04:07 PM
Data Sourced
via MITRE·04:07 PM
DescriptionWeakness
Data Sourced
via OSV·04:07 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:54 PM
DescriptionSeverityWeakness
Mar 20, 2026
Data Sourced
via NVD·07:17 PM
RemedyAffected Software
Updated
via NVD·07:17 PM
Severity
Sep 8, 2026
Updated
via MITRE·01:25 PM
Description
Updated
via MITRE·01:32 PM
Description
Updated
via NVD·02:17 PM
Description
Nov 20, 2026
Updated
via MITRE·06:03 AM
Description
Updated
via NVD·06:17 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2026-23940?

CVE-2026-23940 is classified as a Denial of Service vulnerability due to uncontrolled resource consumption.

2

How do I fix CVE-2026-23940?

To mitigate CVE-2026-23940, ensure that your version of hexpm/hexpm is updated beyond commit 495f01607d3eae4aed7ad09b2f54f31ec7a7df01.

3

What impact does CVE-2026-23940 have on hexpm/hexpm?

CVE-2026-23940 can cause hexpm/hexpm to run out of memory, leading to service disruption when oversized packages are uploaded.

4

Which versions of hexpm/hexpm are affected by CVE-2026-23940?

CVE-2026-23940 affects versions of hexpm/hexpm prior to commit 495f01607d3eae4aed7ad09b2f54f31ec7a7df01.

5

Is CVE-2026-23940 related to package uploads?

Yes, CVE-2026-23940 is specifically related to Denial of Service caused by excessive allocation during oversized package uploads.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203