BreachSpiderVerified, not vibes

CVE-2019-19726 in Openbsd

High 7.8 Public exploit reported

OpenBSD through 6.6 allows local users to escalate to root because a check for LD_LIBRARY_PATH in setuid programs can be defeated by setting a very small RLIMIT_DATA resource limit. When executing chpass or passwd (which are setuid root), _dl_setup_env in ld.so tries to strip LD_LIBRARY_PATH from the environment, bu...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.8
EPSS3.5%
EPSS percentile90th
FixSee advisory

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Openbsd Openbsd ≤ 6.6

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

Official description

OpenBSD through 6.6 allows local users to escalate to root because a check for LD_LIBRARY_PATH in setuid programs can be defeated by setting a very small RLIMIT_DATA resource limit. When executing chpass or passwd (which are setuid root), _dl_setup_env in ld.so tries to strip LD_LIBRARY_PATH from the environment, but fails when it cannot allocate memory. Thus, the attacker is able to execute their own library code as root.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2019-19726
BreachSpider IDBS-2019-GLOBAL-160945-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2019-12-12
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-269: Improper Privilege Management

Software does not properly assign, modify, track, or check privileges, allowing unauthorized elevation of access.

Related attack patterns (CAPEC)

CAPEC-58 Restful Privilege Elevation via CWE-269

CAPEC-122 Privilege Abuse via CWE-269

CAPEC-233 Privilege Escalation via CWE-269

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

OpenBSD through 6.6 is vulnerable to a local privilege escalation due to improper handling of the LD_LIBRARY_PATH environment variable in setuid programs, allowing local users to escalate to root.

The vulnerability arises from the failure of _dl_setup_env in ld.so to strip LD_LIBRARY_PATH from the environment when memory allocation fails due to a very small RLIMIT_DATA resource limit. This allows an attacker to execute chpass or passwd with a controlled LD_LIBRARY_PATH, leading to privilege escalation.

Questions

What is CVE-2019-19726?

OpenBSD through 6.6 is vulnerable to a local privilege escalation due to improper handling of the LD_LIBRARY_PATH environment variable in setuid programs, allowing local users to escalate to root.

What is the CVSS score for CVE-2019-19726?

CVE-2019-19726 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 3.5%.

Is CVE-2019-19726 actively exploited?

Public exploit available for CVE-2019-19726. Exploitation risk elevated.

How do I remediate CVE-2019-19726?

Priority: HIGH. Advisory: https://www.openbsd.org/errata66.html PSIRT: [email protected]

What systems are affected by CVE-2019-19726?

CVE-2019-19726 affects Openbsd Openbsd.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Openbsd","product":"Openbsd","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.