Interpolation of curly braces in arguments/env vars

Bug #1714297 reported by J. Aaron Pendergrass
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Confirmed
Undecided
Unassigned

Bug Description

Submitted as a security vulnerability because this involves mishandling of user input. It is not obvious that this is directly exploitable, but seems likely to contribute to vulnerability.

The openstack command (version 3.11.0) performs some kind of interpolation on command line arguments and environment variables that causes values enclosed in curly braces to be echoed to the terminal and not included in the variable. For example:

$ openstack nova list --os-username 'user{hello}name'
u'hello'

If the argument contains unmatched open curly braces it produces an error:

$ openstack nova list --os-username "user{name"
unmatched '{' in format

Jeremy Stanley (fungi)
information type: Private Security → Public
Revision history for this message
Alexey Stupnikov (astupnikov) wrote :

Reproducible in 2025:
stack@devstack:~$ openstack nova list --os-username 'user{hello}name'
'hello'

Changed in python-openstackclient:
status: New → Confirmed
Revision history for this message
Alexey Stupnikov (astupnikov) wrote :

Possibly related: bug #1721805

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.