ID CVE-2019-12779
Summary libqb before 1.0.5 allows local users to overwrite arbitrary files via a symlink attack, because it uses predictable filenames (under /dev/shm and /tmp) without O_EXCL.
References
Vulnerable Configurations
  • cpe:2.3:a:clusterlabs:libqb:0.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.8.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.8.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.8.1:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.8.1:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.9.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.9.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.10.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.10.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.10.1:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.10.1:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.11.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.11.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.11.1:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.11.1:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.12.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.12.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.13.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.13.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.14.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.14.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.14.1:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.14.1:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.14.2:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.14.2:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.14.3:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.14.3:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.14.4:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.14.4:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.15.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.15.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.16.0:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.16.0:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.17.0:-:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.17.0:-:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.17.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.17.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.17.1:-:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.17.1:-:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.17.1:rc1:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.17.1:rc1:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:0.17.2:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:0.17.2:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:1.0:-:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:1.0:-:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:1.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:1.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:1.0:rc2:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:1.0:rc2:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:1.0:rc3:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:1.0:rc3:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:1.0:rc4:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:1.0:rc4:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:1.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:1.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:1.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:1.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:1.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:1.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:clusterlabs:libqb:1.0.4:*:*:*:*:*:*:*
    cpe:2.3:a:clusterlabs:libqb:1.0.4:*:*:*:*:*:*:*
CVSS
Base: 6.6 (as of 03-07-2021 - 05:15)
Impact:
Exploitability:
CWE CWE-59
CAPEC
  • Manipulating Web Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
  • Using Malicious Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Symlink Attack
    An attacker positions a symbolic link in such a manner that the targeted user or application accesses the link's endpoint, assuming that it is accessing a file with the link's name. The endpoint file may be either output or input. If the file is output, the result is that the endpoint is modified, instead of a file at the intended location. Modifications to the endpoint file may include appending, overwriting, corrupting, changing permissions, or other modifications. In some variants of this attack the attacker may be able to control the change to a file while in other cases they cannot. The former is especially damaging since the attacker may be able to grant themselves increased privileges or insert false information, but the latter can also be damaging as it can expose sensitive information or corrupt or destroy vital system or application files. Alternatively, the endpoint file may serve as input to the targeted application. This can be used to feed malformed input into the target or to cause the target to process different information, possibly allowing the attacker to control the actions of the target or to cause the target to expose information to the attacker. Moreover, the actions taken on the endpoint file are undertaken with the permissions of the targeted user or application, which may exceed the permissions that the attacker would normally have.
Access
VectorComplexityAuthentication
LOCAL LOW NONE
Impact
ConfidentialityIntegrityAvailability
NONE COMPLETE COMPLETE
cvss-vector via4 AV:L/AC:L/Au:N/C:N/I:C/A:C
redhat via4
advisories
  • bugzilla
    id 1718773
    title Avoid libqb deadlock due to not using selected socket poll priority
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 8 is installed
        oval oval:com.redhat.rhba:tst:20193384074
      • OR
        • AND
          • comment libqb is earlier than 0:1.0.3-10.el8
            oval oval:com.redhat.rhsa:tst:20193610001
          • comment libqb is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20193610002
        • AND
          • comment libqb-debugsource is earlier than 0:1.0.3-10.el8
            oval oval:com.redhat.rhsa:tst:20193610003
          • comment libqb-debugsource is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20193610004
        • AND
          • comment libqb-devel is earlier than 0:1.0.3-10.el8
            oval oval:com.redhat.rhsa:tst:20193610005
          • comment libqb-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20193610006
    rhsa
    id RHSA-2019:3610
    released 2019-11-05
    severity Moderate
    title RHSA-2019:3610: libqb security and bug fix update (Moderate)
  • bugzilla
    id 1695948
    title CVE-2019-12779 libqb: Insecure treatment of IPC (temporary) files
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 7 is installed
        oval oval:com.redhat.rhba:tst:20150364027
      • OR
        • AND
          • comment libqb is earlier than 0:1.0.1-9.el7
            oval oval:com.redhat.rhsa:tst:20201189001
          • comment libqb is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20193610002
        • AND
          • comment libqb-devel is earlier than 0:1.0.1-9.el7
            oval oval:com.redhat.rhsa:tst:20201189003
          • comment libqb-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20193610006
    rhsa
    id RHSA-2020:1189
    released 2020-03-31
    severity Moderate
    title RHSA-2020:1189: libqb security update (Moderate)
rpms
  • libqb-0:1.0.3-10.el8
  • libqb-debuginfo-0:1.0.3-10.el8
  • libqb-debugsource-0:1.0.3-10.el8
  • libqb-devel-0:1.0.3-10.el8
  • libqb-tests-debuginfo-0:1.0.3-10.el8
  • libqb-0:1.0.1-9.el7
  • libqb-debuginfo-0:1.0.1-9.el7
  • libqb-devel-0:1.0.1-9.el7
refmap via4
bid 108691
misc
suse
  • openSUSE-SU-2019:1718
  • openSUSE-SU-2019:1752
  • openSUSE-SU-2019:1891
Last major update 03-07-2021 - 05:15
Published 07-06-2019 - 20:29
Last modified 03-07-2021 - 05:15
Back to Top