CVE-2026-18739: Popt-devel: popt-static: off-by-one in poptstuffargs

Published Aug 3, 2026
·
Updated

A flaw was found in popt, a command-line option parsing library. An off-by-one error in the poptStuffArgs function, when repeatedly called by a host application or through deep alias nesting, can lead to corruption of internal program data. This corruption could potentially enable a local attacker to execute arbitrary code if the host application then unsafely processes the altered data.

Other sources

Depth check lacks + 1 vs handleAlias; 10th stuff can advance os past optionStack[0..9] into adjacent poptContext fields (e.g. leftovers). Claimed LCE only if host uses corrupted poptGetArg unsafely.

popt-1.18/src/popt.c:1671

Flow: Host repeatedly calls poptStuffArgs (and/or deep alias nesting) → overflow con->os → corrupt context → later poptGetArg / poptGetArgs / poptPeekArg → only if host sinks that string into exec/system/popen/dlopen (or equivalent).

Analysis has identified that this goes back to the git tag popt-111

Red Hat

Affected Software

1 affected component
Michael R. Elkins popt>=popt-1_1_1<=popt-1_18

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade popt to a version that resolves this vulnerability.

    Fixed in popt-1_1_1

Event History

Aug 3, 2026
Data Sourced
via Red Hat·06:55 PM
DescriptionSeverityAffected Software
Aug 4, 2026
CVE Published
via MITRE·05:32 AM
Data Sourced
via MITRE·05:32 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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