Skip to content
Access control Advisory Intermediate CVE-2022-38065

OpenStack oslo.privsep privilege escalation vulnerability

The oslo.privsep library in OpenStack exposes overly broad privileged functions in the nova and os_brick modules, allowing an unprivileged user to execute arbitrary commands as root. An attacker with local access could read or write sensitive files and gain a root shell.

Keane O'Kelley Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A privilege escalation vulnerability exists in the oslo.privsep functionality of OpenStack git master 05194e7618 and prior. Overly permissive functionality within tools leveraging this library within a container can lead increased privileges.

Keane O'Kelley, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the privileged helper functions in the nova and os_brick modules were designed too broadly, allowing arbitrary file operations and command execution instead of narrow, specific tasks.

Impact

An attacker with local access could escalate to root, leading to full compromise of the host and any containers or services running on it.

What the attacker needed

Local access to an unprivileged account; oslo.privsep configured with sudoers entry

The fix

The privileged functions should be rewritten to be as specialized and narrowly tailored as possible, and other modules using oslo.privsep should be audited.

How it was found

  1. Import the vulnerable privileged functions from the nova or os_brick module.
  2. Set the configuration to use the corresponding privsep context.
  3. Call the privileged functions to read or write files, or execute commands as root.
  4. Use the elevated privileges to gain a root shell.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a privilege escalation bug. A program that is supposed to let low-privilege users do only specific safe actions instead lets them do almost anything as the superuser (root). So someone with a normal account on the system can become root and take full control.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Keane O'Kelley

View all

5 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.