Bug 1933336 (CVE-2021-3148) - CVE-2021-3148 salt: Command injection in salt.utils.thin.gen_thin()
Summary: CVE-2021-3148 salt: Command injection in salt.utils.thin.gen_thin()
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2021-3148
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1933337
Blocks: 1933352
TreeView+ depends on / blocked
 
Reported: 2021-02-26 18:40 UTC by Pedro Sampaio
Modified: 2021-06-22 16:57 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in salt. Command injection using the SaltAPI, is possible due to json.dumps() escaping double quotes while leaving the single quotes untouched. The highest threat from this vulnerability is to data confidentiality and integrity.
Clone Of:
Environment:
Last Closed: 2021-03-02 01:01:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2021-02-26 18:40:58 UTC
Via the SaltAPI a command is constructed from formatted string and can be truncated if there are single quotes in extra_mods, since json.dumps() escapes double quotes while leaving the single quotes untouched.

References:

https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/

Comment 1 Pedro Sampaio 2021-02-26 18:41:25 UTC
Created salt tracking bugs for this issue:

Affects: fedora-all [bug 1933337]

Comment 2 Product Security DevOps Team 2021-03-02 01:01:52 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-3148


Note You need to log in before you can comment on or make changes to this bug.