CVE-2023-26031
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedRelative library resolution in linux container-executor binary in Apache Hadoop 3.3.1-3.3.4 on Linux allows local user to gain root privileges. If the YARN cluster is accepting work from remote (authenticated) users, this MAY permit remote users to gain root privileges. Hadoop 3.3.0 updated the " YARN Secure Containers https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/SecureContainer.html " to add a feature for executing user-submitted applications in isolated linux containers. The native binary HADOOP_HOME/bin/container-executor is used to launch these containers; it must be owned by root and have the suid bit set in order for the YARN processes to run the containers as the specific users submitting the jobs. The patch " YARN-10495 https://issues.apache.org/jira/browse/YARN-10495 . make the rpath of container-executor configurable" modified the library loading path for loading .so files from "$ORIGIN/" to ""$ORIGIN/:../lib/native/". This is the a path through which libcrypto.so is located. Thus it is is possible for a user with reduced privileges to install a malicious libcrypto library into a path to which they have write access, invoke the container-executor command, and have their modified library executed as root. If the YARN cluster is accepting work from remote (authenticated) users, and these users' submitted job are executed in the physical host, rather than a container, then the CVE permits remote users to gain root privileges. The fix for the vulnerability is to revert the change, which is done in YARN-11441 https://issues.apache.org/jira/browse/YARN-11441 , "Revert YARN-10495". This patch is in hadoop-3.3.5. To determine whether a version of container-executor is vulnerable, use the readelf command. If the RUNPATH or RPATH value contains the relative path "./lib/native/" then it is at risk $ readelf -d container-executor|grep 'RUNPATH\|RPATH' 0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/:../lib/native/] If it does not, then it is safe: $ readelf -d container-executor|grep 'RUNPATH\|RPATH' 0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/] For an at-risk version of container-executor to enable privilege escalation, the owner must be root and the suid bit must be set $ ls -laF /opt/hadoop/bin/container-executor ---Sr-s---. 1 root hadoop 802968 May 9 20:21 /opt/hadoop/bin/container-executor A safe installation lacks the suid bit; ideally is also not owned by root. $ ls -laF /opt/hadoop/bin/container-executor -rwxr-xr-x. 1 yarn hadoop 802968 May 9 20:21 /opt/hadoop/bin/container-executor This configuration does not support Yarn Secure Containers, but all other hadoop services, including YARN job execution outside secure containers continue to work.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe container-executor binary in Apache Hadoop 3.3.1-3.3.4 contains an insecure RPATH/RUNPATH setting ($ORIGIN/:../lib/native/) that allows local users to inject a malicious libcrypto.so library into a writable path. When the suid root binary executes, it loads this library with elevated privileges, enabling local privilege escalation to root.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 3.3.1, <= 3.3.4CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check Hadoop versionRun 'hadoop version' or check $HADOOP_HOME/etc/hadoop/hadoop-version.propertiesAffected if Version is 3.3.1, 3.3.2, 3.3.3, or 3.3.4 (within 3.3.1-3.3.4 range)
-
Locate container-executor binaryFind the binary, typically in $HADOOP_HOME/bin/container-executor or /usr/bin/container-executorAffected if Binary exists on the system
-
Verify container-executor is setuid rootRun 'ls -la container-executor' and check for 'srwxr-sr-x' permissions with root ownershipAffected if Binary has setuid bit set (permissions include 's' in owner execute) AND is owned by root
-
Inspect RPATH/RUNPATH settingRun 'readelf -d container-executor | grep -E "(RPATH|RUNPATH)"'Affected if Output contains '../lib/native/' or '$ORIGIN/:../lib/native/' indicating vulnerable path setting
-
Check for writable native library pathIdentify the full path resolved from '../lib/native/' relative to container-executor location, then check write permissions with 'ls -la <resolved-path>'Affected if The lib/native directory or any intermediate path in the RPATH chain is writable by non-root users (allows library injection)
A system is affected if it runs Hadoop 3.3.1-3.3.4 with a setuid root container-executor binary that has a vulnerable RPATH containing '../lib/native/' and an attacker-writable path in that library loading chain.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedVerify vulnerability with 'readelf -d container-executor|grep RUNPATH'; if vulnerable (contains '../lib/native/'), upgrade to Hadoop 3.3.5+ or remove the suid bit and root ownership from container-executor to prevent privilege escalation (disables YARN Secure Containers feature).
hadoop-3.3.5 or later
- Verify vulnerability status by running: readelf -d container-executor | grep 'RUNPATH\|RPATH' - if output contains './lib/native/' the binary is vulnerable
- Check ownership and suid bit status: ls -laF /opt/hadoop/bin/container-executor - if owned by root with suid bit set (-rwsr-sr-x or ---Sr-s---), the privilege escalation path is enabled
- Option 1 (Preferred - Durable Fix): Upgrade to Hadoop 3.3.5 or later which contains the fix in YARN-11441 that reverts the RUNPATH change
- Option 2 (Mitigation Only): If upgrade is not feasible immediately, remove the suid bit and change ownership from root: chmod u-s /opt/hadoop/bin/container-executor && chown yarn:hadoop /opt/hadoop/bin/container-executor - Note: This breaks YARN Secure Containers feature but other Hadoop services continue to work
- After applying fix or mitigation, verify the RUNPATH no longer contains '../lib/native/': readelf -d container-executor | grep 'RUNPATH\|RPATH' should show only '$ORIGIN/'
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation3.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,272.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-26031 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2023-26031 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data