title: Insights-client: unsafe handling of temporary files and directories
description: A vulnerability was found in insights-client. This security issue occurs because of insecure file operations or unsafe handling of temporary files and directories that lead to local privilege escalation. Before the insights-client has been registered on the system by root, an unprivileged local user or attacker could create the /var/tmp/insights-client directory (owning the directory with read, write, and execute permissions) on the system. After the insights-client is registered by root, an attacker could then control the directory content that insights are using by putting malicious scripts into it and executing arbitrary code as root (trivially bypassing SELinux protections because insights processes are allowed to disable SELinux system-wide).
problem types: Creation of Temporary File in Directory with Insecure Permissions
affected:
{
product: insights-client
vendor: n/a
versions:
version: 3.2.2, status: unaffected
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.1.9-1.el7_9, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/o:redhat:enterprise_linux:7::client, cpe:/o:redhat:enterprise_linux:7::workstation, cpe:/o:redhat:enterprise_linux:7::computenode, cpe:/o:redhat:enterprise_linux:7::server]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.2-1.el8_8, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:enterprise_linux:8::appstream
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.3-1.el8_1, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:rhel_e4s:8.1::appstream
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.2 Advanced Update Support
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.3-1.el8_2, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_aus:8.2::appstream, cpe:/a:redhat:rhel_e4s:8.2::appstream, cpe:/a:redhat:rhel_tus:8.2::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.2 Telecommunications Update Service
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.3-1.el8_2, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_aus:8.2::appstream, cpe:/a:redhat:rhel_e4s:8.2::appstream, cpe:/a:redhat:rhel_tus:8.2::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.3-1.el8_2, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_aus:8.2::appstream, cpe:/a:redhat:rhel_e4s:8.2::appstream, cpe:/a:redhat:rhel_tus:8.2::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.3-1.el8_4, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_aus:8.4::appstream, cpe:/a:redhat:rhel_e4s:8.4::appstream, cpe:/a:redhat:rhel_tus:8.4::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.4 Telecommunications Update Service
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.3-1.el8_4, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_aus:8.4::appstream, cpe:/a:redhat:rhel_e4s:8.4::appstream, cpe:/a:redhat:rhel_tus:8.4::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.3-1.el8_4, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_aus:8.4::appstream, cpe:/a:redhat:rhel_e4s:8.4::appstream, cpe:/a:redhat:rhel_tus:8.4::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.6 Extended Update Support
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.2-1.el8_6, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:rhel_eus:8.6::appstream
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 9
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.2-1.el9_2, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:enterprise_linux:9::appstream
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 9.0 Extended Update Support
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: affected
versions:
version: 0:3.2.2-1.el9_0, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/a:redhat:rhel_eus:9.0::appstream
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 6
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: insights-client
defaultStatus: unknown
cpes: cpe:/o:redhat:enterprise_linux:6
}
metrics:
other: [
content: {'value': 'Important', 'namespace': 'https://access.redhat.com/security/updates/classification/'}
type: Red Hat severity rating
]
workarounds: Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.